Technical impact
An authenticated SQL injection flaw exists in the Syndromic Surveillance module of OpenEMR versions prior to 8.5.0. The flaw is triggered by passing crafted data in the POST parameter form_icd_codes[] to the syndromicsurveillance/index endpoint. Attackers can inject a numeric IN() clause and UNION DISTINCT SELECT statements using hex‑encoded literals, leveraging MySQL extractvalue() to achieve error‑based exfiltration of bcrypt password hashes. The injection also permits stacked queries that reset arbitrary user passwords, enabling a clinician‑level user to elevate privileges to full administrative control.
Affected Systems
The vulnerability affects OpenEMR software from the vendor openemr:openemr, specifically all releases before version 8.5.0. Users of these versions should verify their installed version and compare it to the official release notes indicating the fix of the SQL injection issue.
Risk and Exploitability
The CVSS score of 8.7 indicates a high impact weakness. No EPSS score is currently published, and the vulnerability is not listed in CISA’s KEV catalog, but the severity suggests a significant risk. The attack requires authenticated access to the system with Clinician-level privileges; once authenticated, the attacker can inject malicious SQL and obtain credential and database data or reset passwords. The practical exploitability is therefore high for users who have legitimate clinician-level logins, though public exploit availability is uncertain.