{
  "id": "CVE-2026-40217",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-40217",
  "published_at": "2026-04-10T13:43:23.147Z",
  "vendor": "BerriAI",
  "product": "LiteLLM",
  "cvss": {
    "score": 8.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": {
    "created_at": "2026-05-19T13:19:42Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": 39,
    "repo": "learner202649/CVE-2026-40217-PoC",
    "source": "github"
  },
  "poc_repo_count": 1,
  "exploit_count": 1,
  "suspicious_repo_count": 1,
  "edge_device": null,
  "description": "LiteLLM through 2026-04-08 allows remote attackers to execute arbitrary code via bytecode rewriting at the /guardrails/test_custom_code URI.",
  "cwe": "CWE-420",
  "cpes": [
    "cpe:2.3:a:litellm:litellm:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 8.8
  },
  "repos": [
    {
      "repo": "learner202649/CVE-2026-40217-PoC",
      "url": "https://github.com/learner202649/CVE-2026-40217-PoC",
      "created_at": "2026-05-19T13:19:42Z",
      "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-04-09T02:16:04Z"
    },
    {
      "repo": "HORKimhab/CVE-LiteLLM",
      "url": "https://github.com/HORKimhab/CVE-LiteLLM",
      "created_at": "2026-06-16T01:23:37Z",
      "first_seen_at": "2026-11-15T02:31:15.731Z",
      "stars": 0,
      "is_poc": "fake",
      "kind": "fake",
      "suspicion_score": 50,
      "suspicious": true,
      "suspicion_reasons": [
        "pipes a download into a shell / encoded PowerShell in README.md"
      ],
      "status": "analyzed",
      "owner_created_at": "2018-07-12T07:48:30Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "BerriAI",
        "product": "LiteLLM",
        "ranges": [
          "bb0639701796218a3447160e55c0f1097446e4e6085df7dfd39f476d4143743f"
        ],
        "fixed_in": null
      },
      {
        "vendor": "",
        "product": "litellm",
        "ranges": [
          "\u003e= 1.81.8, \u003c 1.83.10"
        ],
        "fixed_in": [
          "1.83.10"
        ],
        "ecosystem": "PyPI",
        "advisory": "GHSA-wxxx-gvqv-xp7p"
      }
    ],
    "upgrade": [
      "Upgrade litellm to 1.83.10 or later."
    ]
  },
  "exploit_refs": [
    {
      "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-40217.yaml",
      "source": "nuclei",
      "title": "nuclei template: LiteLLM \u003c 1.25.0 - Remote Code Execution",
      "published_at": "2026-08-22T12:20:46Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    }
  ],
  "hunt_profile": [
    {
      "method": "POST",
      "path_template": "/guardrails/test_custom_code",
      "headers": [
        {
          "name": "Authorization",
          "value": "Bearer sk-litellm-master-key"
        },
        {
          "name": "Authorization",
          "value": "Bearer {var}"
        }
      ],
      "content_type": "application/json",
      "ports": [
        4000,
        8080
      ],
      "protocol": "http",
      "repos": [
        "learner202649/CVE-2026-40217-PoC"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "learner202649/CVE-2026-40217-PoC/README.md:56",
        "learner202649/CVE-2026-40217-PoC/exploit/exploit.py:64"
      ]
    }
  ],
  "rules": []
}
