CVE-2026-49142OpenEMR Before 8.5.0 SQL Injection via form_icd_codes[]
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.
Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.
Affected products and versions
References and patches
- GitHub Security Advisory (GHSA-w99c-jwcm-24hh) vendor-advisoryExploitVendor Advisory
- openemr 8_5_0 Release Notes release-notesProductRelease Notes
- Pull Request issue-trackingpatchIssue TrackingPatch
- Patch Commit patchissue-trackingPatch
- VulnCheck Advisory: OpenEMR Before 8.5.0 SQL Injection via form_icd_codes[] third-party-advisoryPatchThird Party Advisory
CPE matches (NVD) (1)
cpe:2.3:a:open-emr:openemr:*:*:*:*:*:*:*:*< 8.5.0