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.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2026-39932?
CVE-2026-39932 has a critical severity rating of 9.1.
How does CVE-2026-39932 work?
CVE-2026-39932 allows authenticated administrators to execute arbitrary operating system commands through PHP payload injection in the categories database table.
What versions of OpenEMR are affected by CVE-2026-39932?
OpenEMR versions through 8.2.0 are affected by CVE-2026-39932.
How do I fix CVE-2026-39932?
To fix CVE-2026-39932, upgrade OpenEMR to a version later than 8.2.0 that addresses this vulnerability.
Who is at risk from CVE-2026-39932?
Authenticated administrators of OpenEMR are at risk from CVE-2026-39932 due to the potential for remote code execution.