CVE-2026-39932
Received Received - Intake

Remote Code Execution in OpenEMR via Malicious Category Tree

Vulnerability report for CVE-2026-39932, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-03

Last updated on: 2026-08-03

Assigner: VulnCheck

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-03
Last Modified
2026-08-03
Generated
2026-08-03
AI Q&A
2026-08-03
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
openemr openemr to 8.2.0 (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-95 The product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes code syntax before using the input in a dynamic evaluation call (e.g. "eval").

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This is a remote code execution vulnerability in OpenEMR versions up to 8.2.0. It exists in the document category tree component where authenticated administrators can inject PHP payloads into the categories database table. The vulnerability allows altering the id column type to VARCHAR and inserting malicious PHP code. When any page loads CategoryTree, including unauthenticated pages, the unsanitized eval() call executes the payload, leading to arbitrary operating system command execution as the web server user.

Detection Guidance

Check for unauthorized modifications to the categories database table in OpenEMR, particularly changes to the id column type to VARCHAR and PHP payloads in entries. Inspect library/classes/Tree.class.php for eval() calls that process category data.

Impact Analysis

An attacker with administrator access could exploit this to execute arbitrary commands on the server running OpenEMR. This could lead to full system compromise, data theft, installation of malware, or disruption of services. Even low-privilege users might trigger the vulnerability through unauthenticated pages, increasing the attack surface.

Compliance Impact

This vulnerability could severely impact compliance with GDPR and HIPAA by enabling unauthorized access to sensitive patient or user data. A successful exploit could result in data breaches, unauthorized modifications, or disclosure of protected health information, leading to legal penalties, fines, and reputational damage for organizations handling regulated data.

Mitigation Strategies

Upgrade OpenEMR to a patched version beyond 8.2.0. If immediate upgrade is not possible, restrict database write access for non-admin users and audit the categories table for malicious entries. Disable PHP eval() usage in Tree.class.php temporarily.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-39932. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart