{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2026-40217","published":"2026-04-10T14:16:36.307000Z","last_modified":"2026-11-19T17:18:57.120000Z","status":"Analyzed","cvss":{"version":"3.1","score":8.8,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"cve@mitre.org","primary":false},"auth":true,"cwes":["CWE-420","CWE-94"],"cpes":[{"criteria":"cpe:2.3:a:litellm:litellm:*:*:*:*:*:*:*:*","part":"a","vendor":"litellm","product":"litellm","version_start_including":"1.81.8","version_end_excluding":"1.83.10"},{"criteria":"cpe:2.3:a:redhat:ansible_automation_platform:*:*:*:*:*:*:*:*","part":"a","vendor":"redhat","product":"ansible_automation_platform","version_start_including":"2.0","version_end_excluding":"2.6-9"},{"criteria":"cpe:2.3:a:redhat:openshift_ai:*:*:*:*:*:*:*:*","part":"a","vendor":"redhat","product":"openshift_ai","version_start_including":"3.3","version_end_excluding":"3.3.4"},{"criteria":"cpe:2.3:a:redhat:openshift_lightspeed:-:*:*:*:*:*:*:*","part":"a","vendor":"redhat","product":"openshift_lightspeed"}],"cpes_truncated":false,"vendors":["litellm","redhat"],"products":["litellm/litellm","redhat/ansible_automation_platform","redhat/openshift_ai","redhat/openshift_lightspeed"],"ssvc":{"exploitation":"active","automatable":"no","technical_impact":"total"},"kev":{"date_added":"2026-11-18","due_date":"2026-12-02","ransomware":false,"forensic_triage":false,"cwes":["CWE-420"]},"cat":"app","platform":"multi","eol":false,"severity":"high","priority_score":59,"links":{"html_es":"/es/cve/CVE-2026-40217/","html_en":"/en/cve/CVE-2026-40217/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-40217","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-40217"},"untrusted":{"vendor_name":"BerriAI","product_name":"LiteLLM","desc_en":"LiteLLM through 2026-04-08 allows remote attackers to execute arbitrary code via bytecode rewriting at the /guardrails/test_custom_code URI.","affected":[{"untrusted_vendor":"BerriAI","untrusted_product":"LiteLLM"},{"untrusted_vendor":"Red Hat","untrusted_product":"Red Hat Ansible Automation Platform 2.6"},{"untrusted_vendor":"Red Hat","untrusted_product":"Red Hat OpenShift AI 3.3"},{"untrusted_vendor":"Red Hat","untrusted_product":"Lightspeed Core"},{"untrusted_vendor":"Red Hat","untrusted_product":"Red Hat OpenShift AI (RHOAI)"}],"kev":{"vendor":"BerriAI","product":"LiteLLM","name":"BerriAI LiteLLM Unprotected Alternate Channel Vulnerability","desc":"BerriAI LiteLLM contains an unprotected alternate channel vulnerability that could allow remote attackers to execute arbitrary code via bytecode rewriting at the /guardrails/test_custom_code URI.","action":"Apply mitigations in accordance with vendor instructions, ensuring compliance with CISA’s BOD 26-04 Prioritizing Security Updates Based on Risk (see URL in Notes) guidance and CISA’s “Forensics Triage Requirements” (see URL in Notes). Follow applicable BOD 26-04 guidance for cloud services or discontinue use of the product if mitigations are unavailable. Stakeholders are responsible for evaluating each asset's internet exposure and ensuring adherence to BOD 26-04 patching guidelines.","notes":"https://github.com/BerriAI/litellm/security/advisories/GHSA-wxxx-gvqv-xp7p ; BOD 26-04: https://www.cisa.gov/news-events/directives/bod-26-04-prioritizing-security-updates-based-risk ; Forensics Triage Requirements: https://www.cisa.gov/news-events/directives/bod-26-04-implementation-guidance-prioritizing-security-updates-based-risk ; https://nvd.nist.gov/vuln/detail/CVE-2026-40217"},"ai":{"model":"us.anthropic.claude-sonnet-4-6","prompt_version":"2","input_hash":"2bd6d24c1d56a1a1fd037d511251a833","generated":"2026-11-26T18:33:36.419405Z","es":{"untrusted_title":"Ejecución remota de código con usuario autenticado en BerriAI LiteLLM","untrusted_summary":"LiteLLM (v1.81.8–1.83.10) y productos Red Hat que lo integran permiten a un atacante remoto autenticado ejecutar código arbitrario mediante reescritura de bytecode en el endpoint /guardrails/test_custom_code. CISA la ha confirmado como explotada activamente en su catálogo KEV."},"en":{"untrusted_title":"Authenticated Remote Code Execution via Bytecode Rewriting in BerriAI LiteLLM","untrusted_summary":"LiteLLM (v1.81.8–1.83.10) and Red Hat products embedding it allow an authenticated remote attacker to execute arbitrary code via bytecode rewriting at the /guardrails/test_custom_code endpoint. CISA has confirmed active exploitation in its KEV catalog."},"remediation":{"status":"fix","fixed_versions":["1.83.10","2.6-9","3.3.4"],"untrusted_action_es":"Actualiza LiteLLM a 1.83.10 o superior. Si usas Ansible Automation Platform o OpenShift AI de Red Hat, aplica los parches indicados en los avisos RHSA correspondientes.","untrusted_action_en":"Upgrade LiteLLM to 1.83.10 or later. If using Red Hat Ansible Automation Platform or OpenShift AI, apply the patches referenced in the corresponding RHSA advisories.","vendor_url":"https://www.x41-dsec.de/lab/advisories/x41-2026-001-litellm/"},"reviewed":false},"references":[{"url":"https://www.x41-dsec.de/lab/advisories/x41-2026-001-litellm/","tags":["Exploit","Mitigation","Third Party Advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2026:24866","tags":["Third Party Advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2026:30056","tags":["Third Party Advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-40217","tags":["Third Party Advisory"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2457301","tags":["Third Party Advisory"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40217.json","tags":["Third Party Advisory"]},{"url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-40217","tags":["US Government Resource"]}]},"social":{"people":9,"posts":10,"window_days":30}}