CVE-2026-126488
Awaiting Analysis Awaiting Analysis - Queue

SQL Injection in OpenEMR Patient Portal

Vulnerability report for CVE-2026-126488, 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 an SQL injection vulnerability in the patient portal OnsiteDocument.Query endpoint, where mass-assigned _BitwiseAnd criteria parameters are placed unquoted into SQL with only quote-character escaping. Authenticated portal patients can inject SQL outside their per-patient scope to read the entire database, including other patients' demographics and users_secure password hashes.

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

This is a SQL injection vulnerability in OpenEMR versions before 8.5.0 affecting the patient portal's OnsiteDocument.Query endpoint. The flaw occurs when the _BitwiseAnd parameter is mass-assigned and inserted into SQL queries without proper quoting, only escaping quote characters. Authenticated portal patients can inject malicious SQL to bypass access controls and access sensitive data across the entire database, including other patients' demographics and password hashes.

Detection Guidance

To detect this vulnerability, monitor network traffic for suspicious requests to the OpenEMR patient portal endpoint /onsite_document/query with _BitwiseAnd parameters. Check logs for SQL syntax errors or unusual queries. Use tools like SQLMap to test for SQL injection in the OnsiteDocument.Query endpoint.

Impact Analysis

If you use OpenEMR versions before 8.5.0, an attacker with portal access could exploit this to read all patient data, steal password hashes, and potentially gain broader database access. Even low-privileged patient portal users can bypass access controls to view sensitive information.

Compliance Impact

This vulnerability likely violates HIPAA due to unauthorized access to protected health information and GDPR due to unauthorized processing of personal data. It enables large-scale data breaches that would require breach notifications under both regulations.

Mitigation Strategies

Immediately upgrade OpenEMR to version 8.5.0 or later. If upgrading is not possible, restrict access to the patient portal endpoint /onsite_document/query and disable the _BitwiseAnd parameter functionality. Review database logs for signs of exploitation and rotate all user credentials.

Chat Assistant

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