CVE-2026-126431
Awaiting Analysis Awaiting Analysis - Queue

Second-Order SQL Injection in OpenEMR

Vulnerability report for CVE-2026-126431, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-13

Last updated on: 2026-11-13

Assigner: VulnCheck

Description

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-13
Last Modified
2026-11-13
Generated
2026-11-13
AI Q&A
2026-11-13
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
openemr openemr to 8.5.0 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-89 The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

OpenEMR before version 8.5.0 has a second-order SQL injection flaw in the Carecoordination CCDA Mapper. Authenticated Carecoordination users can inject malicious SQL into C-CDA field identifiers via the savedata action. This stored input is later used in an SQL IN clause during C-CDA generation, allowing attackers to extract sensitive data like password hashes, portal reset values, and patient records.

Detection Guidance

To detect this vulnerability, check if your OpenEMR version is below 8.5.0. Review Carecoordination CCDA Mapper logs for suspicious SQL-like input in C-CDA field identifiers. Monitor database queries for unusual IN clause patterns during C-CDA generation.

Impact Analysis

This vulnerability allows attackers to extract sensitive data such as patient records, staff password hashes, and portal reset values. An active reset value could lead to patient-portal account takeover. Delay expressions in SQL could also degrade application availability.

Mitigation Strategies

Immediately upgrade OpenEMR to version 8.5.0 or later. Disable Carecoordination and C-CDA generation features if not required. Review and restrict access to Carecoordination users. Monitor for unauthorized data extraction attempts.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-126431. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...