{
  "id": "CVE-2026-42208",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-42208",
  "published_at": "2026-05-08T03:38:14.124Z",
  "title": "LiteLLM: SQL injection in Proxy API key verification",
  "vendor": "BerriAI",
  "product": "litellm",
  "cvss": {
    "score": 9.8,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": true,
    "added_at": "2026-05-08",
    "known_ransomware_campaign_use": "Unknown",
    "days_after_publication": 0
  },
  "first_poc": {
    "created_at": "2026-04-28T16:57:53Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": -9.4,
    "repo": "imjdl/CVE-2026-42208_lab",
    "source": "github"
  },
  "poc_repo_count": 6,
  "exploit_count": 2,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "LiteLLM is a proxy server (AI Gateway) to call LLM APIs in OpenAI (or native) format. From version 1.81.16 to before version 1.83.7, a database query used during proxy API key checks mixed the caller-supplied key value into the query text instead of passing it as a separate parameter. An unauthenticated attacker could send a specially crafted Authorization header to any LLM API route (for example POST /chat/completions) and reach this query through the proxy's error-handling path. An attacker could read data from the proxy's database and may be able to modify it, leading to unauthorised access to the proxy and the credentials it manages. This issue has been patched in version 1.83.7.",
  "cwe": "CWE-89",
  "cpes": [
    "cpe:2.3:a:litellm:litellm:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 9.3,
    "nvd": 9.8
  },
  "repos": [
    {
      "repo": "imjdl/CVE-2026-42208_lab",
      "url": "https://github.com/imjdl/CVE-2026-42208_lab",
      "created_at": "2026-04-28T16:57:53Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2017-08-27T08:48:17Z"
    },
    {
      "repo": "0xBlackash/CVE-2026-42208",
      "url": "https://github.com/0xBlackash/CVE-2026-42208",
      "created_at": "2026-05-03T10:55:34Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2026-02-06T16:11:55Z"
    },
    {
      "repo": "0xredash/CVE-2026-42208",
      "url": "https://github.com/0xredash/CVE-2026-42208",
      "created_at": "2026-05-03T10:55:34Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2026-02-06T16:11:55Z"
    },
    {
      "repo": "ashrafzaryouh/CVE-2026-42208",
      "url": "https://github.com/ashrafzaryouh/CVE-2026-42208",
      "created_at": "2026-05-03T10:55:34Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2026-02-06T16:11:55Z"
    },
    {
      "repo": "Zeltoc/threat-intel-brief-cve-2026-42208-litellm",
      "url": "https://github.com/Zeltoc/threat-intel-brief-cve-2026-42208-litellm",
      "created_at": "2026-05-10T02:07:25Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 0,
      "is_poc": "unknown",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "error",
      "owner_created_at": "2023-05-15T05:59:11Z"
    },
    {
      "repo": "rootdirective-sec/CVE-2026-42208-Lab",
      "url": "https://github.com/rootdirective-sec/CVE-2026-42208-Lab",
      "created_at": "2026-05-10T12:11:44Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 0,
      "is_poc": "unknown",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "error",
      "owner_created_at": "2026-01-06T14:05:16Z"
    },
    {
      "repo": "ridhinva/litellm-sqli-scanner",
      "url": "https://github.com/ridhinva/litellm-sqli-scanner",
      "created_at": "2026-05-22T23:22:04Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 1,
      "is_poc": "unknown",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "error",
      "owner_created_at": "2019-07-04T03:28:18Z"
    },
    {
      "repo": "HAERIN-L/poc_cve-2026-42208",
      "url": "https://github.com/HAERIN-L/poc_cve-2026-42208",
      "created_at": "2026-05-30T04:51:39Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2022-09-21T00:59:16Z"
    },
    {
      "repo": "wangp0tato/poc_cve-2026-42208",
      "url": "https://github.com/wangp0tato/poc_cve-2026-42208",
      "created_at": "2026-05-30T04:51:39Z",
      "first_seen_at": "2026-11-15T19:16:17.213Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2022-09-21T00:59:16Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "BerriAI",
        "product": "litellm",
        "ranges": [
          "\u003e= 1.81.16, \u003c 1.83.7"
        ],
        "fixed_in": [
          "1.83.7"
        ]
      }
    ],
    "upgrade": [
      "Upgrade litellm to 1.83.7 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/BerriAI/litellm/security/advisories/GHSA-r75f-5x8p-qvmc"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/BerriAI/litellm/releases/tag/v1.83.7-stable"
      }
    ]
  },
  "exploit_refs": [
    {
      "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/auxiliary/scanner/http/litellm_proxy_sqli.rb",
      "source": "metasploit",
      "title": "Metasploit auxiliary: BerriAI LiteLLM Proxy Pre-Auth SQL Injection Scanner (auxiliary/scanner/http/litellm_proxy_sqli)",
      "published_at": "2026-06-14T13:01:56Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    },
    {
      "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-42208.yaml",
      "source": "nuclei",
      "title": "nuclei template: LiteLLM - SQL Injection",
      "published_at": "2026-05-30T06:53:06Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    }
  ],
  "hunt_profile": [
    {
      "method": "POST",
      "path_template": "/v1/chat/completions",
      "headers": [
        {
          "name": "Authorization",
          "value": "Bearer invalid_token_baseline_test"
        },
        {
          "name": "Authorization",
          "value": "Bearer ' OR (SELECT pg_sleep(6)) IS NOT NULL --"
        },
        {
          "name": "Authorization",
          "value": "Bearer {var}"
        }
      ],
      "content_type": "application/json",
      "ports": [
        8010,
        8011
      ],
      "protocol": "http",
      "repos": [
        "HAERIN-L/poc_cve-2026-42208",
        "wangp0tato/poc_cve-2026-42208"
      ],
      "repo_count": 2,
      "confidence": 0.85,
      "evidence": [
        "HAERIN-L/poc_cve-2026-42208/nuclei/CVE-2026-42208.yaml:37",
        "HAERIN-L/poc_cve-2026-42208/scripts/02-exploit.sh:30",
        "HAERIN-L/poc_cve-2026-42208/scripts/02-exploit.sh:40",
        "wangp0tato/poc_cve-2026-42208/nuclei/CVE-2026-42208.yaml:37",
        "wangp0tato/poc_cve-2026-42208/scripts/02-exploit.sh:30",
        "wangp0tato/poc_cve-2026-42208/scripts/02-exploit.sh:40"
      ]
    },
    {
      "method": "GET",
      "path_template": "/health/liveliness",
      "ports": [
        8010,
        8011
      ],
      "protocol": "http",
      "repos": [
        "HAERIN-L/poc_cve-2026-42208",
        "wangp0tato/poc_cve-2026-42208"
      ],
      "repo_count": 2,
      "confidence": 0.7,
      "evidence": [
        "HAERIN-L/poc_cve-2026-42208/scripts/01-setup.sh:21",
        "wangp0tato/poc_cve-2026-42208/scripts/01-setup.sh:21"
      ]
    },
    {
      "method": "POST",
      "path_template": "/key/generate",
      "headers": [
        {
          "name": "Authorization",
          "value": "Bearer {var}"
        },
        {
          "name": "Authorization",
          "value": "Bearer sk-lab-master-key"
        }
      ],
      "body_markers": [
        "\"key_alias\":\"lab-seed-key\"",
        "\"max_budget\""
      ],
      "content_type": "application/json",
      "ports": [
        8010,
        8011
      ],
      "protocol": "http",
      "repos": [
        "HAERIN-L/poc_cve-2026-42208",
        "wangp0tato/poc_cve-2026-42208"
      ],
      "repo_count": 2,
      "confidence": 0.7,
      "evidence": [
        "HAERIN-L/poc_cve-2026-42208/scripts/01-setup.sh:48",
        "wangp0tato/poc_cve-2026-42208/scripts/01-setup.sh:48"
      ]
    },
    {
      "method": "POST",
      "path_template": "/chat/completions",
      "headers": [
        {
          "name": "Authorization",
          "value": "Bearer {var}"
        }
      ],
      "body_markers": [
        "\"model\":\"gpt-3.5-turbo\"",
        "\"messages\"",
        "\"max_tokens\""
      ],
      "content_type": "application/json",
      "ports": [
        4000
      ],
      "protocol": "http",
      "repos": [
        "imjdl/CVE-2026-42208_lab"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "imjdl/CVE-2026-42208_lab/poc_litellm_sqli.py:42"
      ]
    }
  ],
  "rules": []
}
