CVE-2026-40506
Last modified
CVE-2026-40506 is a medium-severity vulnerability rated 6.5/10 on the CVSS scale. 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.. EPSS estimates a 0.45% chance of exploitation in the next 30 days.
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.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| openemr | openemr | < 8.2.0 |
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-40506?
How severe is CVE-2026-40506?
How do I fix CVE-2026-40506?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-40500Rejected reason: This CVE ID has been rejected or withdrawn …
- CVE-2026-40501Cherry Studio versions 1.2.2 through 1.9.12, fixed in commit…8.8
- CVE-2026-40502OpenHarness prior to commit dd1d235 contains a command injec…8.8
- CVE-2026-40503OpenHarness prior to commit dd1d235 contains a path traversa…7.1
- CVE-2026-40504Creolabs Gravity before 0.9.6 contains a heap buffer overflo…9.8
- CVE-2026-40505MuPDF before 1.27 contains an ANSI injection vulnerability i…4.8
- CVE-2026-40507OpenEMR before 8.3.0 contains a reflected cross-site scripti…6.1
- CVE-2026-40508OpenEMR before 8.3.0 contains a stored cross-site scripting …5.4
- CVE-2026-40509OpenEMR before 8.3.0 contains a cross-site request forgery v…4.3
- CVE-2026-4051IBM Engineering Lifecycle Management 7.0.3, 7.1.0, and 7.2.0…7.2
- CVE-2026-40510OpenSC before 0.27.0-rc1, fixed in commit 3f24f0b, contains …6.8
- CVE-2026-40512Rejected reason: This CVE ID has been rejected or withdrawn …
Are you affected by CVE-2026-40506?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
