
Cloud Vulnerability DB
A community-led vulnerabilities database
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).
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).
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).
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).
/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'OnsiteActivityView Query endpoint using the captured session cookie:curl -s -b /tmp/oe.cookies \
'http://TARGET/portal/patient/index.php?_REWRITE_COMMAND=api/onsiteactivityviews'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.GET api/onsiteactivityview/{id} to retrieve a single patient's joined demographics (GitHub Advisory)./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.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.OnsiteActivityView API from accounts that are simultaneously denied access to /interface/patient_file/summary/demographics.php (GitHub Advisory).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).
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).
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."