Skip to main content

OpenEMR CVE-2026-134020

MEDIUM
Missing Authorization (CWE-862)
2026-11-23 GitHub_M
6.5
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate with any low-privilege staff account
  2. Delivery
    Send GET api/onsiteactivityviews via portal front controller
  3. Exploit
    Empty bootstrap_pid skips the p_none ACL check
  4. Execution
    Unscoped query joins activity to patient_data
  5. Impact
    Exfiltrate 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Vendor (GitHub_M) PRIMARY 6.5 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
vuln.today AI 6.5 MEDIUM

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.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

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

EPSS Score
0.4%
Top 62% exploitable
Prevalence
Medium
Most widely deployed open-source EHR, but niche to healthcare providers
Social Media
1
Sightings
Data Quality
4 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.4%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

Affected Products (CPE)CVE.org

cpe:2.3:a:openemr:openemr:*:*:*:*:*:*:*:*
CVE-2013-10044 HIGH POC
8.7 Aug 01

An authenticated SQL injection vulnerability exists in OpenEMR ≤ 4.1.1 Patch 14 that allows a low-privileged attacker to

CVE-2026-24898 CRITICAL POC
10.0 Mar 03

Unauthenticated token disclosure in OpenEMR before 8.0.0. CVSS 10.0. PoC and patch available.

CVE-2026-24848 CRITICAL POC
9.9 Mar 03

Path traversal in OpenEMR 7.0.4 disposeDocument() allows file access. PoC available.

CVE-2026-24849 CRITICAL POC
9.9 Feb 25

Path traversal in OpenEMR electronic health records before fix allows authenticated users to read arbitrary files on the

CVE-2026-24908 CRITICAL POC
9.9 Feb 25

SQL injection in OpenEMR electronic health records before fix. Authenticated users can execute arbitrary SQL through the

CVE-2024-22611 CRITICAL POC
9.8 Apr 03

OpenEMR 7.0.2 is vulnerable to SQL Injection via \openemr\library\classes\Pharmacy.class.php, \controllers\C_Pharmacy.cl

CVE-2024-37734 CRITICAL POC
9.8 Jun 26

An issue in OpenEMR 7.0.2 allows a remote attacker to escalate privileges viaa crafted POST request using the noteid par

CVE-2026-25146 CRITICAL POC
9.6 Mar 03

Information disclosure in OpenEMR 5.0.2 to before 8.0.0 exposes sensitive data. PoC and patch available.

CVE-2026-39932 CRITICAL POC
9.4 Aug 03

Remote code execution in OpenEMR through 8.2.0 lets an authenticated administrator poison the document category tree so

CVE-2012-0992 HIGH POC
8.5 Feb 07

interface/fax/fax_dispatch.php in OpenEMR 4.1.0 allows remote authenticated users to execute arbitrary commands via shel

CVE-2026-124450 CRITICAL POC
9.3 Nov 08

Authenticated low-privilege users can exploit OpenEMR before 8.3.0 to read and write arbitrary files through the fax/sms

CVE-2015-4453 MEDIUM
5.0 Jul 05

interface/globals.php in OpenEMR 2.x, 3.x, and 4.x before 4.2.0 patch 2 allows remote attackers to bypass authentication

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy