CVE-2026-39932: OpenEMR 8.2.0 Remote Code Execution via CategoryTree eval() Injection
OpenEMR through 8.2.0 contains a remote code execution vulnerability in the document category tree component (library/classes/Tree.class.php) that allows authenticated administrators to execute arbitrary operating system commands by injecting PHP payloads into the categories database table. Attackers can chain arbitrary SQL execution to alter the id column type to VARCHAR and insert a malicious PHP payload, which is then executed via an unsanitized eval() call whenever any page instantiates CategoryTree, including unauthenticated and low-privilege pages, resulting in command execution as the web server user.
Security readout for executives and security teams
Plain-English summary
OpenEMR through 8.2.0 can allow an authenticated administrator to plant malicious PHP in the document-category data. OpenEMR may later execute it when loading affected pages, giving the attacker operating-system command execution as the web server user. Because triggering can occur on unauthenticated or low-privilege pages after planting, compromise may persist beyond the original administrator session.
Executive priority
Treat this as an urgent remediation and investigation item for internet-accessible or sensitive OpenEMR systems. Prioritize version confirmation, vendor guidance, administrator-account review, and database integrity checks. The high privilege prerequisite reduces opportunistic risk, but successful exploitation could compromise clinical data confidentiality, integrity, availability, and connected systems.
Technical view
CVE-2026-39932 is a CWE-95 eval injection in library/classes/Tree.class.php. An administrator with arbitrary SQL capability can change the categories.id column to VARCHAR and store PHP content. CategoryTree passes that content to unsanitized eval(), potentially executing it whenever relevant pages instantiate the class. CVSS 4.0 is 9.4, with high privileges required for initial injection.
Likely exposure
OpenEMR deployments running versions through 8.2.0 should be treated as potentially affected. Initial exploitation requires authenticated administrative privileges and arbitrary SQL execution, limiting direct exposure. Impact remains severe because planted content may execute from broadly accessible pages. The supplied sources do not establish whether particular configurations, modules, or later versions are unaffected.
Exploitation context
The bundle includes a public technical disclosure and labels one reference as containing exploit information. However, CVE-2026-39932 is not listed as KEV in the supplied data, and no cited evidence establishes active exploitation in the wild. Public technical detail may increase future exploitation risk, especially where administrator credentials are compromised.
Researcher notes
The reported chain has two distinct stages: privileged database manipulation and later eval-based execution. Validation should distinguish prerequisites from trigger paths. The supplied material does not name a fixed version, patch commit, observed indicators, or confirmed exploitation campaign. Avoid concluding that exposure alone proves compromise; correlate schema changes, category records, logs, and web server behavior.
Mitigation direction
Check current OpenEMR vendor guidance and apply the vendor-supported security update when identified.
Restrict administrator access to trusted personnel and enforce strong authentication.
Limit database privileges available through OpenEMR wherever operationally supported.
Temporarily restrict public access to affected deployments if compromise is suspected.
Initiate incident response if suspicious category data or web server activity is found.
Validation and detection
Inventory OpenEMR deployments and confirm their exact installed versions.
Inspect the categories table schema for unexpected changes to the id column type.
Review category records for anomalous PHP-like content or unexplained modifications.
Review administrator, database, application, and web server logs for suspicious activity.
After remediation, confirm CategoryTree no longer evaluates attacker-controlled category data using safe testing.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · medium confidence lookup
CWE-95: Code execution behavior lookup
Code execution and unsafe deserialization weaknesses often justify reviewing execution behavior and process telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.
The CVE wording references database injection or access, so collection and exfiltration review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
2CVSS vectors
3Timeline events
1ADP providers
3Source links
SSVC decision data
CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: pocAutomatable: noTechnical Impact: total
CVSS vector scores
2 official scores
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.