CVE Catalog

CVE-2026-39932

CriticalCVSS 9.1
Published: Translated: NVD NIST

Summary

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.

Risk Assessment

The risk includes full compromise of the web server and access to all medical data, potentially leading to patient confidentiality breaches and system downtime.

Recommendation

It is recommended to immediately upgrade OpenEMR to a version above 8.2.0, restrict administrator privileges, and adopt secure coding practices such as parameterized SQL queries and avoiding eval().

Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS