From 6bcbe9b5878699db0af87e465b0def11f8be4cf6 Mon Sep 17 00:00:00 2001 From: Eric Moore Date: Thu, 12 Nov 2026 11:01:12 -0600 Subject: [PATCH] =?UTF-8?q?security:=20Bump=20litellm=20to=201.90.7=20?= =?UTF-8?q?=E2=80=94=20patch=20CVE-2026-84377=20(provider-key=20exfiltrati?= =?UTF-8?q?on)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit GHSA-3cv6-jpf6-8222 affects 1.90.0 - 1.90.6. The 1.90.0 request-body blocklist rejected a top-level api_base but not `fallbacks` / `model_list`, and a dict-form fallback is merged straight into the call kwargs, so any signed-in app user could redirect a provider call (and the provider key) to a host of their choosing via /v1/chat/completions. - Dockerfile: v1.90.7, pinned by digest. Upstream's floating tags pointed at the 1.107.0 credential-stealer image on 2026-10-21; a tag can move. - pyproject.toml: litellm==1.90.7. - docker-compose.yml: replace floating `main-latest` with the same pin. The 1.90.7 wheel and image were inspected offline before pinning (built 2026-08-09; no injected .pth / sitecustomize / cook.py, no stealer IOCs). Verified in a locally built image: a body carrying fallbacks[].api_base is now rejected. Co-Authored-By: Claude Fable 5.2 Claude-Session: https://claude.ai/code/session_019ZeGbWLBiokECvYqhrznKo --- Dockerfile | 13 ++++++++++--- docker-compose.yml | 4 +++- pyproject.toml | 5 ++++- 3 files changed, 17 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9b5083a..f55ac0a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,10 +6,17 @@ # See: https://docs.litellm.ai/blog/security-update-march-2026 # CVE-2026-42208 (SQLi) affects 1.81.16 - 1.83.6 — must be >= 1.83.7 # CVE-2026-49468 (auth bypass via Host Header Injection) affects < 1.84.0 — must be >= 1.84.0 -# Image is signed with cosign - verify with: -# cosign verify --key https://raw.githubusercontent.com/BerriAI/litellm/main/cosign.pub ghcr.io/berriai/litellm:v1.90.0 +# CVE-2026-84377 / GHSA-3cv6-jpf6-8222 (provider-key exfiltration via request-body +# `fallbacks` / `model_list`) affects 1.90.0 - 1.90.6 — must be >= 1.90.7. +# Any signed-in app user could reach it through /v1/chat/completions. +# Do NOT move into 1.91.0 - 1.100.3 without reading GHSA-7hp6-4w63-5g45 (salt-key +# privilege escalation), and never use 1.107.0 (credential stealer, 2026-10-21). +# Pinned by DIGEST, not just tag: upstream's floating tags pointed at the 1.107.0 +# stealer image for hours on 2026-10-21, and a tag can be re-pointed. This digest +# was inspected offline on 2026-11-12 (image built 2026-08-09; no injected .pth / +# sitecustomize / cook.py; no stealer IOC strings). Re-inspect when bumping. # Note: -stable channel topped out at v1.83.14; v1.84+ are published without the suffix -FROM ghcr.io/berriai/litellm:v1.90.0 +FROM ghcr.io/berriai/litellm:v1.90.7@sha256:917d480b7e4a7e61822e54f70be5c7cf753fb0b7328cbf6467612652ca748075 # Install dependencies RUN python -m ensurepip && python -m pip install --no-cache-dir google-auth>=2.0.0 httpx>=0.24.0 diff --git a/docker-compose.yml b/docker-compose.yml index 5158d80..8c95d6c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,7 +2,9 @@ version: "3.9" services: litellm: - image: ghcr.io/berriai/litellm:main-latest + # Pinned to match the Dockerfile. Never use a floating tag here: main-latest + # pointed at the 1.107.0 credential-stealer image on 2026-10-21. + image: ghcr.io/berriai/litellm:v1.90.7@sha256:917d480b7e4a7e61822e54f70be5c7cf753fb0b7328cbf6467612652ca748075 container_name: ciris-proxy ports: - "4000:4000" diff --git a/pyproject.toml b/pyproject.toml index 170ff37..a7cd3e4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,7 +10,10 @@ dependencies = [ # See: https://docs.litellm.ai/blog/security-update-march-2026 # CVE-2026-42208 (SQLi) affects 1.81.16 - 1.83.6 — must be >= 1.83.7 # CVE-2026-49468 (auth bypass via Host Header Injection) affects < 1.84.0 — must be >= 1.84.0 - "litellm==1.90.0", + # CVE-2026-84377 / GHSA-3cv6-jpf6-8222 (provider-key exfiltration via request-body + # `fallbacks` / `model_list`) affects 1.90.0 - 1.90.6 — must be >= 1.90.7 + # Never 1.107.0 (credential stealer, 2026-10-21). Keep in step with the Dockerfile. + "litellm==1.90.7", "httpx>=0.25.0", # hooks/model_audit.py parses litellm_config.yaml directly. LiteLLM pulls # PyYAML in transitively, but a module that imports it should declare it.