Repository navigation
Conversation
The ubuntu24.04 vLLM 0.31.0 SageMaker base ships libbrotli1 1.1.0-2build2 (pulled in by libcurl4t64, libcurl3t64-gnutls and libfreetype6), which is affected by CVE-2026-111497 (USN-8956-1). Ubuntu published the fix as 1.1.0-2ubuntu0.1 in noble-security on 2026-10-26. Upgrade libbrotli1 in the base stage with --only-upgrade and assert the installed version with dpkg --compare-versions so the build fails rather than silently shipping the vulnerable library if a mirror lags. Verified with Trivy 0.67.2 (rootfs scan, os+library) on the base stage built on public.ecr.aws/deep-learning-containers/vllm:0.31.0-gpu-py312-cu130-ubuntu24.04-sagemaker-v1.0: CVE-2026-111497 present before, absent after, no new findings introduced. Signed-off-by: shwang <106367778+shwang4a@users.noreply.github.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
Fixes #6955
Patch CVE-2026-111497 (USN-8956-1, Brotli: a crafted compressed stream could cause a DoS or arbitrary code execution) in the
huggingface-vllm0.31.0 SageMaker image (huggingface-vllm:0.31.0-transformers5.15.0-gpu-py312-cu130-ubuntu24.04).The image inherits
libbrotli1 1.1.0-2build2from the AWS vLLM ubuntu24.04 base (vllm:0.31.0-gpu-py312-cu130-ubuntu24.04-sagemaker-v1.0). It's an OS dependency oflibcurl4t64,libcurl3t64-gnutls,libfreetype6andlibjxl0.7, not a Python or npm requirement. Ubuntu shipped the fix as1.1.0-2ubuntu0.1innoble-security/noble-updateson 2026-10-26, after the current image was built. A customer running this image on a SageMaker endpoint reported the finding.Change (
docker/huggingface/vllm/Dockerfile,basestage, so every target inherits it):apt-get install --only-upgrade libbrotli1upgrades the library in place and never adds brotli where it isn't already installed.dpkg --compare-versions "$installed" ge 1.1.0-2ubuntu0.1makes the build fail with a clearCVE-2026-111497message instead of silently shipping the vulnerable library if a mirror lags.LIBBROTLI_MIN_VERSIONis anARG, so the floor can be raised without editing the RUN.The
huggingface-vllm-sagemakerstage's existingapt-get upgrade -ywould also pick up the fix on a fresh rebuild. The explicit step makes the fix deterministic and enforced at build time, and it also covers thebasestage, which has no upgrade.Test Plan
docker build --platform linux/amd64 --target baseagainst the real base image.--build-arg LIBBROTLI_MIN_VERSION=9.9.9and expect failure.rootfsscan (--scanners vuln --pkg-types os,library) of the unpatched base and the patchedbasetarget, then diff the findings.Test Result
libbrotli1:amd64 1.1.0-2build2; reverse deps: libcurl4t64, libcurl3t64-gnutls, libfreetype6, libjxl0.7--target baseUnpacking libbrotli1:amd64 (1.1.0-2ubuntu0.1) over (1.1.0-2build2)libbrotli1:amd64 1.1.0-2ubuntu0.1libbrotli1 1.1.0-2ubuntu0.1 < 9.9.9 (CVE-2026-111497)The other findings that drop between before and after (curl 8.5.0-2ubuntu10.15 lows, aiohttp, pillow, lmcache, uv) come from steps already in this Dockerfile, not from this change.
Not covered locally:
huggingface-vllm-sagemakertarget wasn't built locally because the ffmpeg source build under emulation is too slow. That stage only addsapt-get upgrade, which can't downgradelibbrotli1. The PR pipeline builds and ECR-scans the full target.gitleaks,actionlint,dockerfmt,shfmt) couldn't be installed in the test environment because of network restrictions, so CI's_prcheckcovers them.Follow-up: The upstream
vllmubuntu24.04 image (docker/vllm/Dockerfile) carries the samelibbrotli1and likely needs the same rebuild.