high8.3
CVE-2026-126491
OpenEMR before 8.5.0 contains a stored SQL injection vulnerability in getByPatientDemographics() where layout_options field_id values are concatenated into the…
Impact
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.
An attacker can exploit this over the network, with an administrator account, without any action by a user. If it succeeds: high risk of data being read, low risk of data or systems being changed.
Affected products · Openemr
| Product | Affected versions |
|---|---|
| Openemr | before 8.5.0 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/openemr/openemr/security/advisories/GHSA-pc2q-9pcw-v899
- https://www.vulncheck.com/advisories/openemr-before-8.5.0-sql-injection-via-getbypatientdemographics-in-patient-inc-php
- https://github.com/advisories/GHSA-pfrx-3wpm-pv74
- https://nvd.nist.gov/vuln/detail/CVE-2026-126491