
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-124487 is an improper authorization vulnerability in OpenEMR's FHIR API that allows low-privileged authenticated users to generate and download full-chart Continuity of Care Documents (CCDA) for arbitrary patients. The flaw exists in the non-patient POST /fhir/DocumentReference/$docref route, which applies only a weak patients/demo authorization check instead of binding the request to the authenticated user's authorized patient scope. All OpenEMR versions before 8.4.0 are affected; version 8.4.0 resolves the issue. It carries a CVSS v3.1 score of 6.5 (Medium) and a CVSS v4.0 score of 7.1 (High) (GitHub Advisory, OpenEMR Advisory).
The root cause is CWE-863 (Incorrect Authorization): the non-patient branch of the $docref route in _rest_routes_fhir_r4_us_core_3_1_0.inc.php performs only a patients/demo ACL check and forwards the raw query parameters — including the caller-supplied patient=Patient/<victim-uuid> — unchanged to FhirOperationDocRefRestController::getAll(), without binding the request to an authorized patient as the adjacent patient-scoped branch does. FhirDocRefService::getMostCurrentCCDReference() then resolves the attacker-supplied patient UUID to an internal PID, constructs a PatientDocumentCreateCCDAEvent for that victim, and triggers CcdaGenerator to populate all clinical sections and components before persisting the resulting XML as a patient document in the CCDA category (ACL: patients|docs). Because the CCDA category's ACL is patients|docs — the same permission the attacker already holds — the attacker can immediately retrieve the generated document via the Patient Documents interface. A proof-of-concept was validated against commit acdd99694b45e1f384060e10ca1af1b0de629069 and confirmed retrieval of victim allergy and medication data (OpenEMR Advisory).
A successfully exploited vulnerability enables a low-privileged staff user — holding only patients/demo and patients/docs permissions — to generate and download the complete longitudinal clinical record (CCDA) of any patient in the system, including allergies, medications, diagnoses, encounters, and other sensitive Protected Health Information (PHI). There is no integrity or availability impact; the attack is purely a confidentiality breach. Because the attack can be scripted against any patient UUID, it enables scalable, cross-patient PHI exfiltration across an entire OpenEMR patient population, posing significant HIPAA compliance risk (OpenEMR Advisory, GitHub Advisory).
A proof-of-concept exploit has been published in the OpenEMR security advisory, which details the exact vulnerable endpoint, attacker-controlled parameter, and document retrieval path sufficient to reproduce the attack. The NVD SSVC assessment classifies exploitation status as "poc" with no automation. The EPSS score is approximately 0.21–0.32%, placing it in roughly the 26th percentile for exploitation likelihood within 30 days. There is no evidence of in-the-wild exploitation or threat actor attribution at this time, and the vulnerability is not listed in the CISA KEV catalog (OpenEMR Advisory, GitHub Advisory).
patients/demo (demographics) and patients/docs (documents) permissions — the minimum required by the vulnerable route's authorization check.openemr-dev:api-generate-access-token helper in development environments) to mint a signed FHIR API bearer token for the low-privileged account.patients/demo).patient parameter and an empty date range (which causes the server to generate the most current full-chart CCD):POST /fhir/DocumentReference/$docref?patient=Patient/<victim-uuid>
Authorization: Bearer <token>CCDA_<lname>_<fname>_<date>.xml in the CCDA document category.POST /fhir/DocumentReference/$docref requests from staff accounts that do not normally use the FHIR API; requests where the patient parameter references a UUID belonging to a patient outside the requesting user's normal care team or workflow; high-frequency or scripted requests to this endpoint targeting multiple distinct patient UUIDs in a short time window.POST /fhir/DocumentReference/$docref with patient=Patient/<uuid> query parameters from low-privileged user accounts; FHIR API audit logs recording CCDA generation events attributed to staff users with only demo/docs permissions.ccda database table with user_id values corresponding to low-privileged staff accounts; new documents named CCDA_<lname>_<fname>_*.xml appearing in the CCDA document category for patients not recently seen by the requesting user; bulk creation of CCDA documents across many patients in a short period.The primary remediation is to upgrade OpenEMR to version 8.4.0 or later, which contains the fix (referenced in commit acdd99694b45e1f384060e10ca1af1b0de629069). No official configuration-based workaround has been published; however, administrators should review and restrict FHIR API access for staff accounts that do not require it, and audit existing patients/demo and patients/docs permission assignments to minimize the attack surface. Additionally, review OpenEMR audit logs for any unauthorized CCDA generation activity by low-privileged users prior to patching (OpenEMR Advisory, GitHub Advisory).
The vulnerability was disclosed by OpenEMR maintainer bradymiller via a GitHub Security Advisory on September 13, 2026, and published to the NVD on November 8, 2026. VulnCheck assigned the CVE and published a corresponding advisory. No significant broader media coverage, researcher commentary, or notable social media discussion has been identified beyond standard vulnerability database aggregation (OpenEMR Advisory).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."