Repository navigation
[ci][docker] Install brotli>=1.2.1 in the base images (CVE-2026-111497) - #67846
elliot-barn wants to merge 2 commits into
Conversation
Follow-up to #67789. The lock files pin brotli==1.2.1, but the rayproject/ray images never install brotli from a lock: the base_deps / base_extra / base_slim locks had no brotli entry, and the image's copy comes from the conda base env (conda-forge brotli-python, a urllib3 dependency), which is still 1.2.0 in the current nightly. Add brotli>=1.2.1 to docker/base-deps/requirements.in and docker/base-slim/requirements.in so the image locks carry brotli==1.2.1 and the existing `uv pip install --no-deps -r python_depset.lock` step replaces the conda copy with the fixed PyPI wheel. A conda pin alone is not enough: conda-forge only has brotli-python 1.2.1 builds for python>=3.11 and we still build 3.10 images. Locks regenerated with `bazelisk run //ci/raydepsets:raydepsets -- build --all-configs`; only brotli entries change. Co-Authored-By: Claude Fable 5.1 <[email protected]> Signed-off-by: elliot-barn <[email protected]>
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
There was a problem hiding this comment.
Code Review
This pull request adds the brotli>=1.2.1 dependency to the base requirements to address a security vulnerability. It also updates the corresponding lock files to include the new dependency and its associated hashes. The reviewer identified that the CVE ID referenced in the comments of docker/base-deps/requirements.in and docker/base-slim/requirements.in is incorrect and should be updated to CVE-2024-11497 for accuracy.
| # Brotli: the conda base env already carries conda-forge's brotli-python (a | ||
| # urllib3 dependency), and conda-forge has no python 3.10 build of the | ||
| # CVE-2026-111497 fix (1.2.1). Listing it here makes the lock install replace | ||
| # the conda copy with the fixed PyPI wheel on every python version. | ||
| brotli>=1.2.1 |
There was a problem hiding this comment.
The CVE ID GHSA-9v8h-qqgm-4m35 corresponds to CVE-2024-11497, not CVE-2026-111497. Please correct the CVE reference in the comment to avoid confusion.
# Brotli: the conda base env already carries conda-forge's brotli-python (a
# urllib3 dependency), and conda-forge has no python 3.10 build of the
# CVE-2024-11497 fix (1.2.1). Listing it here makes the lock install replace
# the conda copy with the fixed PyPI wheel on every python version.
brotli>=1.2.1
| # Brotli: miniforge's base env carries conda-forge's brotli-python (a urllib3 | ||
| # dependency) and conda-forge has no python 3.10 build of the CVE-2026-111497 | ||
| # fix (1.2.1); listing it here makes the lock install replace the conda copy. | ||
| brotli>=1.2.1 |
There was a problem hiding this comment.
The CVE ID GHSA-9v8h-qqgm-4m35 corresponds to CVE-2024-11497, not CVE-2026-111497. Please correct the CVE reference in the comment to avoid confusion.
# Brotli: miniforge's base env carries conda-forge's brotli-python (a urllib3
# dependency) and conda-forge has no python 3.10 build of the CVE-2024-11497
# fix (1.2.1); listing it here makes the lock install replace the conda copy.
brotli>=1.2.1
|
Closing in favor of #67596, which pins conda-forge cc @dstrodtman since you marked this one ready this morning; #67596 is the one going in. |
Why are these changes needed?
Follow-up to #67789 (CVE-2026-111497 / GHSA-9v8h-qqgm-4m35, Brotli decoder OOB write, fixed in 1.2.1).
That PR pinned
brotli==1.2.1in every lock file, but the publishedrayproject/rayimages never install brotli from a lock: thebase_deps/base_extralocks contain no brotli entry, and the image's copy comes from the conda base env (conda-forgebrotli-python, pulled in as a urllib3 dependency). The current nightly still ships the vulnerable version:(trivy flags it as CVE-2026-111497 on
rayproject/ray:nightly,nightly-gpuandnightly-cu128.)This PR adds
brotli>=1.2.1todocker/base-deps/requirements.inanddocker/base-slim/requirements.in(both images install miniforge) so the image locks carrybrotli==1.2.1and the existinguv pip install --no-deps -r python_depset.lockstep replaces the conda copy with the fixed PyPI wheel. A conda pin (like the certifi one indocker/base-deps/Dockerfile) is not enough on its own: conda-forge only hasbrotli-python1.2.1 builds for Python 3.11+, and we still build 3.10 images.Verified the replacement path on the current nightly (py3.10):
Lock files regenerated with
bazelisk run //ci/raydepsets:raydepsets -- build --all-configs; only brotli lines change.Related issue number
Follow-up to #67789.
Checks
git commit -s) in this PR.pre-commit run --all-files/ scripts/format.sh to lint the changes in this PR.rayproject/ray:nightly(above); image builds in CI will showbrotli==1.2.1in the lock install.🤖 Generated with Claude Code