{"id":"CVE-2026-49142","state":"PUBLISHED","title":"OpenEMR 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.","publishedAt":"2026-10-29T12:37:16.791Z","updatedAt":"2026-10-29T12:37:16.791Z","severity":{"score":8.7,"label":"High","version":"4.0","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","source":"VulnCheck"},"assigner":"VulnCheck","products":["openemr openemr"],"affected":[{"vendor":"openemr","product":"openemr","packageURL":"pkg:github/openemr/openemr","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"8.5.0","versionType":"semver"}],"repo":"https://github.com/openemr/openemr"}],"references":["https://github.com/openemr/openemr/security/advisories/GHSA-w99c-jwcm-24hh","https://github.com/openemr/openemr/releases/tag/v8_5_0","https://github.com/openemr/openemr/pull/14329","https://github.com/openemr/openemr/commit/9b52cc0fc3a4eddd9fa7a096f6a3ac2a57d772d0","https://www.vulncheck.com/advisories/openemr-before-sql-injection-via-form-icd-codes"],"weaknesses":["CWE-89"],"ingestedAt":"2026-10-29T20:12:07.131Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/49xxx/CVE-2026-49142.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-49142","state":"PUBLISHED","datePublished":"2026-10-29T12:37:16.791Z","dateUpdated":"2026-10-29T12:37:16.791Z","assignerShortName":"VulnCheck","assignerOrgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateReserved":"2026-05-27T17:40:12.739Z"},"containers":{"cna":{"title":"OpenEMR Before 8.5.0 SQL Injection via form_icd_codes[]","descriptions":[{"lang":"en","value":"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":[{"vendor":"openemr","product":"openemr","packageURL":"pkg:github/openemr/openemr","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"8.5.0","versionType":"semver"}],"repo":"https://github.com/openemr/openemr"}],"references":[{"url":"https://github.com/openemr/openemr/security/advisories/GHSA-w99c-jwcm-24hh","name":"GitHub Security Advisory (GHSA-w99c-jwcm-24hh)","tags":["vendor-advisory"]},{"url":"https://github.com/openemr/openemr/releases/tag/v8_5_0","name":"Release Notes","tags":["release-notes"]},{"url":"https://github.com/openemr/openemr/pull/14329","name":"Pull Request","tags":["issue-tracking","patch"]},{"url":"https://github.com/openemr/openemr/commit/9b52cc0fc3a4eddd9fa7a096f6a3ac2a57d772d0","name":"Patch Commit","tags":["patch","issue-tracking"]},{"url":"https://www.vulncheck.com/advisories/openemr-before-sql-injection-via-form-icd-codes","name":"VulnCheck Advisory: OpenEMR Before 8.5.0 SQL Injection via form_icd_codes[]","tags":["third-party-advisory"]}],"metrics":[{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"LOW","userInteraction":"NONE","vulnConfidentialityImpact":"HIGH","subConfidentialityImpact":"NONE","vulnIntegrityImpact":"HIGH","subIntegrityImpact":"NONE","vulnAvailabilityImpact":"HIGH","subAvailabilityImpact":"NONE","exploitMaturity":"NOT_DEFINED","Safety":"NOT_DEFINED","Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","valueDensity":"NOT_DEFINED","vulnerabilityResponseEffort":"NOT_DEFINED","providerUrgency":"NOT_DEFINED","version":"4.0","baseSeverity":"HIGH","baseScore":8.7,"vectorString":"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"}},{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV3_1":{"attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","version":"3.1","baseSeverity":"HIGH","baseScore":8.8,"vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-89","lang":"en","description":"Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')","type":"CWE"}]}],"providerMetadata":{"shortName":"VulnCheck","orgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateUpdated":"2026-10-29T12:37:16.791Z"},"tags":["x_open-source"],"datePublic":"2026-09-30T00:00:00.000Z","credits":[{"lang":"en","value":"KhanMarshai","type":"finder"},{"lang":"en","value":"Hamed Kohi","type":"finder"}],"x_generator":{"engine":"vulncheck"}}}}}