mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-22 00:31:44 +00:00
Fix security vulnerabilities in Docker image and dependencies
- Update Dockerfile.database to upgrade zlib and busybox packages - Add npm overrides for glob, tar, and diff vulnerabilities in package.json files - Add jaraco-context>=6.1.0 to requirements.txt to fix GHSA-58pv-8j8x-9vj2 - Add CVE-2026-22184 (zlib) to ALLOWED_CVES in security_scans.sh for vulnerabilities without fixes Fixes: - Critical: zlib CVE-2026-22184 (no fix available, added to allowlist) - High: glob (GHSA-5j98-mcp5-4vw2) - fixed via npm overrides - High: jaraco-context (GHSA-58pv-8j8x-9vj2) - fixed via requirements.txt - Medium: tar (GHSA-29xp-372q-xqph) - fixed via npm overrides - Medium: busybox CVE-2025-60876 (no fix available, already in allowlist) - Low: diff (GHSA-73rr-hh4g-fpgx) - fixed via npm overrides
This commit is contained in:
parent
3bb6046ca0
commit
9f3de27fc9
5 changed files with 11 additions and 4 deletions
|
|
@ -129,6 +129,7 @@ run_grype_scans() {
|
|||
"CVE-2025-13836" # Python 3.13 HTTP response reading OOM/DoS - no fix available in base image
|
||||
"CVE-2025-12084" # Python 3.13 xml.dom.minidom quadratic algorithm - no fix available in base image
|
||||
"CVE-2025-60876" # BusyBox wget HTTP request splitting - no fix available in Chainguard Wolfi base image
|
||||
"CVE-2026-22184" # zlib vulnerability - no fix available yet in Chainguard Wolfi base image
|
||||
"CVE-2010-4756" # glibc glob DoS - awaiting patched Wolfi glibc build
|
||||
"CVE-2019-1010022" # glibc stack guard bypass - awaiting patched Wolfi glibc build
|
||||
"CVE-2019-1010023" # glibc ldd remap issue - awaiting patched Wolfi glibc build
|
||||
|
|
|
|||
|
|
@ -48,8 +48,9 @@ FROM $LITELLM_RUNTIME_IMAGE AS runtime
|
|||
# Ensure runtime stage runs as root
|
||||
USER root
|
||||
|
||||
# Install runtime dependencies
|
||||
RUN apk add --no-cache bash openssl tzdata nodejs npm python3 py3-pip libsndfile
|
||||
# Install runtime dependencies and upgrade vulnerable packages
|
||||
RUN apk add --no-cache bash openssl tzdata nodejs npm python3 py3-pip libsndfile && \
|
||||
apk upgrade --no-cache zlib busybox || true
|
||||
|
||||
WORKDIR /app
|
||||
# Copy the current directory contents into the container at /app
|
||||
|
|
|
|||
|
|
@ -11,6 +11,8 @@
|
|||
"jest": "^29.7.0"
|
||||
},
|
||||
"overrides": {
|
||||
"glob": ">=11.1.0"
|
||||
"glob": ">=11.1.0",
|
||||
"tar": ">=7.5.2",
|
||||
"diff": ">=8.0.3"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -47,6 +47,7 @@ sentry_sdk==2.21.0 # for sentry error handling
|
|||
detect-secrets==1.5.0 # Enterprise - secret detection / masking in LLM requests
|
||||
cryptography==44.0.1
|
||||
tzdata==2025.1 # IANA time zone database
|
||||
jaraco-context>=6.1.0 # security fix for GHSA-58pv-8j8x-9vj2
|
||||
litellm-proxy-extras==0.4.21 # for proxy extras - e.g. prisma migrations
|
||||
llm-sandbox==0.3.31 # for skill execution in sandbox
|
||||
### LITELLM PACKAGE DEPENDENCIES
|
||||
|
|
|
|||
|
|
@ -85,7 +85,9 @@
|
|||
"mermaid": ">=11.10.0",
|
||||
"js-yaml": ">=4.1.1",
|
||||
"glob": ">=11.1.0",
|
||||
"node-forge": ">=1.3.2"
|
||||
"node-forge": ">=1.3.2",
|
||||
"tar": ">=7.5.2",
|
||||
"diff": ">=8.0.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18.17.0",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue