CVE-2026-126491 OpenEMR before 8.5.0 SQL Injection via getByPatientDemographics in patient.inc.php
HighCVSS 8.3
EPSS 0.30%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
- Technology
- PHP
Description
OpenEMR before 8.5.0 contains a stored SQL injection vulnerability in getByPatientDemographics() where layout_options field_id values are concatenated into the patient search WHERE clause. Attackers with Layout Editor access can plant a malicious field_id, allowing any authenticated low-privilege user to exfiltrate data from patient_data and users_secure tables.
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 |
|---|---|---|
| open-emr openemr | < 8.5.0 | 8.5.0 |
| openemr | < 8.5.0 | 8.5.0 |
References
- GitHub Security Advisory (GHSA-pc2q-9pcw-v899) exploit vendor-advisory
- VulnCheck Advisory: OpenEMR before 8.5.0 SQL Injection via getByPatientDemographics in patient.inc.php third-party-advisory
- ENISA EUVD EUVD-2026-125133 third-party-advisory