What’s Vulnerable › Vulnerabilities
CVE-2026-39932: OpenEMR 8.2.0 Remote Code Execution via CategoryTree eval() Injection
- Severity: critical (CVSS 9.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 2.0% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2026-08-03 · updated 2026-09-01
- Weakness: CWE-95
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.
Affected products
- openemr: before 8.2.0 — fixed in 8.2.0
How to fix
Upgrade to a fixed version: openemr 8.2.0. Check the vendor advisory for mitigations.
References
- https://jivasecurity.com/writeups/openemr-eval-rce-category-tree-cve-2026-39932
- https://www.vulncheck.com/advisories/openemr-remote-code-execution-via-categorytree-eval-injection
Get alerted when CVE-2026-39932 or the next vulnerability affects your stack