CVE-2026-126492
Awaiting Analysis Awaiting Analysis - Queue

OpenEMR Second-Order SQL Injection Vulnerability

Vulnerability report for CVE-2026-126492, 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 low-privileged authenticated users to store malicious SQL via library/ajax/addlistitem.php. Attackers can persist a SQL fragment in the recent_patient_columns option_id value, which dynamic_finder.php concatenates into a SELECT query and executes as SQL.

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. Low-privileged authenticated users can inject malicious SQL via library/ajax/addlistitem.php. The attack stores a SQL fragment in the recent_patient_columns option_id value, which later gets concatenated into a SELECT query in dynamic_finder.php and executed.

Detection Guidance

Check OpenEMR version for versions before 8.5.0. Inspect recent_patient_columns option_id values in the database for malicious SQL fragments. Review dynamic_finder.php for improper SQL concatenation.

Impact Analysis

An attacker could exploit this to read, modify, or delete sensitive patient data in the OpenEMR database. They might also gain unauthorized access to other system functions depending on database permissions.

Compliance Impact

This vulnerability could lead to unauthorized access or exposure of protected health information (PHI), violating HIPAA requirements for safeguarding patient data. It may also result in GDPR non-compliance if EU patient data is involved, as it could lead to unauthorized processing or breaches of personal data.

Mitigation Strategies

Upgrade OpenEMR to version 8.5.0 or later. Remove any suspicious SQL fragments from recent_patient_columns. Audit database queries for improper concatenation in dynamic_finder.php.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-126492. 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...