{"id":"CVE-2026-126491","published":"2026-11-13T09:34:45Z","modified":"2026-11-17T13:59:34Z","title":"OpenEMR before 8.5.0 SQL Injection via getByPatientDemographics in patient.inc.php","vendor":"openemr","product":"openemr","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.6,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00302,"percentile":0.23484,"provenance":"source"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://github.com/openemr/openemr/security/advisories/GHSA-pc2q-9pcw-v899","tags":["vendor-advisory"]},{"url":"https://www.vulncheck.com/advisories/openemr-before-8.5.0-sql-injection-via-getbypatientdemographics-in-patient-inc-php","tags":["third-party-advisory"]}],"priority":{"score":10.0,"factors":[{"name":"EPSS percentile","points":4.7},{"name":"CVSS severity","points":5.32}]},"vendorSlug":"openemr","affectedVersions":[{"vendor":"openemr","product":"openemr","versions":["< 8.5.0"]}],"fixedVersions":[{"vendor":"openemr","product":"openemr","versions":["8.5.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-11-17T13:57:19.064980Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-125133","exploited":false,"provenance":"source"}}