---
id: "CVE-2026-124462"
page: "https://infrastack.ai/live/CVE-2026-124462"
kind: "vulnerability"
aliases: ["CVE-2026-124462"]
title: "OpenEMR: capitalised Pid parameter lets patients read other patients' documents"
severity: "high"
cvss: 7.1
epss: null
exploited: false
status: "open"
category: "other"
products: []
ecosystems: []
tags: ["healthcare", "openemr", "other", "patient-portal", "phi"]
not_affected_if: ["patient-portal-disabled", "version-8.3.0-or-later"]
published_at: "2026-11-08T14:18:14+00:00"
first_seen_at: "2026-11-08T14:48:40+00:00"
updated_at: "2026-11-08T14:49:43+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-124462", "first_seen_at": "2026-11-08T14:48:40+00:00"}]
exploit_sources: []
---

# OpenEMR: capitalised Pid parameter lets patients read other patients' documents

Link for people: https://infrastack.ai/live/CVE-2026-124462 (this .md is for agents)

OpenEMR before 8.3.0 has an authorization check that only looks at a lowercase pid parameter, so a logged-in patient portal user can send a capitalised Pid and load another patient's onsite documents. An attacker gets protected health information (PHI) belonging to other patients.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Check the OpenEMR version in the installation; versions before `8.3.0` are listed as affected.
- Confirm whether the patient portal is enabled and reachable by patients.
- Review access logs for requests to `api/onsitedocuments` with a `Pid` parameter.

## Fix

- OpenEMR: move to `8.3.0` or later (the sources state the fix is in versions before 8.3.0 being affected).

## Timeline

- 2026-11-08T14:48:40+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-124462

## Documents

- [advisory] Vendor advisory: github.com https://github.com/openemr/openemr/security/advisories/GHSA-39jh-r9hg-rwg7
- [advisory] Third-party advisory: www.vulncheck.com https://www.vulncheck.com/advisories/openemr-before-8.3.0-patient-portal-idor-via-case-sensitive-pid-parameter

## From the sources

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.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
