---
id: "CVE-2026-126431"
page: "https://infrastack.ai/live/CVE-2026-126431"
kind: "vulnerability"
aliases: ["CVE-2026-126431"]
title: "OpenEMR: stored SQL injection through C-CDA field identifiers leaks patient records"
severity: "high"
cvss: 7.6
epss: null
exploited: false
status: "open"
category: "runtime"
products: []
ecosystems: []
tags: ["healthcare", "openemr", "runtime", "self-hosted"]
not_affected_if: ["no-carecoordination-users", "version-8.5.0-or-later"]
published_at: "2026-11-13T10:17:49+00:00"
first_seen_at: "2026-11-13T10:47:22+00:00"
updated_at: "2026-11-13T10:52:38+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-126431", "first_seen_at": "2026-11-13T10:47:22+00:00"}]
exploit_sources: []
---

# OpenEMR: stored SQL injection through C-CDA field identifiers leaks patient records

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

OpenEMR before 8.5.0 lets an authenticated Carecoordination user store malicious C-CDA field identifiers through the savedata action. When C-CDA generation later builds an IN clause from them, the stored input runs as SQL, so an attacker can extract password hashes, portal reset values and patient records.

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

## How to check

- Check the OpenEMR version in the installed application; affected versions are those before `8.5.0`.

## Fix

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

## Timeline

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

## Documents

- [advisory] Vendor advisory: github.com https://github.com/openemr/openemr/security/advisories/GHSA-8rgh-38j4-6pxf
- [advisory] Third-party advisory: www.vulncheck.com https://www.vulncheck.com/advisories/openemr-before-8.5.0-second-order-sql-injection-via-carecoordination-ccda-mapper

## From the sources

OpenEMR before 8.5.0 contains a second-order sql injection vulnerability that allows authenticated Carecoordination users to store malicious C-CDA field identifiers through the savedata action. Attackers can inject SQL into the IN clause built by fetchFormValues() during C-CDA generation to extract password hashes, portal reset values, and patient records.

---

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