CVE-2026-40506
published high CVSS 4.0 · 7.0OpenEMR Path Traversal Arbitrary Directory Deletion via standard_tables_manage.php
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| openemr | — | openemr0 to < 8.2.0 · Other versions: affected | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 7.0 / 10
- Severity
- high
- Provider
- VulnCheck · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 6.5 | medium | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H | en: GENERAL |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| openemr | openemr | 0 to < 8.2.0 (affected · semver)Default: affected | VulnCheck · cna |
Weaknesses
1- CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
5- Patch Commit https://github.com/openemr/openemr/commit/2d8a69f0f343c8e8c6ee1b42d224c24a7a4ba415
- Pull Request https://github.com/openemr/openemr/pull/11951
- OpenEMR v8_2_0 Release Notes https://github.com/openemr/openemr/releases/tag/v8_2_0
- GitHub Security Advisory (GHSA-hj9x-33vw-5g3x) https://github.com/openemr/openemr/security/advisories/GHSA-hj9x-33vw-5g3x
- https://www.vulncheck.com/advisories/openemr-path-traversal-arbitrary-directory-deletion-via-standard-tables-manage-php
Provider assertions
2VulnCheck · cna
OpenEMR Path Traversal Arbitrary Directory Deletion via standard_tables_manage.php
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 804a5966e5de37db61195d5014959e0f9ab6433c6c10e6f4a83cedeade521e4a
- Ingested
- 08 Nov 2026, 14:13:57 UTC
- Source record
- Official CVE record