CVE-2026-39932
PoC ×2largeAuthenticated eval-injection RCE in OpenEMR category tree
OpenEMR through 8.2.0 contains a command-execution flaw in its document category tree component (library/classes/Tree.class.php), where values from the categories database table are passed into an unsanitized eval() call (CWE-95). An attacker who has obtained administrator-level access and can execute arbitrary SQL alters the id column of the categories table to VARCHAR and inserts a PHP payload, which is then executed whenever any page instantiates CategoryTree, including unauthenticated and low-privilege pages. Successful exploitation yields arbitrary operating-system command execution as the web server user, providing a persistent foothold until the database tampering is cleaned up. Any OpenEMR deployment running version 8.2.0 or earlier is affected, including self-hosted clinic and health-center installations. Exploitation has not been confirmed in the wild, but two public proof-of-concept write-ups exist, the flaw is rated 9.4 (Critical), EPSS currently estimates a 3.7% probability of exploitation within 30 days (89th percentile), and the issue is not in CISA's KEV catalog.
What to do: Upgrade OpenEMR to a release newer than 8.2.0 as soon as the project publishes a patched version, prioritizing internet-exposed instances. Until patched, audit the categories table for tampering (an id column changed to VARCHAR or unexpected stored values), remove arbitrary-SQL capability from untrusted administrator accounts, and restrict the web server user's OS command permissions. Given the public PoCs and rising EPSS, monitor logs for anomalous requests to pages that instantiate CategoryTree and for suspicious commands run as the web server user.
| open-emr openemr | all versions through and including 8.2.0 (fix version not specified in the available data) |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
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.
- Vendors
- open-emr
- Products
- openemr
- Weakness
- CWE-95
- Vector
- CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
In the news0 stories
No ingested article mentions this CVE yet.