Original description
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 software
- OpenEMR < 8.5.0 Fixed in: 8.5.0 repository or package match
Details
- Published
- 2026-10-29
- Last modified
- 2026-11-10
- CVSS vector
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:- CWE
- CWE-89
- EPSS (30-day exploit probability)
- 0.33% (percentile 27)
References
- cve.org/CVE-2026-49142
- nvd.nist.gov/vuln/detail/CVE-2026-49142
- github.com/openemr/openemr/commit/9b52cc0fc3a4eddd9fa7a096f6a3ac2a57d772d0
- github.com/openemr/openemr/pull/14329
- github.com/openemr/openemr/releases/tag/v8_5_0
- github.com/openemr/openemr/security/advisories/GHSA-w99c-jwcm-24hh
- www.vulncheck.com/advisories/openemr-before-sql-injection-via-form-icd-codes
Track these versions on your own servers
InfraGuard collects installed software versions from every server and flags the ones with known vulnerabilities. Self-hosted — nothing leaves your network.
This product uses data from the NVD API but is not endorsed or certified by the NVD. CVE® is a registered trademark of The MITRE Corporation; CVE records are used under the CVE Program Terms of Use.