Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

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

Quick assessment

Affected
openemr openemr
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

openemr是OpenEMR组织开源的一个支持文档管理与企业应用场景的医疗信息管理平台。 OpenEMR 8.2.0之前版本存在路径遍历漏洞,该漏洞源于standard_tables_manage.php接口中db GET参数未经验证直接传递给temp_dir_cleanup(),将参数值拼接到PHP临时目录路径并递归删除结果目录,攻击者可利用db参数中的路径遍历序列解析到预期临时目录之外,并结合dicom_frame.php中的开放重定向,在已认证的超级用户会话中触发任意递归目录删除。

CVSS 6.5 · Medium EPSS 0.45% · P37

Affected Version Matrix 1

VendorProduct Version RangeStatus
openemr openemr < 8.2.0 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-40506

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
OpenEMR Path Traversal Arbitrary Directory Deletion via standard_tables_manage.php
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
对路径名的限制不恰当(路径遍历)
Source: CVE Program / CVE List V5
Vulnerability Title
OpenEMR 路径遍历漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
openemr是OpenEMR组织开源的一个支持文档管理与企业应用场景的医疗信息管理平台。 OpenEMR 8.2.0之前版本存在路径遍历漏洞,该漏洞源于standard_tables_manage.php接口中db GET参数未经验证直接传递给temp_dir_cleanup(),将参数值拼接到PHP临时目录路径并递归删除结果目录,攻击者可利用db参数中的路径遍历序列解析到预期临时目录之外,并结合dicom_frame.php中的开放重定向,在已认证的超级用户会话中触发任意递归目录删除。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
openemr openemr 0 ~ 8.2.0 -

II. Public POCs for CVE-2026-40506

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-40506

登录查看更多情报信息。

Patches & Fixes for CVE-2026-40506 (2)

Vendor Advisories for CVE-2026-40506 (2)

Vendor Pages for CVE-2026-40506 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-40506

No comments yet


Leave a comment