Description
OpenEMR before 8.3.0 contains an insecure direct object reference vulnerability in OnsiteDocumentController::Query() that allows authenticated portal patients to bypass the lowercase pid authorization guard by supplying a capitalised Pid parameter. Attackers can request the api/onsitedocuments endpoint with Pid set to another patient's id to overwrite the session-pinned criteria and read other patients' onsite documents containing PHI.
Published: 2026-11-08
Score: 7.1 High
EPSS: n/a
KEV: No
Impact: Unintended disclosure of protected health information to logged‑in portal users
Action: Apply Patch
AI Analysis

Impact

OpenEMR versions prior to 8.3.0 contain an insecure direct object reference in the OnsiteDocumentController::Query() method. By passing a capitalised Pid parameter, an authenticated patient can bypass the existing lowercase authorization guard, replace the session‑pinned criteria, and request the /api/onsitedocuments endpoint with another patient’s identifier. This allows the attacker to read that patient’s onsite documents, which may include personal health information (PHI). The principal weakness is a CWE‑639 direct object reference vulnerability. The impact is the confidentiality breach of PHI rather than system compromise or denial of service.

Affected Systems

OpenEMR 2.x and 3.x deployments running any release before the 8.3.0 release are affected. The vulnerability pertains to the Patient Portal interface for all users authenticated within the portal. The affected product is OpenEMR, with the vendor identified as openemr:openemr.

Risk and Exploitability

The CVSS score of 7.1 indicates a high severity vulnerability. No EPSS score is available, and the vulnerability is not listed in the CISA KEV catalog, suggesting it may not yet be widely exploited. Based on the description, the attack vector operates over the web and requires an authenticated user session; attackers cannot exploit the flaw without first logging into the portal. The ability to read other patients’ documents provides a valuable target for internal attackers or compromised accounts and should be treated with priority. However, the lack of publicly available exploit code or widespread exploitation means the immediate risk, while significant, is moderate relative to more actively exploited vulnerabilities.

Generated by OpenCVE AI on November 8, 2026 at 14:46 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade OpenEMR to version 8.3.0 or later to receive the fixed lowercasing enforcement and access control changes.
  • Ensure that the Patient Portal’s authentication infrastructure is tightly coupled to user identity and does not allow cross‑patient parameter manipulation—i.e., validate that the Pid parameter matches the logged‑in user’s record.
  • Monitor API access logs for anomalous Pid values or cross‑user requests, and alert on repeated attempts to read other patients’ documents.

Generated by OpenCVE AI on November 8, 2026 at 14:46 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sun, 08 Nov 2026 13:30:00 +0000

Type Values Removed Values Added
Description OpenEMR before 8.3.0 contains an insecure direct object reference vulnerability in OnsiteDocumentController::Query() that allows authenticated portal patients to bypass the lowercase pid authorization guard by supplying a capitalised Pid parameter. Attackers can request the api/onsitedocuments endpoint with Pid set to another patient's id to overwrite the session-pinned criteria and read other patients' onsite documents containing PHI.
Title OpenEMR before 8.3.0 Patient Portal IDOR via Case-Sensitive Pid Parameter
First Time appeared Open-emr
Open-emr openemr
Weaknesses CWE-639
CPEs cpe:2.3:a:open-emr:openemr:*:*:*:*:*:*:*:*
Vendors & Products Open-emr
Open-emr openemr
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N'}

cvssV4_0

{'score': 7.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N'}


Subscriptions

Open-emr Openemr
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-11-08T13:15:49.196Z

Reserved: 2026-11-08T02:15:45.476Z

Link: CVE-2026-124462

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-11-08T14:18:14.010

Modified: 2026-11-08T14:18:14.010

Link: CVE-2026-124462

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-08T15:15:14Z

Weaknesses
  • CWE-639

    Authorization Bypass Through User-Controlled Key