Skip to content

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

CriticalCVSS 9.4 EPSS 2.0%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: total
Technology
PHP

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.

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
open-emr openemr < 8.2.0 8.2.0 Fixed
openemr <= 8.2.0 after 8.2.0 Fixed

Affected products

ProductAffected versionsFixed in
openemr <= 8.2.0 No fix listed
open-emr openemr < 8.2.0 8.2.0

References