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.
Published: 2026-08-03
Score: 9.4 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability in OpenEMR allows authenticated administrators to inject PHP payloads into the categories database table, leading to arbitrary command execution on the server. It stems from an unsanitized eval() call in CategoryTree, classified as CWE-95. When exploited, the attacker can run any command as the web server user, compromising confidentiality, integrity, and availability of the entire application and underlying system.

Affected Systems

OpenEMR versions up to and including 8.2.0 are affected. The flaw resides in the document category tree component (library/classes/Tree.class.php) and can be triggered by a user with administrator privileges or a low-privilege user if the attacker can first modify the database via SQL injection.

Risk and Exploitability

The vulnerability scores a CVSS of 9.4, indicating very high severity, and is not listed in the CISA KEV catalog. Although an EPSS score is not available, the combination of required administrator privileges, SQL injection to alter the id column, and an eval() execution path suggests a high likelihood of exploitation in environments where the application is exposed to the internet. Attackers can chain SQL injection to set the id column to VARCHAR, insert malicious PHP, and trigger eval() on any page that loads CategoryTree, including unauthenticated pages. This results in command execution with web server privileges.

Generated by OpenCVE AI on August 4, 2026 at 10:08 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to the latest OpenEMR release that includes the CategoryTree eval() fix
  • If an update is not immediately possible, limit administrator access to the application and monitor for suspicious SQL activity
  • As a temporary measure, disable or remove the eval() call in library/classes/Tree.class.php, ensuring no user-entered data is processed by eval

Generated by OpenCVE AI on August 4, 2026 at 10:08 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 14 Aug 2026 17:15:00 +0000

Type Values Removed Values Added
First Time appeared Open-emr
Open-emr openemr
CPEs cpe:2.3:a:open-emr:openemr:*:*:*:*:*:*:*:*
Vendors & Products Open-emr
Open-emr openemr

Mon, 03 Aug 2026 17:45:00 +0000

Type Values Removed Values Added
First Time appeared Openemr
Openemr openemr
Vendors & Products Openemr
Openemr openemr

Mon, 03 Aug 2026 17:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Mon, 03 Aug 2026 16:30:00 +0000

Type Values Removed Values Added
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.
Title OpenEMR 8.2.0 Remote Code Execution via CategoryTree eval() Injection
Weaknesses CWE-95
References
Metrics cvssV3_1

{'score': 9.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H'}

cvssV4_0

{'score': 9.4, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-14T16:49:50.045Z

Reserved: 2026-04-07T20:57:06.210Z

Link: CVE-2026-39932

cve-icon Vulnrichment

Updated: 2026-08-03T16:36:38.369Z

cve-icon NVD

Status : Received

Published: 2026-08-03T17:16:36.893

Modified: 2026-08-03T17:16:36.893

Link: CVE-2026-39932

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-04T10:15:04Z

Weaknesses
  • CWE-95

    Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')