Vulnerability DatabaseCVE-2026-134020

CVE-2026-134020: 
OpenEMR vulnerability analysis and mitigation

Overview

CVE-2026-134020 is a missing authorization vulnerability in OpenEMR's patient portal OnsiteActivityView API that allows any authenticated staff account to read sensitive patient demographics — including names, dates of birth, addresses, and Social Security numbers — without the required patients/demo permission. It affects all OpenEMR versions prior to 8.5.0 and was published on November 23, 2026. The vulnerability was reported by researcher skraft9 and disclosed via GitHub Security Advisory GHSA-9f97-gqgj-wr6g. It carries a CVSS v3.1 base score of 6.5 (Medium) (GitHub Advisory, Feedly).

Technical details

The root cause is CWE-862 (Missing Authorization) in OnsiteActivityViewController.php. The two affected endpoints — GET api/onsiteactivityviews and GET api/onsiteactivityview/{id} — are declared with p_acl => 'p_none' in portal/patient/_app_config.php, but the ACL enforcement in GenericRouter.php only applies when bootstrap_pid is non-empty (i.e., for portal patient sessions). Staff sessions have an empty bootstrap_pid, so the ACL check is skipped entirely. OnsiteActivityViewController::Query() returns all records without patient scoping, and ::Read() loads any record by primary key without ownership verification; the underlying OnsiteActivityViewReporter::GetCustomQuery() performs a SQL JOIN across onsite_portal_activity, patient_data, and users, selecting SSN (ss), DOB, full name, and mailing address. Unlike sibling controllers (OnsitePortalActivityController, PatientController) that enforce session-bound PID checks, OnsiteActivityViewController performs no authorization check whatsoever (GitHub Advisory, Fix PR).

Impact

Successful exploitation results in bulk disclosure of highly sensitive Protected Health Information (PHI) and Personally Identifiable Information (PII) for every patient who has used the OpenEMR patient portal. A single unauthenticated GET request from any staff account — even one explicitly denied the patients/demo permission — returns all portal-using patients' names, dates of birth, Social Security numbers, and mailing addresses. Integrity and availability are not affected; the impact is entirely on confidentiality. In multi-facility deployments, this crosses all internal ACL boundaries the system is designed to enforce, and the exposed data (SSN, DOB, address) constitutes the core PHI/PII a healthcare records system is legally required to protect (GitHub Advisory).

Exploitability

A proof-of-concept shell script (poc.sh) was included in the security advisory, demonstrating exploitation with a single HTTP GET request after authenticating as any low-privilege staff account. No special tools or elevated permissions are required beyond a valid OpenEMR staff session. The EPSS score is 0.0, indicating low current automated exploitation probability, and there is no evidence of in-the-wild exploitation or CISA KEV catalog listing as of the disclosure date. The only precondition beyond an authenticated account is that at least one onsite_portal_activity row exists, which is created by ordinary patient portal use (GitHub Advisory, Feedly).

Exploitation steps

  1. Reconnaissance: Identify an OpenEMR instance running a version prior to 8.5.0 with the patient portal enabled (the portal is a standard, widely enabled feature). Confirm the instance is reachable over the network.
  2. Obtain any staff credentials: Acquire credentials for any authenticated OpenEMR staff account, including the lowest-privilege role (e.g., a scheduling-only clerk with no patient demographics permission).
  3. Authenticate and capture session cookie: Send a POST login request to /interface/main/main_screen.php?auth=login&site=default with valid credentials and store the session cookie:
    curl -s -c /tmp/oe.cookies -b /tmp/oe.cookies -o /dev/null \
      --data-urlencode 'new_login_session_management=1' \
      --data-urlencode 'authUser=clerk_nodemo' \
      --data-urlencode 'clearPass=Password123!' \
      'http://TARGET/interface/main/main_screen.php?auth=login&site=default'
  4. Call the vulnerable API endpoint: Issue a single GET request to the OnsiteActivityView Query endpoint using the captured session cookie:
    curl -s -b /tmp/oe.cookies \
      'http://TARGET/portal/patient/index.php?_REWRITE_COMMAND=api/onsiteactivityviews'
  5. Extract patient data: Parse the JSON response, which contains ss (SSN), DOB, fname, lname, street, city, state, postal_code, and portal activity audit fields for every patient with a portal activity row — all returned without any authorization check.
  6. Read individual records: Optionally, query specific records by ID via GET api/onsiteactivityview/{id} to retrieve a single patient's joined demographics (GitHub Advisory).

Indicators of compromise

  • Network: Unusual HTTP GET requests to /portal/patient/index.php?_REWRITE_COMMAND=api/onsiteactivityviews or /portal/patient/index.php?_REWRITE_COMMAND=api/onsiteactivityview/<id> from staff session cookies; large JSON responses from these endpoints containing "ss": fields.
  • Logs: Web server access logs showing repeated or bulk GET requests to the api/onsiteactivityviews endpoint from staff accounts, especially accounts not normally associated with patient demographics access; OpenEMR audit logs showing access to portal activity view endpoints by accounts lacking patients/demo ACL.
  • Behavioral: Staff accounts with restricted roles (e.g., scheduling-only, billing-only) accessing portal API endpoints; access to the OnsiteActivityView API from accounts that are simultaneously denied access to /interface/patient_file/summary/demographics.php (GitHub Advisory).

Mitigation and workarounds

Upgrade to OpenEMR version 8.5.0, which was released on October 27, 2026, and contains the fix for this vulnerability. The fix (PR #13965, commit 0d9fc44) adds a new p_staff ACL designation to the affected routes in _app_config.php, updates GenericRouter.php to enforce this designation for staff sessions, and adds explicit patientportal/portal and patients/demo ACL checks at the start of OnsiteActivityViewController::Query() and ::Read(). No configuration-based workaround is available for unpatched versions; disabling the patient portal entirely would prevent exploitation but is not practical for most deployments (OpenEMR Release, Fix PR, Fix Commit).

Community reactions

The vulnerability was disclosed responsibly through GitHub's security advisory process by researcher skraft9, with the OpenEMR maintainer bradymiller publishing the advisory. The fix was developed by contributor sjpadgett and merged promptly (September 17, 2026, ahead of the October 27, 2026 release). The advisory notes that this is a single missed authorization site rather than a systemic gap, as sibling controllers in the same directory correctly enforce authorization. No significant broader media coverage or social media discussion has been identified beyond the GitHub advisory and standard vulnerability database aggregators (GitHub Advisory, Fix PR).

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-134020MEDIUM6.5
  • OpenEMR logoOpenEMR
  • cpe:2.3:a:open-emr:openemr
NoYesNov 23, 2026
CVE-2026-126493MEDIUM4.8
  • 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