OpenEMR through 8.2.0 contains a remote code execution vulnerability in the document category tree component (library/classes/Tree.class.php) that… (CVE-2026-39932)
OpenEMR versions through 8.2.0 contain a critical remote code execution vulnerability in the document category tree component. Authenticated administrators can inject PHP payloads into the categories database table by exploiting a flaw that allows altering the id column type to VARCHAR and inserting malicious code. This payload is executed via an unsanitized eval() call whenever the CategoryTree class is instantiated, including on pages accessible to unauthenticated or low-privilege users, resulting in command execution as the web server user.
AI Analysis
Technical Summary
The vulnerability in OpenEMR (up to version 8.2.0) resides in the document category tree component (library/classes/Tree.class.php). It allows authenticated administrators to perform arbitrary SQL commands to change the id column type to VARCHAR and insert PHP payloads into the categories table. These payloads are then executed through an unsanitized eval() call when the CategoryTree class is instantiated on any page, including those accessible without authentication or with low privileges. This leads to remote code execution with the privileges of the web server user. The CVSS 3.1 score is 9.1 (critical), reflecting network attack vector, low attack complexity, high privileges required, no user interaction, and complete confidentiality, integrity, and availability impact.
Potential Impact
Successful exploitation results in remote code execution on the server hosting OpenEMR, executed with the web server's privileges. This can lead to full system compromise, data theft, or service disruption. The vulnerability affects confidentiality, integrity, and availability of the affected system. Since the payload execution occurs even on unauthenticated or low-privilege pages, the attack surface is significantly increased after initial administrator compromise.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a patch is available, restrict administrator access to trusted personnel only and monitor for suspicious database changes. Consider disabling or restricting access to the document category tree component if feasible. Avoid exposing OpenEMR instances to untrusted networks without additional protective controls.
OpenEMR through 8.2.0 contains a remote code execution vulnerability in the document category tree component (library/classes/Tree.class.php) that… (CVE-2026-39932)
Description
OpenEMR versions through 8.2.0 contain a critical remote code execution vulnerability in the document category tree component. Authenticated administrators can inject PHP payloads into the categories database table by exploiting a flaw that allows altering the id column type to VARCHAR and inserting malicious code. This payload is executed via an unsanitized eval() call whenever the CategoryTree class is instantiated, including on pages accessible to unauthenticated or low-privilege users, resulting in command execution as the web server user.
CVSS v3.1
Score 9.1critical
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in OpenEMR (up to version 8.2.0) resides in the document category tree component (library/classes/Tree.class.php). It allows authenticated administrators to perform arbitrary SQL commands to change the id column type to VARCHAR and insert PHP payloads into the categories table. These payloads are then executed through an unsanitized eval() call when the CategoryTree class is instantiated on any page, including those accessible without authentication or with low privileges. This leads to remote code execution with the privileges of the web server user. The CVSS 3.1 score is 9.1 (critical), reflecting network attack vector, low attack complexity, high privileges required, no user interaction, and complete confidentiality, integrity, and availability impact.
Potential Impact
Successful exploitation results in remote code execution on the server hosting OpenEMR, executed with the web server's privileges. This can lead to full system compromise, data theft, or service disruption. The vulnerability affects confidentiality, integrity, and availability of the affected system. Since the payload execution occurs even on unauthenticated or low-privilege pages, the attack surface is significantly increased after initial administrator compromise.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a patch is available, restrict administrator access to trusted personnel only and monitor for suspicious database changes. Consider disabling or restricting access to the document category tree component if feasible. Avoid exposing OpenEMR instances to untrusted networks without additional protective controls.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-pj78-c8jq-8xhf
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-39932"]
- Ecosystems
- []
- Database Specific Severity
- CRITICAL
- Cvss Version
- 3.1
Threat ID: 6a710657bf32cb7a3439351b
Added to database: 08/03/2026, 21:21:27 UTC
Last enriched: 08/03/2026, 21:26:18 UTC
Last updated: 08/03/2026, 23:57:58 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.