{"id":"CVE-2026-126491","aliases":["CVE-2026-126491"],"related":[],"kind":"vulnerability","state":"published","title":"OpenEMR before 8.5.0 SQL Injection via getByPatientDemographics in patient.inc.php","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"}],"published":"2026-11-13T09:34:45.073Z","modified":"2026-11-17T14:17:35.040Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"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","score":8.3,"rating":"HIGH"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"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","score":8.3,"rating":"HIGH"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:L/A:N","score":7.6,"rating":"HIGH"}],"cwes":["CWE-89"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"8.5.0","status":"affected"},{"type":"semver","version":"8.5.0","status":"unaffected"}],"vendor":"openemr","product":"openemr","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"8.5.0"}],"vendor":"open-emr","product":"openemr","cpe":"cpe:2.3:a:open-emr:openemr:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/openemr/openemr/security/advisories/GHSA-pc2q-9pcw-v899","tags":["exploit","vendor-advisory"],"sources":["cvelist","nvd"]},{"url":"https://www.vulncheck.com/advisories/openemr-before-8.5.0-sql-injection-via-getbypatientdemographics-in-patient-inc-php","tags":["third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":["StarPlatinu","farisv"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-11-17T13:57:19.064Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-126491","url":"https://www.cve.org/CVERecord?id=CVE-2026-126491","licence":"CVE Terms of Use","modified":"2026-11-17T13:59:34.539Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-126491","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-126491","licence":"Public domain","modified":"2026-11-17T14:17:35.040Z"}],"updatedAt":"2026-11-25T22:59:50.671Z","epss":{"score":0.00347,"percentile":0.30265,"date":"2026-12-01T12:00:22.000Z"}}