Sceawere
Vulnerability Detail
CVE-2026-40509UPDATED Verified Sceawere Triage Sources: NVD / CISA KEV
OpenEMR DICOM Viewer CSRF
Vulnerability Metadata
- Severity
- Medium
- Score / CVSS
- 4.3
- Creation Date
- 2h ago
- Vendor
- openemr
- Product
- openemr
- Attack Type
- Cross-Site Request Forgery (CSRF)
- Vector String
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
- Attack Complexity
- LOW
Narrative and Response
Description
OpenEMR before 8.3.0 contains a cross-site request forgery vulnerability in the DICOM viewer. The web_path GET parameter in the DICOM viewer page is embedded unsanitized as a URL without validation against expected path formats. An attacker can craft a URL that causes an authenticated user with Patients - Documents permissions to make authenticated requests to arbitrary OpenEMR endpoints, enabling forced logout and other state-changing actions.
Executive Summary
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Technical Details
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Mitigations
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
References
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Additional Metadata
{
"score": "4.3",
"pubDate": "2026-08-19T15:17:01.867Z",
"pubdate": "2026-08-19T15:17:01.867Z",
"executiveSummary": "OpenEMR before 8.3.0 suffers from a cross-site request forgery vulnerability localized within the DICOM viewer component. This security flaw enables a remote attacker to construct a malicious URL that, when accessed by an authenticated user possessing Patients - Documents permissions, forces the browser to issue unintended authenticated requests to arbitrary OpenEMR endpoints. The resulting impact includes forced session termination and the execution of arbitrary state-changing actions within the application context. The risk implications involve unauthorized administrative or patient-data modifications performed under the victim's session context without their explicit consent. Exploitation requires the targeted user to be authenticated and to interact with the attacker-supplied URL, leveraging the browser's automatic credential inclusion in cross-origin requests.",
"technicalDetails": "The root cause of this vulnerability lies in the insecure handling of the web_path GET parameter within the DICOM viewer page. The application directly embeds the unsanitized web_path parameter as a URL destination without enforcing strict validation mechanisms against expected path formats or destination domains. Because the application fails to implement robust anti-CSRF tokens or SameSite cookie protections on the vulnerable endpoint, an attacker can leverage standard browser behaviors to induce unauthorized cross-site requests.\nThe attack flow proceeds as follows: An attacker crafts a malicious URL pointing to the OpenEMR DICOM viewer endpoint, supplying a manipulated web_path parameter designed to target a specific sensitive internal endpoint or trigger a state-changing action, such as a forced logout or data modification function. The attacker then delivers this payload to an authenticated victim via social engineering vectors, such as phishing or malicious web pages. When the victim's browser renders the resource or follows the link, it automatically transmits the session cookies associated with the OpenEMR instance. The server processes the request under the victim's security context, treating it as a legitimate action.\nThe vulnerable component is the DICOM viewer interface within OpenEMR. Affected versions include all deployments prior to version 8.3.0. Exploitation requires network exposure to the OpenEMR instance, an active user session, and specific privilege requirements restricted to users with Patients - Documents permissions. The payload behavior dictates the targeted state-changing action, resulting in post-exploitation impact that compromises application integrity, session availability, and operational continuity."
}