Skip to content
Threat Feed
high advisory

OpenEMR: SQL injection vulnerability (CVE-2026-126488)

OpenEMR versions prior to 8.5.0 contain an SQL injection vulnerability in the patient portal that allows authenticated users to access unauthorized database content, including password hashes.

CVE search metadata

CVE search record: CVE-2026-126488. Severity: high. CVSS: 7.7. KEV: no. Product: OpenEMR. Brief: OpenEMR: SQL injection vulnerability (CVE-2026-126488). Brief link: https://feed.craftedsignal.io/briefs/2026-11-openemr-sqli-cve-2026-126488/

Triage facts

Revision 1
Applicability
OpenEMR
Evidence
Unknown
Severity
High
Action
Immediate escalation
Sources
1 public source
Freshness
Revision 1Nov 13, 12:36 UTC
Detection
1 rule
Vulnerabilities
1 CVE
Source quality
A1Likely

OpenEMR versions prior to 8.5.0 are vulnerable to an SQL injection attack within the 'OnsiteDocument.Query' endpoint. The flaw occurs because mass-assigned '_BitwiseAnd' criteria parameters are incorrectly handled and placed into SQL queries with insufficient sanitization, relying solely on quote-character escaping. This allows an authenticated portal patient to bypass per-patient scope restrictions.

Impact

Authenticated attackers can exploit this vulnerability to read the entire database, leading to the unauthorized exfiltration of sensitive information, including patient demographics and encrypted users_secure password hashes.

Recommendation

Upgrade OpenEMR to version 8.5.0 or later immediately to address the vulnerable parameter handling in the patient portal.


Immediate actions

Upgrade OpenEMR to 8.5.0 or later to remediate CVE-2026-126488.

IT Operations 48h

Threat Hunt

Audit web access logs for anomalous SQL injection patterns in the _BitwiseAnd parameter.

T1190 high high confidence convert to detection

Data: Web server access logs

Detection coverage 1

Detect CVE-2026-126488 Exploitation - SQL Injection in OnsiteDocument.Query

high

Detects attempts to exploit CVE-2026-126488 by monitoring HTTP POST requests to the OnsiteDocument.Query endpoint containing the vulnerable _BitwiseAnd parameter.

sigma tactics: initial_access techniques: T1190 sources: webserver

Detection queries are available on the platform. Get full rules →