# CVE-2026-40506: OpenEMR Path Traversal Arbitrary Directory Deletion via standard_tables_manage.php

- Severity: High 7.0 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.55%, higher than 47% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-08-17T20:39:03.333Z
- Modified: 2026-11-08T14:02:52.316Z
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulnCheck

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

(As written by CVE List.)

## Affected

- openemr openemr: before 8.2.0

## Every score

- VulnCheck: CVSS:4.0 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`
- VulnCheck: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H`

## References

- <https://github.com/openemr/openemr/security/advisories/GHSA-hj9x-33vw-5g3x> (exploit, vendor-advisory)
- <https://github.com/openemr/openemr/releases/tag/v8_2_0> (release-notes)
- <https://github.com/openemr/openemr/pull/11951> (issue-tracking, patch)
- <https://github.com/openemr/openemr/commit/2d8a69f0f343c8e8c6ee1b42d224c24a7a4ba415> (patch)
- <https://www.vulncheck.com/advisories/openemr-path-traversal-arbitrary-directory-deletion-via-standard-tables-manage-php> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-40506](https://www.cve.org/CVERecord?id=CVE-2026-40506), CVE Terms of Use, modified 2026-11-08
- NVD: [CVE-2026-40506](https://nvd.nist.gov/vuln/detail/CVE-2026-40506), Public domain, modified 2026-09-09

---

Page: https://cve.day/CVE-2026-40506 · Whole record: https://cve.day/CVE-2026-40506.json · Rebuilt by cve.day 2026-11-25T22:59:33.389Z
