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.
Published: 2026-08-17
Score: 7 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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 yet.

History

Mon, 17 Aug 2026 22:00:00 +0000

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

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

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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-17T20:39:03.333Z

Reserved: 2026-04-13T20:29:02.808Z

Link: CVE-2026-40506

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-17T21:16:44.930

Modified: 2026-08-17T21:16:44.930

Link: CVE-2026-40506

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-17T21:45:02Z

Weaknesses
  • CWE-22

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