CVE-2026-39932 OpenEMR 8.2.0 Remote Code Execution via CategoryTree eval() Injection

Critical 9.4 Published Updated

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.

All Open-Emr Openemr vulnerabilities

Sources

Also known as GHSA-pj78-c8jq-8xhf.

Is CVE-2026-39932 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free