OpenEMR
OpenEMR Before 8.5.0 SQL Injection via form_icd_codes[]
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 8.5.0
Fixed in 8.5.0
Mitigation
Upgrade openemr to 8.5.0 or later.
References
- Vendor advisory github.com/openemr/openemr/security/advisories…
- Release notes github.com/openemr/openemr/releases/tag/v8_5_0
- Patch github.com/openemr/openemr/pull/14329
1 more
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.