{"id":"CVE-2026-40506","published":"2026-08-17T20:39:03Z","modified":"2026-11-08T14:02:52Z","title":"OpenEMR Path Traversal Arbitrary Directory Deletion via standard_tables_manage.php","vendor":"openemr","product":"openemr","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00699,"percentile":0.54034,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/openemr/openemr/security/advisories/GHSA-hj9x-33vw-5g3x","tags":["vendor-advisory"]},{"url":"https://github.com/openemr/openemr/releases/tag/v8_2_0","tags":["release-notes"]},{"url":"https://github.com/openemr/openemr/pull/11951","tags":["issue-tracking","patch"]},{"url":"https://github.com/openemr/openemr/commit/2d8a69f0f343c8e8c6ee1b42d224c24a7a4ba415","tags":["patch"]},{"url":"https://www.vulncheck.com/advisories/openemr-path-traversal-arbitrary-directory-deletion-via-standard-tables-manage-php","tags":["third-party-advisory"]}],"priority":{"score":15.4,"factors":[{"name":"EPSS percentile","points":10.81},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"openemr","affectedVersions":[{"vendor":"openemr","product":"openemr","versions":["< 8.2.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-08-18T14:58:45.772559Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-60396","exploited":false,"provenance":"source"}}