Skip to main content

OpenEMR EUVDEUVD-2026-60396

| CVE-2026-40506 HIGH
Path Traversal (CWE-22)
2026-08-17 VulnCheck
7.0
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Identify OpenEMR instance and accessible DICOM/admin endpoints
  2. Delivery
    Craft open-redirect URL in dicom_frame.php embedding path-traversal db parameter
  3. Exploit
    Deliver crafted link to Superuser via phishing or malicious page
  4. Install
    Superuser clicks link while authenticated; browser follows open redirect
  5. C2
    standard_tables_manage.php receives attacker-controlled db value
  6. Execute
    temp_dir_cleanup() resolves traversal path and recursively deletes target directory
  7. Impact
    Critical EHR data or application files permanently destroyed

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that (1) the target OpenEMR instance runs a version prior to 8.2.0 with the standard_tables_manage.php and dicom_frame.php endpoints accessible over the network; (2) an authenticated OpenEMR Superuser - the highest privilege role in the application - is actively logged in at the time of the attack; and (3) that Superuser can be induced to click or otherwise follow a crafted URL, typically via phishing, a compromised external page, or other social engineering. The attacker themselves requires no authentication or prior system access. Exploitation is constrained by: the mandatory social-engineering step targeting a Superuser specifically (not any authenticated user), the attacker's need to identify or guess a meaningful target directory path to delete, and the requirement that dicom_frame.php's open redirect is accessible and unfiltered. Non-default configurations that disable DICOM support or block external access to administrative PHP scripts would break the chain.

Impact

The provided CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:H/UI:N, score 7.0) contains an internal inconsistency that merits verification: PR:H reflects that Superuser-level session context is required for the deletion to execute, but UI:N contradicts the described attack mechanism, which explicitly requires a Superuser to follow a crafted link - this should map to UI:A (Active user interaction) in CVSS 4.0 terms. The vendor or NVD should be consulted for a corrected vector. Real-world exploitability is meaningfully gated by the social-engineering step: an attacker must successfully deliver a crafted URL to an actively authenticated Superuser, raising the practical bar compared to fully unauthenticated attacks. No EPSS score was provided and no CISA KEV listing exists, indicating neither statistically high exploitation probability nor confirmed in-the-wild abuse; however, the attack primitives (path traversal parameter injection and open redirect chaining) are well-understood, and the absence of a POC does not preclude private exploit development. The availability and integrity impact is severe and irreversible: recursive deletion of directories in a healthcare EHR can destroy patient records, application binaries, or database files, with downstream HIPAA and operational consequences. Despite the chained-exploit requirement, organizations running unpatched OpenEMR instances should treat this as urgent given the asymmetric damage potential.

Exploit ScenarioDerived

An attacker identifies an internet-exposed OpenEMR deployment running a version prior to 8.2.0, then constructs a phishing email or malicious web page containing a URL that uses the open redirect in dicom_frame.php to chain to standard_tables_manage.php?db=../../var/www/openemr/sites/default. When a Superuser with an active session clicks the link, their browser follows the redirect and their authenticated session causes temp_dir_cleanup() to recursively delete the targeted directory - potentially destroying site configuration, uploaded patient documents, or application data. No public proof-of-concept has been identified, but both exploit primitives are individually trivial and well-documented in the security community.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 17, 2026

Recursive arbitrary directory deletion in OpenEMR before 8.2.0 is achievable by an unauthenticated attacker through a two-vulnerability chain: a path traversal flaw in standard_tables_manage.php allows the db GET parameter - passed unsanitized to temp_dir_cleanup() - to resolve outside the intended PHP temporary directory, while an open redirect in dicom_frame.php enables delivery of a crafted URL that triggers this deletion inside an authenticated Superuser's active session. The patch is confirmed in OpenEMR 8.2.0 (released 2026-07-08); no active exploitation (CISA KEV) or public proof-of-concept has been identified at time of analysis. The potential for irreversible mass deletion of patient records and EHR runtime data makes this a high-priority patching target despite the social-engineering prerequisite.

RemediationAI

The definitive fix is upgrading to OpenEMR 8.2.0 or later, released 2026-07-08 and available at https://github.com/openemr/openemr/releases/tag/v8_2_0; the specific patch is implemented in commit 2d8a69f0f343c8e8c6ee1b42d224c24a7a4ba415 via PR #11951 (https://github.com/openemr/openemr/pull/11951). For deployments where immediate upgrade is not feasible, administrators should restrict access to standard_tables_manage.php at the web server or network perimeter level (e.g., deny external access via Apache/nginx location rules or firewall ACLs), which prevents the open-redirect chain from reaching the vulnerable endpoint from untrusted networks - note this may block legitimate administrative workflows and should be tested. Independently, restricting or disabling the redirect functionality in dicom_frame.php severs the open redirect primitive that enables unauthenticated delivery; however, this may disrupt DICOM imaging features used in clinical workflows. As an interim behavioral control, Superusers should avoid clicking externally sourced links while authenticated, and session timeout policies should be tightened to reduce the window of vulnerability.

