CVE-2026-124444

OpenEMR before 8.4.0 SQL Injection via OnsiteDocument Query API

Published Nov 8, 2026 CVSS 4.0 · 7.1 High EPSS < 1% KEV · Not listed
Description
OpenEMR before 8.4.0 contains a mass assignment vulnerability in the patient portal OnsiteDocument query API that lets request parameters set bitwise criteria filters whose values are placed unquoted into the SQL WHERE clause. Authenticated patient portal users can inject SQL via parameters such as Id_BitwiseAnd to read any database table, including other patients' records and staff password hashes.

Analysis

AI-generated

Technical impact

OpenEMR before version 8.4.0 has a mass assignment flaw in the OnsiteDocument query API of the patient portal. Parameters such as Id_BitwiseAnd are incorporated directly into the SQL WHERE clause without quoting, giving authenticated patient portal users the ability to inject SQL code. Through this vulnerability the attacker can read any database table, exposing personal health information and potentially staff credentials. The weakness is a classic SQL injection defect, identified as CWE‑89.

Affected Systems

All OpenEMR deployments running versions older than 8.4.0, regardless of the specific minor or patch release, are affected. The issue exists in the patient portal component of the OpenEMR application and is not isolated to a particular operating system or database platform.

Risk and Exploitability

The CVSS score of 7.1 classifies this flaw as high severity, and because it requires an authenticated user session, the attack vector is application‑level. The exploit does not depend on elevated privileges beyond a normal patient portal login, making it practically feasible for a user who has legitimate portal access. EPSS data is not available, and the vulnerability is not listed in the CISA KEV catalog. Overall, the risk is high for any OpenEMR instance serving patients and staff.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the official OpenEMR upgrade to version 8.4.0 or later to remove the vulnerable OnsiteDocument API implementation.
  • If an upgrade is not immediately possible, configure the web application to restrict or disable the Id_BitwiseAnd parameter and apply input validation so that only numeric values beneath an allowed threshold are accepted.
  • After applying any change, verify that database access rights for the patient portal user accounts are read‑only and that the OnsiteDocument endpoint no longer permits arbitrary WHERE clause injection.
  • Consider monitoring database query logs for abnormal parameter values that may indicate attempted exploitation.

Generated by OpenCVE AI on November 8, 2026 at 14:55 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Openemr
Openemr openemr
Vendors & Products Openemr
Openemr openemr
Type Values Removed Values Added
Description OpenEMR before 8.4.0 contains a mass assignment vulnerability in the patient portal OnsiteDocument query API that lets request parameters set bitwise criteria filters whose values are placed unquoted into the SQL WHERE clause. Authenticated patient portal users can inject SQL via parameters such as Id_BitwiseAnd to read any database table, including other patients' records and staff password hashes.
Title OpenEMR before 8.4.0 SQL Injection via OnsiteDocument Query API
First Time appeared Open-emr
Open-emr openemr
Weaknesses CWE-89
CPEs cpe:2.3:a:open-emr:openemr:*:*:*:*:*:*:*:*
Vendors & Products Open-emr
Open-emr openemr
References
Metrics cvssV3_1

{'score': 7.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N'}

cvssV4_0

{'score': 7.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-89

    Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 9, 2026, 2:25 PM
Reserved
Nov 8, 2026, 2:14 AM
Status
Analyzed
Published
Nov 8, 2026, 2:18 PM
Modified
Nov 23, 2026, 9:10 PM