CVE-2026-126491: OpenEMR before 8.5.0 SQL Injection via getByPatientDemographics in patient.inc.php

Published Nov 13, 2026
·
Updated

OpenEMR before 8.5.0 contains a stored SQL injection vulnerability in getByPatientDemographics() where layoutoptions fieldid values are concatenated into the patient search WHERE clause. Attackers with Layout Editor access can plant a malicious fieldid, allowing any authenticated low-privilege user to exfiltrate data from patientdata and userssecure tables.

Affected Software

1 affected component
OpenEMR OpenEMR<8.5.0

Event History

Nov 13, 2026
CVE Published
via MITRE·09:34 AM
Data Sourced
via MITRE·09:34 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:17 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who needs to act for this issue to be exploitable?

An attacker needs Layout Editor access to create a malicious layout_options field_id. After that payload is stored, any authenticated low-privilege user can trigger the vulnerable patient search path.

2

What data can be exposed?

The stored SQL injection can be used to exfiltrate data from the patient_data and users_secure tables.

3

Are unauthenticated users affected?

The described exploitation requires authenticated users. The initial payload requires Layout Editor access, and exploitation by lower-privilege users still requires authentication.

4

Which versions are affected?

OpenEMR versions before 8.5.0 are affected.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203