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.
- CVSS
- 7.6High
- Chance of exploitation (EPSS)
- 0.35%
- Published
- Nov 13, 2026
- In the news
- Not yet
What to do
A serious SQL injection flaw in Openemr that can be attacked over the network by someone with an account. No attacks are reported yet; it can go in your normal patch cycle.
Action: Apply the vendor's update or follow its advisory.
Fixed in: 8.5.0
Affected versions
- Openemr
- Before 8.5.0
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.
Affected products
Get alerts for these →Timeline 1
Latest change: CVE-2026-126491 published (CVSS 7.6) (Nov 13, 2026)
News, advisories, exploit code, scanner detection and exploitation, newest first.
Fri, Nov 13, 2026
- CVECVE-2026-126491 published (CVSS 7.6)CVE Program · 10:17 UTC
References 3
- github.com ExploitVendor Advisory /openemr/openemr/security/advisories/GHSA-pc2q-9pcw-v899
- github.com ExploitVendor Advisory /openemr/openemr/security/advisories/GHSA-pc2q-9pcw-v899
- www.vulncheck.com /advisories/openemr-before-8.5.0-sql-injection-via-getbypatientdemographics-in-patient-inc-php