CVE-2026-49142
OpenEMR Before 8.5.0 SQL Injection via form_icd_codes[]
- State
- Published
- Severity
- 8.7 High
- Published
- Oct 29, 2026
- Updated
- Oct 29, 2026
- Reserved
- May 27, 2026
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 4.0 | 8.7 High | 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 | VulnCheck |
| 3.1 | 8.8 High | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | VulnCheck |
Weaknesses
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Affected Products
| Product | Versions |
|---|---|
openemropenemr |
|
References
- GitHub Security Advisory (GHSA-w99c-jwcm-24hh)vendor-advisory
- Release Notesrelease-notes
- Pull Requestissue-trackingpatch
- Patch Commitpatchissue-tracking
- VulnCheck Advisory: OpenEMR Before 8.5.0 SQL Injection via form_icd_codes[]third-party-advisory
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.