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.
CVE-2026-40506
This medium-severity CVE scores 6.5 under the CNA's CVSS (NVD's own analysis pending). EPSS exploit probability: 0.4%, top 63% of all CVEs by exploit prediction. GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).
- Lower severity and no public exploit yet
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 6.5
- EG Score
- 6.5(medium)
- EG Risk
- 45(Track)EG Risk 45/100SSVC: Track
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity65% × 45%Exploitation40% × 40%Automatability0% × 15%Action: Routine — remediate on your standard cadence. - EPSS PROB
- 0%
- EPSS %ILE
- 37%
- KEV
- Not listed
Published
August 17, 2026
Last Modified
August 21, 2026
Advisory Details (5)
Auto-updated Aug 17, 2026OpenEMR Path Traversal Arbitrary Directory Deletion via standard_tables_manage.php | Advisories | VulnCheck
https://www.vulncheck.com/advisories/openemr-path-traversal-arbitrary-directory-deletion-via-standard-tables-manage-phpcommit 2d8a69f0f343 (openemr/openemr)
Patch available: openemr/openemr v8_2_0 (contains commit 2d8a69f0f343)
https://github.com/openemr/openemr/commit/2d8a69f0f343c8e8c6ee1b42d224c24a7a4ba415fix(security): validate db parameter in standard_tables_manage
Patch available: openemr/openemr v8_2_0 (PR #11951 merged 2026-05-01)
https://github.com/openemr/openemr/pull/11951OpenEMR 8.2.0
Patch available: openemr/openemr v8_2_0
https://github.com/openemr/openemr/releases/tag/v8_2_0/interface/code_systems/standard_tables_manage.php db Directory Traversal to Arbitrary File Deletion · Advisory · openemr/openemr · GitHub
https://github.com/openemr/openemr/security/advisories/GHSA-hj9x-33vw-5g3xWeakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 12× in last 7d / 26× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-08-30 01:22 UTCEPSS rescore
- 2026-08-29 10:24 UTCEG score recompute
- 2026-08-28 21:41 UTCEPSS rescore
- 2026-08-28 10:33 UTCEG score recompute
- 2026-08-27 14:25 UTCEPSS rescore
- 2026-08-27 10:37 UTCEG score recompute
- 2026-08-26 14:46 UTCEPSS rescore
- 2026-08-26 10:44 UTCEG score recompute
- 2026-08-25 13:49 UTCEPSS rescore
- 2026-08-25 10:53 UTCEG score recompute
- 2026-08-24 11:02 UTCEG score recompute
- 2026-08-23 11:11 UTCEG score recompute
- 2026-08-23 00:19 UTCEPSS rescore
- 2026-08-22 11:21 UTCEG score recompute
- 2026-08-21 23:49 UTCEPSS rescore
- 2026-08-21 11:30 UTCEG score recompute
- 2026-08-20 22:55 UTCEPSS rescore
- 2026-08-20 15:10 UTCEG score recompute
- 2026-08-19 17:03 UTCEPSS rescore
- 2026-08-19 15:19 UTCEG score recompute
- 2026-08-18 15:24 UTCEG score recompute
- 2026-08-18 15:08 UTCEG score recompute
- 2026-08-18 13:48 UTCEPSS rescore
- 2026-08-17 21:30 UTCEG score recompute
- 2026-08-17 20:45 UTCEG score recompute
Show 1 moreShow fewer
- 2026-08-17 20:44 UTCMITRE cvelistV5first tracked
Related CVEs(same CWE)
Frequently asked(5)
What is CVE-2026-40506?
When was CVE-2026-40506 disclosed?
Is CVE-2026-40506 actively exploited?
What is the CVSS score of CVE-2026-40506?
How do I remediate CVE-2026-40506?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2026-40506
Is Your Infrastructure Affected by CVE-2026-40506?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.