CVE-2026-126488 OpenEMR before 8.5.0 SQL Injection via OnsiteDocument.Query _BitwiseAnd
HighCVSS 8.3
EPSS 0.40%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
Description
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.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| open-emr openemr | < 8.5.0 | 8.5.0 | Fixed |
| openemr | < 8.5.0 | 8.5.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| openemr | < 8.5.0 | 8.5.0 |
| open-emr openemr | < 8.5.0 | 8.5.0 |
References
- GitHub Security Advisory (GHSA-g2xw-rvhq-x543) exploit vendor-advisory
- VulnCheck Advisory: OpenEMR before 8.5.0 SQL Injection via OnsiteDocument.Query _BitwiseAnd third-party-advisory
- ENISA EUVD EUVD-2026-125136 third-party-advisory