Affected VersionsENISA

OpenEMR 0 <8.2.0

Affected Packages

euvd openemr fix: 8.2.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

OpenEMR is a widely deployed open-source EHR and medical practice management application written primarily in PHP, identified by CPE cpe:2.3:a:openemr:openemr:*:*:*:*:*:*:*:*. The vulnerable interface, standard_tables_manage.php, accepts a db GET parameter designed to identify a database-specific subdirectory within the PHP temporary directory. This value is passed without normalization, canonicalization, or allowlist validation to temp_dir_cleanup(), which constructs a filesystem path by concatenating the PHP temp directory with the attacker-supplied string and performs a recursive delete. CWE-22 (Improper Limitation of a Pathname to a Restricted Directory) captures this root cause precisely: without stripping or rejecting sequences such as ../../, the resolved path escapes the intended sandbox boundary. A second, independent vulnerability in dicom_frame.php - part of OpenEMR's DICOM medical imaging support - provides an open redirect that allows an external attacker to craft a URL which, when visited by a Superuser, silently navigates that session to the vulnerable endpoint with attacker-controlled parameters, bypassing the apparent need for the attacker themselves to hold a privileged session.

Know when Openemr gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 7.0 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N
vuln.today AI 6.8 MEDIUM

Attacker is unauthenticated (PR:N) but must social-engineer a Superuser via open redirect (UI:R); chaining two vulnerabilities raises complexity (AC:H); impact is integrity and availability only - no data disclosure occurs.

3.1 AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:H
4.0 AV:N/AC:H/AT:N/PR:N/UI:A/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
High
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

OpenEMR before 8.2.0 contains a path traversal vulnerability in the standard_tables_manage.php interface where the db GET parameter is passed without validation to temp_dir_cleanup(), which joins the value to the PHP temporary directory path and recursively deletes the resulting directory. Attackers can supply a traversal sequence in the db parameter to resolve outside the intended temporary directory, and by chaining this with an open redirect in dicom_frame.php, an unauthenticated attacker can deliver a crafted URL that triggers arbitrary recursive directory deletion within an authenticated Superuser's session.

Executive ViewAI

Why It Matters

OpenEMR before version 8.2.0 contains a critical vulnerability allowing attackers to delete patient records and EHR system files through a combination of path traversal and social engineering targeting administrator accounts; no public exploit identified at time of analysis. Healthcare organizations using vulnerable versions face irreversible data loss and regulatory non-compliance.

Business Impact: Severe
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.4%
Top 63% exploitable
Prevalence
Medium
popular open-source EHR used by independent clinics and community health centers
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
Very High
Technical Impact
Partial

Priority Score

35
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +35
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

CVE-2013-10044 HIGH POC
8.7 Aug 01

An authenticated SQL injection vulnerability exists in OpenEMR ≤ 4.1.1 Patch 14 that allows a low-privileged attacker to

CVE-2026-24898 CRITICAL POC
10.0 Mar 03

Unauthenticated token disclosure in OpenEMR before 8.0.0. CVSS 10.0. PoC and patch available.

CVE-2026-24848 CRITICAL POC
9.9 Mar 03

Path traversal in OpenEMR 7.0.4 disposeDocument() allows file access. PoC available.

CVE-2026-24849 CRITICAL POC
9.9 Feb 25

Path traversal in OpenEMR electronic health records before fix allows authenticated users to read arbitrary files on the

CVE-2026-24908 CRITICAL POC
9.9 Feb 25

SQL injection in OpenEMR electronic health records before fix. Authenticated users can execute arbitrary SQL through the

CVE-2024-22611 CRITICAL POC
9.8 Apr 03

OpenEMR 7.0.2 is vulnerable to SQL Injection via \openemr\library\classes\Pharmacy.class.php, \controllers\C_Pharmacy.cl

CVE-2024-37734 CRITICAL POC
9.8 Jun 26

An issue in OpenEMR 7.0.2 allows a remote attacker to escalate privileges viaa crafted POST request using the noteid par

CVE-2026-25146 CRITICAL POC
9.6 Mar 03

Information disclosure in OpenEMR 5.0.2 to before 8.0.0 exposes sensitive data. PoC and patch available.

CVE-2026-39932 CRITICAL POC
9.4 Aug 03

Remote code execution in OpenEMR through 8.2.0 lets an authenticated administrator poison the document category tree so

CVE-2012-0992 HIGH POC
8.5 Feb 07

interface/fax/fax_dispatch.php in OpenEMR 4.1.0 allows remote authenticated users to execute arbitrary commands via shel

CVE-2015-4453 MEDIUM
5.0 Jul 05

interface/globals.php in OpenEMR 2.x, 3.x, and 4.x before 4.2.0 patch 2 allows remote attackers to bypass authentication

CVE-2018-15152 CRITICAL POC
9.1 Aug 15

Authentication bypass vulnerability in portal/account/register.php in versions of OpenEMR before 5.0.1.4 allows a remote

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy