CVE-2026-39932 OpenEMR 8.2.0 Remote Code Execution via CategoryTree eval() Injection
Authenticated administrators can achieve remote code execution by injecting PHP payloads into the category tree, which are executed via eval() on various pages.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-39932?
CVE-2026-39932 is a critical code injection vulnerability in Open-Emr Openemr, published on 3 Aug 2026. An attacker needs administrator access to exploit it, with no action from the victim.
Official 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.
Weakness: CWE-95
Which versions are affected by CVE-2026-39932?
It affects 1 product.
Products include Open-Emr Openemr.
How do I fix CVE-2026-39932?
No fix has been published for CVE-2026-39932 yet. Limit exposure of the affected software until one is available.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2026-39932 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-39932 exists.
Other vulnerabilities in Open-Emr Openemr
- CVE-2026-24898 OpenEMR has an Unauthenticated MedEx Token Disclosure
- CVE-2026-24849 OpenEMR Arbitrary File Read Vulnerability
- CVE-2026-24908 OpenEMR has SQL Injection in Patient API Sort Parameter
- CVE-2022-2734 Improper Restriction of Rendered UI Layers or Frames in openemr/openemr
- CVE-2024-22611 SQL injection in n/a
Sources
Also known as GHSA-pj78-c8jq-8xhf.