CVE-2026-39932

Critical

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.

SeverityCritical
CVSS9.1
Exploit probability—
ProductOpen-emr Openemr
PublishedAug 3, 2026
First seenAug 3, 2026
Weakness typeCWE-95CWE-95

How to fix

Update
  • open-emr openemr8.2.0 or later

Affected products

ProductAffected versionsFixed in
open-emr openemrv < 8.2.08.2.0

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.