OpenEMR
CVE-2026-134020
MEDIUM
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with any low-privilege staff account
-
DeliverySend GET api/onsiteactivityviews via portal front controller
-
ExploitEmpty bootstrap_pid skips the p_none ACL check
-
ExecutionUnscoped query joins activity to patient_data
-
ImpactExfiltrate all patients' demographics and SSNs
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization checks on every request
MITRE ATT&CK
1 technique across 1 tactic: Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires (1) a running OpenEMR prior to 8.5.0; (2) ANY authenticated staff account - the lowest-privilege role suffices and no patients/demo, demographics, or portal-administration permission is needed; (3) a staff (non-portal-patient) session so that bootstrap_pid is empty, which is exactly what causes GenericRouter.php to skip the p_none route ACL; and (4) at least one onsite_portal_activity row to exist (created whenever a patient uses the portal) - without such a row the endpoint returns no patient data. No victim user interaction is required (single HTTP GET). The key factors that LIMIT exploitation are the need for valid staff credentials (PR:L, so not remote-unauthenticated) and the requirement that patients have actually used the portal; impact is confidentiality-only (read of demographics/SSN), with no integrity or availability effect. |
| Impact | This is a genuine but moderate-priority issue, well-characterized by CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N (base 6.5). The signals are internally consistent: network-reachable (AV:N), trivially executed as a single unauthenticated-to-the-feature HTTP GET (AC:L), but requiring an existing authenticated staff session (PR:L), with pure confidentiality impact (C:H, I:N, A:N) - mass disclosure of patient demographics and Social Security numbers. The GitHub Security Advisory (GHSA-9f97-gqgj-wr6g) includes a complete, self-checking poc.sh, so publicly available exploit code exists; this is a working authorization-bypass reproduction, not merely a theoretical write-up. It is NOT in CISA KEV and no EPSS score is provided in the input, so there is no evidence of active or widespread exploitation - the vuln.today priority is 'this_month', consistent with a serious data-exposure bug that is not an active-exploitation emergency. The principal limiting factor keeping real-world risk below the CVSS impact is PR:L: an attacker already needs valid credentials for any OpenEMR staff account (even the lowest-privilege role with no patients/demo permission). This is therefore primarily an insider / post-credential-compromise privilege-escalation-to-data-disclosure risk rather than a remote-unauthenticated mass breach. The high confidentiality rating is justified by the data class (SSNs, DOB, addresses) in a healthcare/HIPAA context even though access is authenticated. |
| Exploit ScenarioDerived | A low-privilege staff user (for example a scheduling clerk) or an attacker who has phished or otherwise obtained any OpenEMR staff credential logs in and issues a single GET to api/onsiteactivityviews through the portal front controller. Because the route's p_acl='p_none' check is skipped for staff sessions (empty bootstrap_pid) in GenericRouter.php, the unfiltered query returns every portal-using patient's name, DOB, address and SSN in one response. A working, self-verifying PoC (poc.sh) is published in the GitHub Security Advisory, making exploitation reliable and requiring no victim interaction. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 23, 2026
Any authenticated staff account in OpenEMR before 8.5.0 - including a role explicitly denied the patients/demo permission - can retrieve the demographics and Social Security numbers of every patient who has used the patient portal through the unauthenticated-by-design portal API routes GET api/onsiteactivityviews and GET api/onsiteactivityview/{id}. The two routes are declared with p_acl = p_none in portal/patient/_app_config.php, but GenericRouter.php only enforces that flag when bootstrap_pid is non-empty; because staff sessions carry an empty bootstrap_pid, the ACL check is skipped entirely and OnsiteActivityViewController::Query()/Read() return unscoped rows joined to patient_data, with no ownership check in the controller. Rated CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N (6.5) and tagged this_month in the vuln.today priority feed; no CISA KEV entry and no EPSS data were supplied, but a public proof-of-concept script accompanies the vendor advisory and demonstrates the disclosure end to end. Impact is confidentiality-only and requires that at least one onsite_portal_activity row exist (created by ordinary portal use) - otherwise the endpoint returns no patient data.
RemediationAI
Vendor-released patch: upgrade to OpenEMR 8.5.0, which is the release in which the OnsiteActivityView routes are fixed; the change is carried in pull request https://github.com/openemr/openemr/pull/13965 and commit 0d9fc442492ca0a37f39c27a4e9b4fb8fbbd74f7, and the 8.5.0 tag is published at https://github.com/openemr/openemr/releases/tag/v8_5_0. The vendor advisory (GHSA-9f97-gqgj-wr6g) does not document a workaround for deployments that cannot upgrade immediately, so treat the upgrade as the primary action; note that exposure depends on the presence of onsite_portal_activity rows created by ordinary portal use, which means a portal that has never been used will return no patient data from the affected endpoints. Reviewing staff accounts and the ACL groups assigned to them does not mitigate the flaw, since the bypass works for accounts with no patient permissions at all - the missing check, not the account privileges, is the defect. After upgrading, verify that both GET api/onsiteactivityviews and GET api/onsiteactivityview/{id} reject or scope requests from a staff session with an empty bootstrap_pid.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
OpenEMR's portal front controller is built on the Phreeze framework, where routes are mapped to controller actions and annotated with a p_acl value that GenericRouter.php is supposed to enforce. _machine_config.php admits non-portal requests based only on a set authUserID, so a normal staff session reaches the portal dispatcher, but the route ACL branches (the literal onsiteactivityviews Query branch and the wildcard /(:any) Read branch) run the p_none check only when bootstrap_pid is populated - which is true for a logged-in portal patient and empty for staff. The root cause is CWE-862 (Missing Authorization): OnsiteActivityViewController::Read() loads any record by primary key via Phreezer->Get('OnsiteActivityView', $pk) and renders JSON without calling AclMain::aclCheckCore() or comparing ownership, while Query() builds criteria from request parameters without forcing patient scoping, so an unfiltered request returns everything. Both actions are served by OnsiteActivityViewReporter::GetCustomQuery(), an onsite_portal_activity LEFT JOIN patient_data LEFT JOIN users query that selects ss (Social Security number), DOB, name fields, full street address, city/state/postal code and pubpid alongside activity audit fields. Sibling controllers in the same module do bind the caller (OnsitePortalActivityController::Read() compares bootstrap_pid to PatientId; PatientController::Read() calls PortalSessionPidGuard::assertOwnedBySession()), which highlights OnsiteActivityView as the outlier. The trigger is a single HTTP GET; no victim interaction is involved.
Know when Openemr gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Network HTTP endpoint (AV:N), single reliable GET (AC:L), any authenticated staff account required so PR:L not PR:N; discloses SSN/demographics (C:H) with no write or availability impact.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
DescriptionCVE.org
OpenEMR is a free and open source electronic health records and medical practice management application. Prior to 8.5.0, the staff-facing portal endpoints GET api/onsiteactivityviews and GET api/onsiteactivityview/{id}, mapped to OnsiteActivityView.Query and OnsiteActivityView.Read with p_acl = p_none in portal/patient/_app_config.php, are handled without an authorization check for an authenticated staff session whose bootstrap_pid is empty. portal/patient/_machine_config.php admits that authenticated staff session, and portal/patient/fwk/libs/verysimple/Phreeze/GenericRouter.php applies the route ACL only when bootstrap_pid is nonempty, so the staff request bypasses the p_none check. OnsiteActivityViewController::Query() returns records without patient scoping, and OnsiteActivityViewController::Read() loads a record by identifier without checking ACL or ownership; OnsiteActivityViewReporter::GetCustomQuery() joins portal activity to patient demographics and includes names, dates of birth, addresses, and Social Security numbers. Any authenticated staff account, including one without the patients/demo permission, can therefore read sensitive demographics for patients represented by an existing onsite_portal_activity row; at least one such row must exist for the endpoint to return patient data. This issue is fixed in version 8.5.0.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Affected Products (CPE)CVE.org
An authenticated SQL injection vulnerability exists in OpenEMR ≤ 4.1.1 Patch 14 that allows a low-privileged attacker to
Unauthenticated token disclosure in OpenEMR before 8.0.0. CVSS 10.0. PoC and patch available.
Path traversal in OpenEMR 7.0.4 disposeDocument() allows file access. PoC available.
Path traversal in OpenEMR electronic health records before fix allows authenticated users to read arbitrary files on the
SQL injection in OpenEMR electronic health records before fix. Authenticated users can execute arbitrary SQL through the
OpenEMR 7.0.2 is vulnerable to SQL Injection via \openemr\library\classes\Pharmacy.class.php, \controllers\C_Pharmacy.cl
An issue in OpenEMR 7.0.2 allows a remote attacker to escalate privileges viaa crafted POST request using the noteid par
Information disclosure in OpenEMR 5.0.2 to before 8.0.0 exposes sensitive data. PoC and patch available.
Remote code execution in OpenEMR through 8.2.0 lets an authenticated administrator poison the document category tree so
interface/fax/fax_dispatch.php in OpenEMR 4.1.0 allows remote authenticated users to execute arbitrary commands via shel
Authenticated low-privilege users can exploit OpenEMR before 8.3.0 to read and write arbitrary files through the fax/sms
interface/globals.php in OpenEMR 2.x, 3.x, and 4.x before 4.2.0 patch 2 allows remote attackers to bypass authentication
NVD
CVE.org
EPSS
GitHub
Exploit-DB