CVE-2026-49142 PUBLISHED

OpenEMR Before 8.5.0 SQL Injection via form_icd_codes[]

Assigner: VulnCheck
Reserved: 27.05.2026 Published: 29.10.2026 Updated: 29.10.2026

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.

Metrics

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
CVSS Score: 8.7

Product Status

Vendor openemr
Product openemr
Versions Default: unaffected
  • affected from 0 to 8.5.0 (excl.)

Credits

  • KhanMarshai finder
  • Hamed Kohi finder

References

Problem Types

  • Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') CWE