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.
CVE-2026-126488
CVSS base score
7.7 (v3.1)
Severity
HIGH
Attack vector
Network
Weakness
CWE-89
Last modified
November 13, 2026
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
Affected products
open-emr openemr
References
- github.com Exploit, Vendor Advisory
- www.vulncheck.com Third Party Advisory