OPENEMR · CVE-2026-126491 · Other
NO FIX YET · SEE WHAT TO DO
OpenEMR, an electronic health records system, concatenates layout field IDs into its patient search SQL query without escaping them. A user who can edit form layouts can plant a malicious field ID that lets any logged-in low-privilege user extract data from the patient and user-credential tables.
first public Oct 28, 2026 · 1 source
Check it with your coding agent
It reads this page and tells you if your code or app is affected.
Any OpenEMR deployment before 8.5.0 where users can reach the patient search. The attacker needs Layout Editor access to plant the payload, then any authenticated user can trigger the read. Installations that restrict Layout Editor access to trusted administrators reduce exposure, but the sources do not say that this is a full mitigation.
Not affected if openemr-8.5.0-or-later
Who cares healthcare, openemr, self-hosted
version.php; versions below 8.5.0 are listed as affected.8.5.0 or later.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.
This page as .md · .json · CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:L/VA:N/SC:H/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
NVD data is provided by NIST and is public domain. Posts quoted belong to their authors.
Are you affected?
Ask from here. InfraStack checks the affected versions against your stack and answers in your inbox.
InfraStack checks the affected versions against your stack and answers in Slack, with the evidence and the fix.
InfraStack checks it against your stack and answers on your report, with the evidence and the fix.