{"id":"CVE-2026-40506","summary":"OpenEMR Path Traversal Arbitrary Directory Deletion via standard_tables_manage.php","details":"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.","aliases":["GHSA-hj9x-33vw-5g3x"],"modified":"2026-09-11T03:30:39.859458286Z","published":"2026-08-17T20:39:03.333Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40506.json","cna_assigner":"VulnCheck","cwe_ids":["CWE-22"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40506.json"},{"type":"ADVISORY","url":"https://github.com/openemr/openemr/releases/tag/v8_2_0"},{"type":"ADVISORY","url":"https://github.com/openemr/openemr/security/advisories/GHSA-hj9x-33vw-5g3x"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40506"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/openemr-path-traversal-arbitrary-directory-deletion-via-standard-tables-manage-php"},{"type":"REPORT","url":"https://github.com/openemr/openemr/pull/11951"},{"type":"FIX","url":"https://github.com/openemr/openemr/commit/2d8a69f0f343c8e8c6ee1b42d224c24a7a4ba415"},{"type":"PACKAGE","url":"https://github.com/openemr/openemr"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/openemr/openemr","events":[{"introduced":"0"},{"fixed":"6125a2fd8089c8bcc3848071c1293c60e27a7585"},{"fixed":"2d8a69f0f343c8e8c6ee1b42d224c24a7a4ba415"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"fixed":"8.2.0"}],"source":["DESCRIPTION","REFERENCES"]}}],"versions":["v3_0_1","v3_0_0","v2_9_0","v2_8_3","v2_8_2","v2_8_1","v2_8_0","v2_7_3-rc1","v2_7_2","v2_7_2-rc2","v2_7_2-rc1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-40506.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"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"}]}