PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-40217 BerriAI CVE debrief

CVE-2026-40217 is a high-severity vulnerability in LiteLLM, allowing remote code execution via bytecode rewriting. The CVE record was published on 2026-04-10T14:16:36.307Z and was last modified on 2026-10-26T21:10:00.170Z. The NVD entry is currently Modified. This vulnerability affects LiteLLM deployments, and defenders should assess exposure and prioritize remediation. Incident response teams should review and update plans to address potential attacks. The vulnerability has a CVSS score of 8.8, indicating high severity.

Vendor
BerriAI
Product
LiteLLM
CVSS
HIGH 8.8
CISA KEV
Listed
Original CVE published
2026-11-18
Original CVE updated
2026-11-18
Advisory published
2026-11-18
Advisory updated
2026-11-18

Who should care

Defenders responsible for LiteLLM deployments should assess exposure and prioritize remediation. Incident response teams should review and update plans to address potential attacks. Security teams should implement compensating controls and monitor for suspicious activity. Operators and administrators of LiteLLM should verify and apply patches, assess exposure, and implement compensating controls. Vulnerability management teams should prioritize remediation

Why it matters

CVE-2026-40217 is a high-severity vulnerability in LiteLLM, allowing remote code execution via bytecode rewriting. Defenders should prioritize verifying and applying patches, assessing exposure, and implementing compensating controls.

  • Verify and apply patches to prevent exploitation
  • Assess exposure and prioritize remediation to minimize potential impact
  • Implement compensating controls to detect and prevent suspicious activity
  • Review and update incident response plans to address potential attacks

Technical summary

The vulnerability allows remote attackers to execute arbitrary code via bytecode rewriting at the /guardrails/test_custom_code URI in LiteLLM. The CVSS score is 8.8, indicating a high severity. This vulnerability affects LiteLLM deployments, and defenders should assess exposure and prioritize remediation. The vulnerability has been publicly disclosed, and defenders should review and update incident response plans to address potential attacks. LiteLLM users should verify and apply patches, assess exposure, and implement compensating controls.

Defensive priority

Defenders should prioritize verifying and applying patches for LiteLLM, assessing exposure, and implementing compensating controls.

Recommended defensive actions

  • Verify and apply patches for LiteLLM
  • Assess exposure and prioritize remediation
  • Implement compensating controls and monitor for suspicious activity
  • Review and update incident response plans
  • Conduct vulnerability scanning and asset inventory
  • Implement monitoring and detection controls
  • Establish rollback and change management procedures

Evidence notes

The CVE record and NVD detail page provide information on the vulnerability, including its CVSS score and vector. Additional sources include advisories from Red Hat and X41-Dsec. The vulnerability allows remote attackers to execute arbitrary code via bytecode rewriting at the /guardrails/test_custom_code URI in LiteLLM. Defenders should prioritize verifying and applying patches, assessing exposure, and implementing compensating controls.

Sources and references

Verified primary and authoritative sources

  • CVE-2026-40217 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2026-40217

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2026-40217 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2026-40217

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

  • Source reference

    Unverified legacy reference

    URL: https://www.x41-dsec.de/lab/advisories/x41-2026-001-litellm/

    [email protected] - Exploit, Mitigation, Third Party Advisory

  • Source reference

    Unverified legacy reference

    URL: https://access.redhat.com/errata/RHSA-2026:24866

    0b0ca135-0b70-47e7-9f44-1890c2a1c46c

  • Source reference

    Unverified legacy reference

    URL: https://access.redhat.com/errata/RHSA-2026:30056

    0b0ca135-0b70-47e7-9f44-1890c2a1c46c

  • Source reference

    Unverified legacy reference

    URL: https://access.redhat.com/security/cve/CVE-2026-40217

    0b0ca135-0b70-47e7-9f44-1890c2a1c46c

  • Source reference

    Unverified legacy reference

    URL: https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40217.json

    0b0ca135-0b70-47e7-9f44-1890c2a1c46c

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.