CVE-2026-40506

OpenEMR Path Traversal Arbitrary Directory Deletion via standard_tables_manage.php

Published Aug 17, 2026 CVSS 4.0 · 7 High EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

A path traversal flaw in OpenEMR before 8.2.0 allows an attacker to provide a specially crafted value for the GET parameter used by standard_tables_manage.php. The value is passed directly to a cleanup routine that interprets it as a directory name and recursively deletes that directory. This causes loss of data and can lead to denial of service by removing critical system folders. The weakness underlying the issue is a classic path traversal flaw (CWE‑22).

Affected Systems

All installations of OpenEMR running a version earlier than 8.2.0 are impacted. The vulnerability resides in the standard_tables_manage.php component used by the web interface and can be leveraged by an attacker who is able to influence the db parameter in an HTTP request. Version information indicates the fix is available in release v8.2.0, so any version prior to that should be considered vulnerable.

Risk and Exploitability

The CVSS score of 7.0 classifies the flaw as high severity. No EPSS score is available, and the vulnerability is not listed in the CISA KEV catalog, suggesting that known exploitation activity may be limited. Nevertheless, the flaw can be abused via an open redirect in dicom_frame.php, enabling an unauthenticated attacker to trigger recursive directory deletion within the context of an authenticated superuser session. This requires the attacker to first obtain or construct a URL that redirects through the vulnerable interface, but once achieved the impact is total loss of arbitrary directories. The risk is therefore significant for systems that expose the affected interface or allow open redirects.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest OpenEMR release (v8.2.0 or newer) which removes the vulnerability.
  • If an upgrade is not immediately possible, restrict access to standard_tables_manage.php so that only authenticated superuser accounts can invoke it and block unauthenticated users.
  • Review any open redirect logic in dicom_frame.php and modify or disable it to break the exploit chain.

Generated by OpenCVE AI on August 17, 2026 at 21:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
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
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Openemr
Openemr openemr
Vendors & Products Openemr
Openemr openemr
Type Values Removed Values Added
Description 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.
Title OpenEMR Path Traversal Arbitrary Directory Deletion via standard_tables_manage.php
Weaknesses CWE-22
References
Metrics cvssV3_1

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

cvssV4_0

{'score': 7, 'vector': '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'}

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 8, 2026, 2:02 PM
Reserved
Apr 13, 2026, 8:29 PM
Status
Deferred
Published
Aug 17, 2026, 9:16 PM
Modified
Sep 9, 2026, 8:40 PM