{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "cpe": "cpe:2.3:a:open-emr:openemr:*:*:*:*:*:*:*:*",
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "fixed": "8.5.0"
                  }
                ],
                "source": "CPE_RANGE"
              },
              {
                "range": [
                  {
                    "fixed": "9b52cc0fc3a4eddd9fa7a096f6a3ac2a57d772d0"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "v8_5_0",
                "range": [
                  {
                    "fixed": "c1b2b8bcbe91aa81858f7ba8b25c31d9a82639a5"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "c1b2b8bcbe91aa81858f7ba8b25c31d9a82639a5"
            },
            {
              "fixed": "9b52cc0fc3a4eddd9fa7a096f6a3ac2a57d772d0"
            }
          ],
          "repo": "https://github.com/openemr/openemr",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-w99c-jwcm-24hh"
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-89"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/49xxx/CVE-2026-49142.json"
  },
  "details": "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.",
  "id": "CVE-2026-49142",
  "modified": "2026-11-12T02:31:10.490940334Z",
  "published": "2026-10-29T12:37:16.791Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/49xxx/CVE-2026-49142.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/openemr/openemr/releases/tag/v8_5_0"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/openemr/openemr/security/advisories/GHSA-w99c-jwcm-24hh"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-49142"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/openemr-before-sql-injection-via-form-icd-codes"
    },
    {
      "type": "FIX",
      "url": "https://github.com/openemr/openemr/commit/9b52cc0fc3a4eddd9fa7a096f6a3ac2a57d772d0"
    },
    {
      "type": "FIX",
      "url": "https://github.com/openemr/openemr/pull/14329"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/openemr/openemr"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "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",
      "type": "CVSS_V4"
    }
  ],
  "summary": "OpenEMR Before 8.5.0 SQL Injection via form_icd_codes[]"
}