GHSA-pc2q-9pcw-v899: OpenEMR before 8.5.0 SQL Injection via getByPatientDemographics in patient.inc.php

Published Nov 13, 2026

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 OSV·09:34 AM
Data Sourced
via OSV·09:34 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who is realistically exposed to exploitation?

OpenEMR deployments where a user has Layout Editor access are exposed, because that access can be used to plant a malicious layout_options field_id. After the payload is planted, any authenticated low-privilege user can trigger data exfiltration.

2

What access does an attacker need?

An attacker needs Layout Editor access to introduce the malicious field_id. Exploitation also relies on an authenticated low-privilege user being able to use the affected patient search path.

3

What information can be exposed?

The vulnerability can be used to exfiltrate data from the patient_data and users_secure tables.

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