---
id: "CVE-2026-126465"
page: "https://infrastack.ai/live/CVE-2026-126465"
kind: "vulnerability"
aliases: ["CVE-2026-126465"]
title: "OpenEMR: SQL injection in patient portal lets staff read PHI and hashes"
severity: "high"
cvss: 7.1
epss: null
exploited: false
status: "open"
category: "other"
products: []
ecosystems: []
tags: ["healthcare", "openemr", "other", "php", "self-hosted"]
not_affected_if: ["no-staff-accounts-untrusted", "openemr-8.5.0-or-later"]
published_at: "2026-11-13T10:17:55+00:00"
first_seen_at: "2026-11-13T10:47:24+00:00"
updated_at: "2026-11-13T10:52:59+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-126465", "first_seen_at": "2026-11-13T10:47:24+00:00"}]
exploit_sources: []
---

# OpenEMR: SQL injection in patient portal lets staff read PHI and hashes

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

OpenEMR, an electronic health records system, has an SQL injection flaw in its patient portal api/onsiteactivityviews endpoint, fixed in version 8.5.0. Any authenticated staff user can inject SQL and read patient health data, staff password hashes, MySQL credentials and API tokens.

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

## How to check

- Check the installed OpenEMR version; versions before `8.5.0` are affected.
- Confirm whether the patient portal and the `api/onsiteactivityviews` endpoint are enabled on the deployment.

## Fix

- Upgrade OpenEMR to `8.5.0` or later.

## Timeline

- 2026-11-13T10:47:24+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-126465

## Documents

- [advisory] Vendor advisory: github.com https://github.com/openemr/openemr/security/advisories/GHSA-vvj8-xpx8-p293
- [advisory] Third-party advisory: www.vulncheck.com https://www.vulncheck.com/advisories/openemr-before-8.5.0-sql-injection-via-onsiteactivityview-bitwiseand-criteria

## From the sources

OpenEMR before 8.5.0 contains an SQL injection vulnerability in the patient portal api/onsiteactivityviews endpoint that allows any authenticated staff user to inject SQL through unquoted Id_BitwiseAnd Criteria values. Attackers can close the bitwise parenthesis and append OR or UNION SELECT clauses to read patient PHI, staff password hashes, MySQL authentication strings, and API tokens.

---

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