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.
Fix
Patch, vendor advisory and mitigation references on NVD 2
- https://github.com/openemr/openemr/pull/14329 issue-tracking, patch
- https://github.com/openemr/openemr/commit/9b52cc0fc3a4eddd9fa7a096f6a3ac2a57d772d0 patch, issue-tracking
Every line above is quoted from NVD, CISA, Microsoft, the vendor's own advisory or DISA; nothing is generated.
Change history 1
- First seenCVSS 8.7 · openemrNVD modified 2026-10-29 12:37
Affected (CPE criteria) 0
NVD has not attached CPE configurations yet.
References 5
- https://github.com/openemr/openemr/security/advisories/GHSA-w99c-jwcm-24hh vendor-advisory
- https://github.com/openemr/openemr/releases/tag/v8_5_0 release-notes
- https://github.com/openemr/openemr/pull/14329 issue-tracking, patch
- https://github.com/openemr/openemr/commit/9b52cc0fc3a4eddd9fa7a096f6a3ac2a57d772d0 patch, issue-tracking
- https://www.vulncheck.com/advisories/openemr-before-sql-injection-via-form-icd-codes third-party-advisory