CVE-2026-126465
Awaiting Analysis Awaiting Analysis - Queue

SQL Injection in OpenEMR Patient Portal API

Vulnerability report for CVE-2026-126465, 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 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.

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. It exists in the patient portal's api/onsiteactivityviews endpoint where unquoted Id_BitwiseAnd Criteria values allow authenticated staff users to inject malicious SQL code. Attackers can close bitwise parentheses and append OR or UNION SELECT clauses to access sensitive data like patient PHI, staff password hashes, MySQL authentication strings, and API tokens.

Detection Guidance

To detect this vulnerability, inspect OpenEMR logs for suspicious SQL queries in the patient portal's api/onsiteactivityviews endpoint. Look for patterns like appended OR or UNION SELECT clauses. Check for unauthorized access to sensitive tables such as patient PHI, staff password hashes, or MySQL authentication strings.

Impact Analysis

If you are an OpenEMR user running versions before 8.5.0, an attacker with staff access could exploit this to steal patient health information, staff credentials, database credentials, and API tokens. This could lead to identity theft, unauthorized data access, or further network compromise.

Compliance Impact

This vulnerability likely violates GDPR and HIPAA due to unauthorized access to patient PHI. GDPR requires protection of personal data while HIPAA mandates safeguards for protected health information. A breach could result in legal penalties, fines, and reputational damage for organizations handling such data.

Mitigation Strategies

Immediately upgrade OpenEMR to version 8.5.0 or later to patch the SQL injection flaw. If upgrading is not possible, apply input validation to sanitize Id_BitwiseAnd Criteria values and enforce strict access controls on the api/onsiteactivityviews endpoint.

Chat Assistant

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