---
cve: "CVE-2026-40506"
severity: "HIGH"
cvss: 7.0
epss: "0.6%"
vendor: "OpenEMR"
kev: false
exploited: false
published: "2026-08-17 21:16:44"
tags: [cve, security, high]
source: tsecurity.de CVE-Dossier
exported: "2026-09-22T23:19:24+02:00"
---

# CVE-2026-40506

> 7.0 HIGH · 🧪 PoC

## Beschreibung

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.

## CVSS-Vektor

```
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
```

| Metrik | Wert | Bewertung |
|---|---|---|
| AV Angriffsvektor | Netzwerk | bad |
| AC Komplexität | Gering | bad |
| PR Privilegien | Hoch | good |
| UI Interaktion | Keine | bad |

## Patch verfügbar (OSV)

- 6125a2fd8089c8bcc3848071c1293c60e27a7585 (Commit)
- 2d8a69f0f343c8e8c6ee1b42d224c24a7a4ba415 (Commit)

## Referenzen

- <https://github.com/openemr/openemr/security/advisories/GHSA-hj9x-33vw-5g3x>
- <https://github.com/openemr/openemr/releases/tag/v8_2_0>
- <https://github.com/openemr/openemr/pull/11951>
- <https://github.com/openemr/openemr/commit/2d8a69f0f343c8e8c6ee1b42d224c24a7a4ba415>
- <https://www.vulncheck.com/advisories/openemr-path-traversal-arbitrary-directory-deletion-via-standard-tables-manage-php>

---
_Exportiert aus dem [tsecurity.de CVE-Dossier](https://tsecurity.de/cve?cve=CVE-2026-40506) · Datenquellen: EUVD (ENISA), NVD, OSV, CISA KEV, FIRST EPSS, Exploit-DB, BSI BITS_
