Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as low-privilege staff account
-
DeliveryCapture own session CSRF token
-
ExploitRequest ccda_gateway.php?action=view/dl with chosen pid
-
ExecutionLoop over sequential pid values
-
ImpactExfiltrate other patients' C-CDA PHI
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Object-level authorization, IDOR prevention
|
| Exploitation Conditions | Requires three concrete preconditions, all stated in the advisory: (1) the OpenEMR global 'ccda_alt_service_enable' must be set to 1 or 3 to activate the C-CDA alternate service - this is NON-default (default '0' = Off), which materially limits exposure to sites that enabled C-CDA for Care Coordination/dashboard; (2) any authenticated core staff session, including low-privilege roles with no patients/pat_rep clinical ACL (front-desk or billing suffices); and (3) a valid csrf_token_form, which the attacker self-mints from their own authenticated session (present on any logged-in page) and is therefore not a real barrier. The primary limiting factors are the non-default service-enable global and the requirement for valid staff credentials (PR:L); there is no user-interaction or victim-side requirement. Where the service is enabled, no additional clinical ACL is needed, so exploitation against enabled configurations is straightforward. |
| Impact | This is a genuine, actionable priority but not a drop-everything emergency, and the signals are mostly consistent. The CVSS 4.0 vector is network-exploitable with low attack complexity and no user interaction, but it requires low privileges (PR:L) - exploitation is gated behind a valid staff session, so this is an insider/compromised-account threat rather than an internet-facing unauthenticated one. The vuln.today decision label is 'this_week' (not act_now/emergency), consistent with the absence of a CISA KEV listing and no EPSS score in the provided data. No active exploitation is confirmed. However, the flaw is highly automatable: patient ids are sequential auto-increment integers, so a single low-privilege account can enumerate and bulk-exfiltrate every patient's C-CDA (medications, problems, allergies, immunizations, results, procedures) - a mass-PHI/HIPAA exposure that raises real-world urgency above what the privilege requirement alone suggests. One conflict must be flagged: the input CVSS 4.0 vector asserts VI:H/VA:H (high integrity and availability impact), but the description and the vendor advisory describe a read-only cross-patient disclosure with no write or denial capability - the advisory's own score is CVSS:4.0 .../VC:H/VI:N/VA:N = 7.1. The 8.7 input score therefore appears to over-state integrity/availability impact; treat this as a confidentiality-only issue. A public PoC reference exists in the GHSA advisory (full step-by-step reproduction); it is not verified as working standalone exploit code. |
| Exploit ScenarioDerived | A disgruntled or compromised front-desk/billing employee - an account intentionally given no patients/pat_rep clinical ACL - logs in, grabs the CSRF token present on any authenticated page, and requests ccdaservice/ccda_gateway.php?action=view&pid=1, then 2, 3, and so on. Each request returns another patient's full C-CDA, letting the attacker script a loop over sequential pids to dump the entire practice's PHI. The GHSA advisory includes detailed reproduction steps (a public PoC reference, not verified as a packaged working exploit), and with AV:N/AC:L the requests are trivial once authenticated. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 13, 2026
Cross-patient disclosure of complete C-CDA clinical documents in OpenEMR before 8.5.0 allows any authenticated staff account - including front-desk or billing users that hold no patients/pat_rep clinical ACL - to read other patients' medications, problems, allergies, immunizations, results and procedures by requesting ccdaservice/ccda_gateway.php with sequential pid values (action=view or action=dl). The endpoint verifies only that some staff session exists and that a self-mintable CSRF token is present, but never authorizes the specific patient identifier, so the sequential pid becomes a direct object reference into every record in the practice. The upstream advisory publishes a public proof-of-concept walkthrough validated in a test environment, but there is no CISA KEV listing and no confirmed active exploitation; real-world exposure is narrowed by the non-default ccda_alt_service_enable global (default '0'), which must be set to 1 or 3 for the gateway to serve documents.
RemediationAI
Vendor-released patch: OpenEMR 8.5.0 - upgrade from any pre-8.5.0 release, per advisory GHSA-6fxw-69cq-m7g6 (https://github.com/openemr/openemr/security/advisories/GHSA-6fxw-69cq-m7g6). The fix applies the authorization the sibling report entry point already enforces, adding an AclMain::aclCheckCore('patients', 'pat_rep') gate before the action dispatch in ccdaservice/ccda_gateway.php and binding the pid to the acting session's patient context; sites that patch in place should ensure that check is present and should not rely on the report_ccd_view '/interface/login_screen.php' content-sniff, which is not an authorization control. If upgrading immediately is not possible, the advisory's workaround is to set ccda_alt_service_enable to '0' when C-CDA generation is not required - the trade-off is that Care Coordination and dashboard C-CDA generation stop working - or to restrict access to ccdaservice/ccda_gateway.php at the web server or reverse-proxy layer so that only users holding patients/pat_rep can reach it, which requires per-role request filtering and may break legitimate C-CDA downloads for authorized staff if the rules are too broad. Restricting or disabling the feature also removes the enumeration vector for sequential pid values that makes bulk PHI harvesting practical.
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
OpenEMR is a PHP electronic health record application whose record-level security is enforced through AclMain::aclCheckCore() permission checks (for example the 'patients'/'pat_rep' pair used by interface/patient_file/report/patient_report.php) plus CsrfUtils::checkCsrfInput() for request forgery protection. The affected file, ccdaservice/ccda_gateway.php, implements only the authentication half: it reads $session->get('authUserID') and bails out when empty, then checks the CSRF token, and from there takes $_REQUEST['action'] and the pid from the request; because a fresh session carries no pid, interface/globals.php stores the attacker-supplied value, which is consumed by the 'view' branch (generateCCDHtml($pid)) and the 'dl' branch (zip download), with src/Services/CDADocumentService.php passing the same pid straight into generateCCDXml() without any ownership or ACL verification. That maps to CWE-639 (Authorization Bypass Through User-Controlled Key) with CWE-862 (Missing Authorization) as the root cause: the code authenticates but does not authorize, turning a gateway into an un-ACL'd back door to data whose intended entry point is permission-gated. Additional preconditions are the ccda_alt_service_enable global being 1 or 3 (checked via isServiceEnabled()) and a valid csrf_token_form, which the attacker mints from their own logged-in session and which therefore provides no real barrier. Note that the published CVSS 4.0 vector inflates impact with integrity and availability components; the validated behaviour is confidentiality-only (VC:H with VI:N/VA:N), consistent with a read-only disclosure flaw, and the content-sniff for '/interface/login_screen.php' in the report_ccd_view branch is not an authorization control.
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
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Network-reachable endpoint, low complexity, requires a low-privilege authenticated staff session (PR:L); read-only cross-patient PHI disclosure gives C:H with no integrity or availability impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
OpenEMR before 8.5.0 contains a missing authorization vulnerability in ccdaservice/ccda_gateway.php that allows any authenticated low-privilege staff user to retrieve other patients' C-CDA documents. Attackers can request the view or dl action with sequential pid values and their own CSRF token to enumerate and exfiltrate medications, problems, allergies, and immunizations.
Technical POC Analysis
CWE-639 (Authorization Bypass Through User-Controlled Key), also described in the advisory as CWE-862, in ccdaservice/ccdagateway.php.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
CVE-2026-126472 in OpenEMR before 8.5.0 allows any authenticated staff account-regardless of clinical role-to access and download complete C-CDA clinical documents for any patient by sequentially iterating patient IDs. This exposes sensitive data such as medications, problems, allergies, immunizations, results, and procedures across the entire patient population, creating a significant privacy and compliance risk, though exploitation requires the non-default ccda_alt_service_enable setting to be enabled.
Apply vendor patch.
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.
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-124952
GHSA-wwcf-fq8w-6877
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB