{"id":"CVE-2026-49142","summary":"OpenEMR Before 8.5.0 SQL Injection via form_icd_codes[]","details":"OpenEMR before 8.5.0 contains an authenticated SQL injection vulnerability in the Syndromic Surveillance module that allows users with Clinician-level privileges to read and modify arbitrary database contents by submitting crafted values in the form_icd_codes[] POST parameter to the syndromicsurveillance/index endpoint. Attackers can inject an unquoted numeric IN() clause and UNION DISTINCT SELECT statement using hex-encoded literals to abuse MySQL extractvalue() for error-based exfiltration of bcrypt password hashes and execute stacked queries that reset passwords, resulting in full administrative account takeover.","aliases":["GHSA-w99c-jwcm-24hh"],"modified":"2026-11-12T02:48:32.563554077Z","published":"2026-10-29T12:37:16.791Z","database_specific":{"cwe_ids":["CWE-89"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/49xxx/CVE-2026-49142.json","cna_assigner":"VulnCheck"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/49xxx/CVE-2026-49142.json"},{"type":"ADVISORY","url":"https://github.com/openemr/openemr/releases/tag/v8_5_0"},{"type":"ADVISORY","url":"https://github.com/openemr/openemr/security/advisories/GHSA-w99c-jwcm-24hh"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-49142"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/openemr-before-sql-injection-via-form-icd-codes"},{"type":"FIX","url":"https://github.com/openemr/openemr/commit/9b52cc0fc3a4eddd9fa7a096f6a3ac2a57d772d0"},{"type":"FIX","url":"https://github.com/openemr/openemr/pull/14329"},{"type":"PACKAGE","url":"https://github.com/openemr/openemr"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/openemr/openemr","events":[{"introduced":"0"},{"fixed":"c1b2b8bcbe91aa81858f7ba8b25c31d9a82639a5"},{"fixed":"9b52cc0fc3a4eddd9fa7a096f6a3ac2a57d772d0"}],"database_specific":{"extracted_events":[{"source":"CPE_RANGE","cpe":"cpe:2.3:a:open-emr:openemr:*:*:*:*:*:*:*:*","range":[{"introduced":"0"},{"fixed":"8.5.0"}]},{"source":"REFERENCES_COMMIT","range":[{"fixed":"9b52cc0fc3a4eddd9fa7a096f6a3ac2a57d772d0"}]},{"range":[{"fixed":"c1b2b8bcbe91aa81858f7ba8b25c31d9a82639a5"}],"source":"REFERENCES_TAG","original_tag":"v8_5_0"}]}}],"versions":["v3_0_1","v3_0_0","v2_9_0","v2_8_3","v2_8_2","v2_8_1","v2_8_0","v2_7_3-rc1","v2_7_2","v2_7_2-rc2","v2_7_2-rc1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-49142.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"}]}