Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with any low-privilege OpenEMR account
-
ExploitHijack session pid via set_pt.php (no ACL check)
-
ExecutionPOST to download_template.php with valid CSRF
-
ImpactReceive rendered document exposing victim patient PHI
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization checks on every request
MITRE ATT&CK
1 technique across 1 tactic: Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires an authenticated OpenEMR account of ANY role - including built-in low-privilege roles such as 'Front Office' that are explicitly denied the Documents module - plus a valid CSRF token (obtainable by any logged-in user) and at least one document template present in sites/<site>/documents/doctemplates/ (the PoC used PatientIntake.txt). No patients/docs or clinical ACL is needed, and the patient-selection step (set_pt.php) itself has no ACL gate, so the attacker does not need UI search/select rights. Limiting factors: exploitation is gated behind valid authentication (not anonymous/remote-unauthenticated), requires a configured template file to exist, and affects only versions prior to 8.3.0 - upgrading to 8.3.0 is the fix. The form_filename parameter is sanitized against path traversal, so this is strictly an authorization failure, not arbitrary file read. |
| Impact | This is a genuine authorization-bypass PHI-disclosure flaw (CWE-862) with a credible real-world risk profile, though it is not an emergency. The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N = 6.5 Medium) is well-supported by the evidence: network-reachable, low complexity, and authenticated-but-any-role (PR:L), with high confidentiality impact and no integrity or availability impact. The GHSA advisory contains a detailed step-by-step PoC that the reporter tested live against current master using the project's own docker stack, demonstrating that a built-in 'Front Office' account denied the Documents module can still retrieve another patient's full clinical summary - so exploitability is concrete, not theoretical. However, no CISA KEV listing is present in the input and no EPSS score was provided, so there is no signal of active or widespread exploitation; the vuln.today decision label is 'this_month', indicating prioritized remediation rather than drop-everything urgency. The SSVC/decision signals and the medium CVSS are consistent with each other: high technical impact on confidentiality, but gated behind an authenticated account, which limits mass automatable exploitation. Net: a real priority for any OpenEMR deployment with multiple low-trust user accounts (reception, scheduling, external staff), driven by HIPAA-reportable PHI exposure, but not a high-CVSS-but-low-real-risk paper finding, nor an actively-exploited emergency. EPSS and KEV data are absent - exploitation-probability cannot be quantified from the input. |
| Exploit ScenarioDerived | A low-privilege OpenEMR user (e.g. a reception/scheduling account in the 'Front Office' ACL group that is denied the Documents module) calls library/ajax/set_pt.php to point their own session at an arbitrary patient ID, then POSTs to interface/patient_file/download_template.php with a valid CSRF token and a template filename. The server renders and streams a document containing the victim patient's name, DOB, address, phone, encounter chief complaint, referring provider, allergies, medications, and problem list - despite the user lacking patients/docs access. A detailed, reporter-tested PoC for this exact chain is published in the GHSA advisory; given AV:N/AC:L the request sequence is simple and requires no user interaction, only an authenticated session and a configured template file. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 05, 2026
OpenEMR versions prior to 8.3.0 enforce only CSRF validation on interface/patient_file/download_template.php, which renders and streams a document template populated with the session's active patient's demographics, encounter data, allergies, medications and problem list. Because library/ajax/set_pt.php likewise lacks an ACL check, any authenticated account - including built-in low-privilege roles such as 'Front Office' that receive a 403 on the Documents module - can point its own session at an arbitrary patient ID and then retrieve that patient's PHI despite never holding the patients/docs capability. Exploitation requires a valid login, a valid CSRF token, and at least one template file present under sites/<site>/documents/doctemplates/; the vendor advisory includes a reproduction walkthrough, but no independently verified exploit tooling is confirmed, and there is no CISA KEV entry. Fixed in OpenEMR 8.3.0.
RemediationAI
Upgrade to OpenEMR 8.3.0, which is the vendor-released fix and adds the missing patients/docs ACL check to interface/patient_file/download_template.php as well as authorization checks to related legacy endpoints (release notes at https://github.com/openemr/openemr/releases/tag/v8_3_0, fix PR at https://github.com/openemr/openemr/pull/13200, commit 7973cab3fe3f2fd2374ed71c02605e3c93491c36, advisory at https://github.com/openemr/openemr/security/advisories/GHSA-r3q3-p493-95x8). If upgrading cannot be done immediately, block or restrict access to /interface/patient_file/download_template.php and /library/ajax/set_pt.php at the reverse proxy or web-server layer for all but known-privileged accounts - the trade-off is that legitimate document-template fetches and patient-context switching break for everyone outside the allowlist. As a narrower interim measure, remove template files from sites/<site>/documents/doctemplates/ when they are not actively needed, since exploitation depends on a template existing to render; the trade-off is loss of the document-template feature until the templates are restored after patching. Because both endpoints authenticate but do not authorize, tightening session/role provisioning alone does not mitigate the issue - any account able to log in can still bind its session to an arbitrary patient ID until 8.3.0 is deployed.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The root cause is CWE-862 (Missing Authorization) in a PHP web application. OpenEMR gates sensitive actions through AclMain::aclCheckCore($section, $value) calls - for example controllers/C_Document.class.php requires patients/docs before rendering the 'Fetch' button that links to download_template.php, and sibling scripts in interface/patient_file/ require patients/pat_rep or admin/super. The download script instead reads $pid from the active session and performs only CsrfUtils::checkCsrfInput(), never verifying that the caller may view documents, demographics or clinical data for that patient. The trust placed in $_SESSION['pid'] is the second half of the problem: library/ajax/set_pt.php writes an arbitrary caller-supplied set_pid value into that session key and is also protected only by a CSRF check, so the 'currently selected patient' is not an authorization decision at all. Notably, the form_filename parameter is run through check_file_dir_name() in library/sanitize.inc.php (whitelist regex [A-Za-z0-9_.-], no slashes), so this is strictly an access-control failure and not path traversal or arbitrary file read. The upstream fix (PR #13200, commit 7973cab) adds AclMain::aclCheckCore('patients','docs') to the template download path and applies comparable ACL checks to a number of related legacy PHP entry points (custom/ajax_download.php, qrda export/download scripts, interface/main/messages/save.php, and the DORN compendium installer).
Know when Openemr gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Any authenticated user over the network with no interaction can read another patient's PHI, so PR:L, AC:L, UI:N, C:H; the flaw only discloses data, so I:N and A:N.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
OpenEMR is a free and open source electronic health records and medical practice management application. Prior to 8.3.0, library/ajax/set_pt.php allows any authenticated user to set an arbitrary patient identifier in the active session without an ACL check, and interface/patient_file/download_template.php trusts that session value while enforcing only CSRF validation. A low-privilege user can select another patient and download a rendered document template containing the patient's demographics, encounter information, allergies, medications, and problem list despite lacking patients/docs access. This issue is fixed in version 8.3.0.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
An authenticated SQL injection vulnerability exists in OpenEMR ≤ 4.1.1 Patch 14 that allows a low-privileged attacker to
Unauthenticated token disclosure in OpenEMR before 8.0.0. CVSS 10.0. PoC and patch available.
Path traversal in OpenEMR 7.0.4 disposeDocument() allows file access. PoC available.
Path traversal in OpenEMR electronic health records before fix allows authenticated users to read arbitrary files on the
SQL injection in OpenEMR electronic health records before fix. Authenticated users can execute arbitrary SQL through the
OpenEMR 7.0.2 is vulnerable to SQL Injection via \openemr\library\classes\Pharmacy.class.php, \controllers\C_Pharmacy.cl
An issue in OpenEMR 7.0.2 allows a remote attacker to escalate privileges viaa crafted POST request using the noteid par
Information disclosure in OpenEMR 5.0.2 to before 8.0.0 exposes sensitive data. PoC and patch available.
Remote code execution in OpenEMR through 8.2.0 lets an authenticated administrator poison the document category tree so
interface/fax/fax_dispatch.php in OpenEMR 4.1.0 allows remote authenticated users to execute arbitrary commands via shel
Authenticated low-privilege users can exploit OpenEMR before 8.3.0 to read and write arbitrary files through the fax/sms
interface/globals.php in OpenEMR 2.x, 3.x, and 4.x before 4.2.0 patch 2 allows remote attackers to bypass authentication
EUVD-2026-117763
NVD
CVE.org
EPSS
GitHub
Exploit-DB