Description
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.
Severity (CVSS)
| Base score | 9.4 |
|---|---|
| Severity | Critical |
| Version | CVSS 4.0 |
| 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 |
| Provided by | CNA |
Weaknesses
- CWE-95 — Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')
Affected products
| Vendor | Product | Versions |
|---|---|---|
| openemr | openemr | 0 to <=8.2.0 |
References
- https://jivasecurity.com/writeups/openemr-eval-rce-category-tree-cve-2026-39932 (technical-description exploit)
- https://www.vulncheck.com/advisories/openemr-remote-code-execution-via-categorytree-eval-injection (third-party-advisory)
Generated from the official CVE List on 04 Aug 2026 07:02 UTC.