CVE-2026-40506: OpenEMR Path Traversal Arbitrary Directory Deletion via standard_tables_manage.php

Published Aug 17, 2026
·
Updated

OpenEMR before 8.2.0 contains a path traversal vulnerability in the standardtablesmanage.php interface where the db GET parameter is passed without validation to tempdircleanup(), 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 dicomframe.php, an unauthenticated attacker can deliver a crafted URL that triggers arbitrary recursive directory deletion within an authenticated Superuser's session.

Affected Software

1 affected component
OpenEMR OpenEMR<8.2.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade OpenEMR to a version that resolves this vulnerability.

    Fixed in 8.2.0
  2. Configuration

    Update standard_tables_manage.php so the db GET parameter is validated/sanitized (no traversal sequences) before it is used by temp_dir_cleanup() to build the directory path.

    standard_tables_manage.php (OpenEMR) db GET parameter validation before temp_dir_cleanup() = Validate db parameter to reject traversal sequences and enforce it maps to an intended subdirectory within temp_dir_cleanup() target directory

Event History

Aug 17, 2026
CVE Published
via MITRE·08:39 PM
Data Sourced
via MITRE·08:39 PM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-40506?

The severity of CVE-2026-40506 is rated as medium with a score of 6.5.

2

How do I fix CVE-2026-40506?

To fix CVE-2026-40506, upgrade OpenEMR to version 8.2.0 or later.

3

What does CVE-2026-40506 affect?

CVE-2026-40506 affects OpenEMR versions prior to 8.2.0.

4

What type of vulnerability is CVE-2026-40506?

CVE-2026-40506 is a path traversal vulnerability that can lead to arbitrary directory deletion.

5

Can CVE-2026-40506 allow attackers to delete files?

Yes, CVE-2026-40506 can allow attackers to recursively delete directories due to improper validation of parameters.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203