Repository navigation
[docker] Upgrade conda brotli-python to 1.2.1 in base-deps and base-slim (CVE-2026-111497) - #67596
Merged
elliot-barn merged 1 commit intoNov 6, 2026
Conversation
…lim (CVE-2026-111497) The Miniforge base env ships brotli-python 1.1.0, which bundles the vulnerable Brotli decoder (fixed in 1.2.1, GHSA-9v8h-qqgm-4m35). - Python >= 3.11: add "brotli-python>=1.2.1" to the conda install. - Python 3.10: conda-forge has no 1.2.1 build, so replace the conda package with the PyPI Brotli==1.2.1 wheel, then `conda clean`. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Signed-off-by: Ronaldo Saheki <[email protected]>
ronaldosaheki
marked this pull request as ready for review
October 30, 2026 14:06
Contributor
There was a problem hiding this comment.
Code Review
This pull request addresses CVE-2026-111497 by upgrading brotli-python to version 1.2.1 or higher. For Python 3.10 environments where a conda-forge build is unavailable, the changes remove the existing brotli-python package and install Brotli 1.2.1 from PyPI. The reviewer identified a potential build failure risk in both Dockerfiles: if brotli-python is not already present in the environment, the conda remove command will exit with a non-zero status and fail the build under set -e. It is recommended to append || true to the conda remove commands to ensure robust execution.
Collaborator
|
Thank you for this! Approved! |
elliot-barn
enabled auto-merge (squash)
November 5, 2026 22:50
elliot-barn
approved these changes
Nov 5, 2026
3 of 9 tasks
elliot-barn
pushed a commit
that referenced
this pull request
Nov 8, 2026
…lim (CVE-2026-111497) (#67596) ## Description Raise the conda `brotli-python` in `docker/base-deps` and `docker/base-slim` to 1.2.1 to pick up the fix for CVE-2026-111497 ("Node2Shell", [GHSA-9v8h-qqgm-4m35](GHSA-9v8h-qqgm-4m35)): an out-of-bounds write in the Brotli decoder (upstream fix: google/brotli@0ed4268). PyPI/conda `Brotli` <= 1.2.0 bundle the vulnerable decoder; 1.2.1 is the fixed release. The CVE is in CISA KEV. The Miniforge 24.11.3 installer used by both Dockerfiles ships `brotli-python 1.1.0` in its base environment, and none of the pip lock files manage it. So every image built on these bases (`ray`, `ray-ml`, `ray-llm`) carries the vulnerable decoder, both in `site-packages` and as a second copy in the conda package cache. `urllib3`, `requests`, `aiohttp` and `httpx` use Brotli automatically when it is installed. What changes: - **Python >= 3.11:** add `brotli-python>=1.2.1` to the existing `conda install`. The following `conda clean` removes the superseded package from the cache. - **Python 3.10:** conda-forge has no py3.10 build of `brotli-python` 1.2.1 (the newest is 1.2.0), so a floor would make the solve fail. For 3.10 the conda package is removed, `Brotli==1.2.1` is installed from PyPI, and the cache is cleaned again. This branch can go when 3.10 is deprecated. Alternative considered: moving to a newer Miniforge installer. Miniforge 26.9.4 does ship `brotli-python 1.2.1`, but its base is Python 3.14 / conda 26.9.4, and the existing `conda install python=<ver> ...` step then downgrades conda to 23.9.0 on 3.12 and fails to solve on 3.10. That is a much larger change than a one-package floor. ## Related issues None filed. Advisory: GHSA-9v8h-qqgm-4m35 / CVE-2026-111497. ## Additional information Tested by building both Dockerfiles locally with `docker buildx build` (ubuntu:22.04, CPU): | Dockerfile | Python | linux/amd64 | linux/arm64 | |---|---|---|---| | base-deps | 3.10, 3.11, 3.12, 3.13, 3.14 | OK | OK | | base-slim | 3.10, 3.11, 3.12, 3.13, 3.14 | OK | see below | In every image that built: `Brotli` 1.2.1, a compress/decompress round trip works, no Brotli < 1.2.1 remains in `site-packages`, the conda package cache or `conda-meta`, and `libbrotli1` is 1.0.9-2ubuntu0.1 (Ubuntu's fix, picked up by the existing `apt-get upgrade`). Not tested: the CUDA and TPU variants (they run the same conda steps), the Ray CI image pipelines (needs the `go` label), and `base-slim` on linux/arm64, which fails to build on `master` with or without this change (`psutil==5.9.8` has no aarch64 wheel and the slim image has no `gcc`). The local builds mounted a pre-downloaded copy of the pinned uv installer because the build network re-signs `astral.sh`; the Dockerfiles used are otherwise identical to this diff. The `brotli==1.2.0` pins in the CI/test lock files (`python/requirements_compiled*.txt`, `python/deplocks/**`) are test dependencies and are not touched here; they need regenerating with the repo's dependency tooling. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Signed-off-by: Ronaldo Saheki <[email protected]> Co-authored-by: Claude Sonnet 5.5 <[email protected]> (cherry picked from commit ed39c78) Signed-off-by: elliot-barn <[email protected]>
elliot-barn
added a commit
that referenced
this pull request
Nov 10, 2026
…ity fixes (#67962) ## Why This brings the eMudhra intermediate CA compromise fixes and the aiohttp CVE fixes that shipped in 2.59.1, plus the Brotli CVE-2026-111497 fixes from master, to the 2.58 line as the 2.58.2 patch release. ## Change It cherry-picks the 2.59.1 combined pick #67487 (`fed97328bf`), which contains: - #67295 / #67350: pip 26.2.2, conda and site-packages certifi 2026.10.19, and uv 0.13.4 in the Docker images - #67301: virtualenv 21.14.12 (bundles pip 26.2.2 for runtime_env virtualenvs) - #67298: pip 26.2.2 and uv 0.13.4 in the Windows and macOS wheel builds - #67305: certifi>=2026.10.19 floors - #67304: aiohttp 3.14.4 / yarl 1.25.1 (CVE-2026-111064, CVE-2026-111066, GHSA-2g87-pp6c-29x5) Brotli (CVE-2026-111497), picked from master: - #67596: conda `brotli-python>=1.2.1` in base-deps and base-slim (PyPI `Brotli==1.2.1` on py3.10, where conda-forge has no 1.2.1 build). This is the change that fixes the published images. - #67789: brotli 1.2.1 in the compiled requirements and locks. The pick dropped 12 master-only locks (ray-torch py3.11/cu133, torch BYOD locks) and resolved `ray-torch-cu128_base_py3.14.lock` to the 2.58 side. - Follow-up commit: brotli 1.2.1 spliced into the two 2.58 locks #67789 didn't reach (`ray-torch-cu128_base_py3.14.lock`, `large_image_embedding_py3.10.lock`). Nothing constrains brotli in those locks, so raydepsets would otherwise keep 1.2.0 / 1.1.0. Conflicts in the eMudhra pick: only `docker/base-deps/Dockerfile` and `docker/base-slim/Dockerfile`, where 2.58 installs uv from the unversioned `install.sh`. Both are resolved to the pinned `uv/0.13.4/install.sh` installer, the same as 2.59.1. The branch's base commit is the 2.58.2 version bump (`e5f5cec299`). The branch itself was cut from the `releases/2.58.1` tip `c443f1f1f4`. ## Testing - `bazel run //ci/raydepsets:raydepsets -- build --all-configs --check` reports "Lock files are up to date", both after the eMudhra pick and again after the brotli commits. A full `build --all-configs` produces no changes. - After the brotli commits, no lock on the branch pins brotli below 1.2.1, except the unreferenced `requirements_ml_byod_3.10.txt` (same on master). The picked locks match what 2.58.2's inputs resolve to, so no separate lock regeneration was needed. - The changed pins in the locks and compiled requirements are aiohttp, yarl, certifi, virtualenv and virtualenv's dependency bumps (packaging, distlib, python-discovery, typing-extensions). Small filelock/platformdirs/langchain-core moves are included, and `--check` confirms them. - I scanned the tree after the pick. The only old pip, certifi or uv pins left are in CI-only images and scripts, plus the docs pip-freeze file that the release docs step regenerates. That matches what 2.59.1 shipped with. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: elliot-barn <[email protected]> Signed-off-by: Ronaldo Saheki <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Ronaldo <[email protected]>
sai-miduthuri
pushed a commit
that referenced
this pull request
Nov 10, 2026
…lim (CVE-2026-111497) (#67596) ## Description Raise the conda `brotli-python` in `docker/base-deps` and `docker/base-slim` to 1.2.1 to pick up the fix for CVE-2026-111497 ("Node2Shell", [GHSA-9v8h-qqgm-4m35](GHSA-9v8h-qqgm-4m35)): an out-of-bounds write in the Brotli decoder (upstream fix: google/brotli@0ed4268). PyPI/conda `Brotli` <= 1.2.0 bundle the vulnerable decoder; 1.2.1 is the fixed release. The CVE is in CISA KEV. The Miniforge 24.11.3 installer used by both Dockerfiles ships `brotli-python 1.1.0` in its base environment, and none of the pip lock files manage it. So every image built on these bases (`ray`, `ray-ml`, `ray-llm`) carries the vulnerable decoder, both in `site-packages` and as a second copy in the conda package cache. `urllib3`, `requests`, `aiohttp` and `httpx` use Brotli automatically when it is installed. What changes: - **Python >= 3.11:** add `brotli-python>=1.2.1` to the existing `conda install`. The following `conda clean` removes the superseded package from the cache. - **Python 3.10:** conda-forge has no py3.10 build of `brotli-python` 1.2.1 (the newest is 1.2.0), so a floor would make the solve fail. For 3.10 the conda package is removed, `Brotli==1.2.1` is installed from PyPI, and the cache is cleaned again. This branch can go when 3.10 is deprecated. Alternative considered: moving to a newer Miniforge installer. Miniforge 26.9.4 does ship `brotli-python 1.2.1`, but its base is Python 3.14 / conda 26.9.4, and the existing `conda install python=<ver> ...` step then downgrades conda to 23.9.0 on 3.12 and fails to solve on 3.10. That is a much larger change than a one-package floor. ## Related issues None filed. Advisory: GHSA-9v8h-qqgm-4m35 / CVE-2026-111497. ## Additional information Tested by building both Dockerfiles locally with `docker buildx build` (ubuntu:22.04, CPU): | Dockerfile | Python | linux/amd64 | linux/arm64 | |---|---|---|---| | base-deps | 3.10, 3.11, 3.12, 3.13, 3.14 | OK | OK | | base-slim | 3.10, 3.11, 3.12, 3.13, 3.14 | OK | see below | In every image that built: `Brotli` 1.2.1, a compress/decompress round trip works, no Brotli < 1.2.1 remains in `site-packages`, the conda package cache or `conda-meta`, and `libbrotli1` is 1.0.9-2ubuntu0.1 (Ubuntu's fix, picked up by the existing `apt-get upgrade`). Not tested: the CUDA and TPU variants (they run the same conda steps), the Ray CI image pipelines (needs the `go` label), and `base-slim` on linux/arm64, which fails to build on `master` with or without this change (`psutil==5.9.8` has no aarch64 wheel and the slim image has no `gcc`). The local builds mounted a pre-downloaded copy of the pinned uv installer because the build network re-signs `astral.sh`; the Dockerfiles used are otherwise identical to this diff. The `brotli==1.2.0` pins in the CI/test lock files (`python/requirements_compiled*.txt`, `python/deplocks/**`) are test dependencies and are not touched here; they need regenerating with the repo's dependency tooling. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Signed-off-by: Ronaldo Saheki <[email protected]> Co-authored-by: Claude Sonnet 5.5 <[email protected]> (cherry picked from commit ed39c78) Signed-off-by: Sai Miduthuri <[email protected]>
This was referenced Nov 10, 2026
sai-miduthuri
pushed a commit
that referenced
this pull request
Nov 10, 2026
…lim (CVE-2026-111497) (#67596) ## Description Raise the conda `brotli-python` in `docker/base-deps` and `docker/base-slim` to 1.2.1 to pick up the fix for CVE-2026-111497 ("Node2Shell", [GHSA-9v8h-qqgm-4m35](GHSA-9v8h-qqgm-4m35)): an out-of-bounds write in the Brotli decoder (upstream fix: google/brotli@0ed4268). PyPI/conda `Brotli` <= 1.2.0 bundle the vulnerable decoder; 1.2.1 is the fixed release. The CVE is in CISA KEV. The Miniforge 24.11.3 installer used by both Dockerfiles ships `brotli-python 1.1.0` in its base environment, and none of the pip lock files manage it. So every image built on these bases (`ray`, `ray-ml`, `ray-llm`) carries the vulnerable decoder, both in `site-packages` and as a second copy in the conda package cache. `urllib3`, `requests`, `aiohttp` and `httpx` use Brotli automatically when it is installed. What changes: - **Python >= 3.11:** add `brotli-python>=1.2.1` to the existing `conda install`. The following `conda clean` removes the superseded package from the cache. - **Python 3.10:** conda-forge has no py3.10 build of `brotli-python` 1.2.1 (the newest is 1.2.0), so a floor would make the solve fail. For 3.10 the conda package is removed, `Brotli==1.2.1` is installed from PyPI, and the cache is cleaned again. This branch can go when 3.10 is deprecated. Alternative considered: moving to a newer Miniforge installer. Miniforge 26.9.4 does ship `brotli-python 1.2.1`, but its base is Python 3.14 / conda 26.9.4, and the existing `conda install python=<ver> ...` step then downgrades conda to 23.9.0 on 3.12 and fails to solve on 3.10. That is a much larger change than a one-package floor. ## Related issues None filed. Advisory: GHSA-9v8h-qqgm-4m35 / CVE-2026-111497. ## Additional information Tested by building both Dockerfiles locally with `docker buildx build` (ubuntu:22.04, CPU): | Dockerfile | Python | linux/amd64 | linux/arm64 | |---|---|---|---| | base-deps | 3.10, 3.11, 3.12, 3.13, 3.14 | OK | OK | | base-slim | 3.10, 3.11, 3.12, 3.13, 3.14 | OK | see below | In every image that built: `Brotli` 1.2.1, a compress/decompress round trip works, no Brotli < 1.2.1 remains in `site-packages`, the conda package cache or `conda-meta`, and `libbrotli1` is 1.0.9-2ubuntu0.1 (Ubuntu's fix, picked up by the existing `apt-get upgrade`). Not tested: the CUDA and TPU variants (they run the same conda steps), the Ray CI image pipelines (needs the `go` label), and `base-slim` on linux/arm64, which fails to build on `master` with or without this change (`psutil==5.9.8` has no aarch64 wheel and the slim image has no `gcc`). The local builds mounted a pre-downloaded copy of the pinned uv installer because the build network re-signs `astral.sh`; the Dockerfiles used are otherwise identical to this diff. The `brotli==1.2.0` pins in the CI/test lock files (`python/requirements_compiled*.txt`, `python/deplocks/**`) are test dependencies and are not touched here; they need regenerating with the repo's dependency tooling. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Signed-off-by: Ronaldo Saheki <[email protected]> Co-authored-by: Claude Sonnet 5.5 <[email protected]> (cherry picked from commit ed39c78) Signed-off-by: Sai Miduthuri <[email protected]>
sai-miduthuri
added a commit
that referenced
this pull request
Nov 10, 2026
…67789) (#67998) ## Description Cherry-pick of #67789 (master commit 2f5e30a) onto `releases/2.60.1`. **Bottom of a 2-PR stack on `releases/2.60.1`, under #67997 (the #67596 pick).** Merge the stack with `gh stack merge 67997`, which lands this PR first. Brotli 1.0.3 through 1.2.0 has a critical out-of-bounds write in its decoder, CVE-2026-111497 ([GHSA-9v8h-qqgm-4m35](GHSA-9v8h-qqgm-4m35)), fixed in 1.2.1. Ray gets `brotli` transitively through gradio, and it's pinned in the compiled requirements and in the image, CI and release locks. #67789 does the following: - Adds `brotli>=1.2.1` to `security-requirements.txt`. - Moves `brotli` to 1.2.1 in `requirements_compiled.txt` and `requirements_compiled_py3.14.txt`. - Moves the locks to 1.2.1. The #67596 pick, #67997, fixes the conda copy in the base images. It's stacked on this PR because images built on those bases install these locks, and with the old pins pip would downgrade brotli to 1.2.0. ## Related issues Related to #67789. Advisory: GHSA-9v8h-qqgm-4m35 / CVE-2026-111497. ## Additional information ### Cherry-pick details Applied with `git cherry-pick -x`. Of #67789's 41 files: - **29 merged cleanly.** Their added and removed lines are identical to master's. - **11 dropped.** These locks don't exist on this branch, because master added them after the cut: - `ray-torch-cu133_base_py3.11.lock` and `ray-torch-cu133_base_py3.14.lock`; - the nine `release/ray_release/byod/torch_cu128_*_py3.11.lock` files. - **1 resolved: `ray-torch-cu128_base_py3.14.lock`.** It conflicted because it differs from master in other packages. I took this branch's version and replaced brotli's version and hash lines with #67789's 1.2.1 entry, keeping the branch's `# via` line. Its added and removed lines are now identical to master's: brotli 1.2.0 → 1.2.1, -100/+143 hashes. After the pick, every brotli pin in the compiled requirements and lock files is 1.2.1. The exception is `release/ray_release/byod/requirements_ml_byod_3.10.txt`, which nothing references; it is still 1.1.0, the same as on master. #67979 (open on master) regenerates two ray-llm locks whose `# via` annotation master's #67789 left stale. On this branch, `raydepsets build --all-configs` produces no changes after the pick, so that follow-up isn't needed here. Not a duplicate: this branch doesn't contain #67789, and no PR against `releases/2.60.1` references it. #67962 picks the same commit onto `releases/2.58.2`. ### Testing | Command | Result | |---|---| | `pre-commit run --files <the 30 changed files>` | Passed | | `bazel run //ci/raydepsets:raydepsets -- build --all-configs` | Succeeded with no changes to the tree | | `bazel run //ci/raydepsets:raydepsets -- build --all-configs --check` | Passed: "Lock files are up to date." | AI assistance was used to prepare this cherry-pick. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Signed-off-by: elliot-barn <[email protected]> Signed-off-by: Sai Miduthuri <[email protected]> Co-authored-by: Elliot Barnwell <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
sai-miduthuri
added a commit
that referenced
this pull request
Nov 10, 2026
… base-deps and base-slim (CVE-2026-111497) (#67596) (#67997) ## Description Cherry-pick of #67596 (master commit ed39c78) onto `releases/2.60.1`. **Top of a 2-PR stack on `releases/2.60.1`, above #67998 (the #67789 pick).** Merge the stack with `gh stack merge 67997`, which lands #67998 first. This PR needs #67998's lock files. Several images built on these bases install locks with pip: the py3.10 `ray`, `ray-gpu` and `ray-ml` test and release images, and `ray-llm` on 3.11 and 3.12. Without #67998, those locks still pin `brotli==1.2.0`. Installing them downgrades the 1.2.1 this PR puts in the base image. On master, #67789 also merged before #67596. CVE-2026-111497 ([GHSA-9v8h-qqgm-4m35](GHSA-9v8h-qqgm-4m35)) is an out-of-bounds write in the Brotli decoder, fixed in 1.2.1, and it is in CISA KEV. The Miniforge installer used by `docker/base-deps` and `docker/base-slim` ships `brotli-python` 1.1.0 in its base environment, and no pip lock manages it. So every image built on these bases (`ray`, `ray-ml`, `ray-llm`) carries the vulnerable decoder. #67596 does the following: - On Python 3.11 and later, it adds `brotli-python>=1.2.1` to the existing `conda install`. - On Python 3.10, where conda-forge has no 1.2.1 build, it removes the conda package and installs `Brotli==1.2.1` from PyPI. The #67789 pick, #67998, covers the pip-side brotli pins in the compiled requirements and lock files. ## Related issues Related to #67596. Depends on #67998, the #67789 pick. Advisory: GHSA-9v8h-qqgm-4m35 / CVE-2026-111497. ## Additional information ### Cherry-pick details Applied cleanly with `git cherry-pick -x`. It has the same 2 files, +20/-2, and the same `git patch-id --stable` as the master commit. Rebasing it onto #67998 changed neither of those. No prerequisite commits are missing. Three master commits touched these Dockerfiles between the branch cut and #67596: #67256, #67295 and #67350. This branch already has them through the picks #67320, #67322 and #67352. After the pick, both Dockerfiles are identical to master at ed39c78. Not a duplicate: this branch doesn't contain #67596, and no PR against `releases/2.60.1` references it. #67962 picks the same commit onto `releases/2.58.2`. ### Testing | Command | Result | |---|---| | `pre-commit run --files docker/base-deps/Dockerfile docker/base-slim/Dockerfile` | Passed | | With `Brotli==1.2.1` installed, `pip install -r` a file pinning `brotli==1.2.0` | Uninstalls 1.2.1 and installs 1.2.0, which is why this PR is stacked on #67998 | I didn't build the images locally. Both Dockerfiles are now byte-identical to the ones #67596 built and checked on master, for Python 3.10 to 3.14 on amd64 and arm64. CI builds the images on this PR. AI assistance was used to prepare this cherry-pick. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Signed-off-by: Ronaldo Saheki <[email protected]> Signed-off-by: Sai Miduthuri <[email protected]> Co-authored-by: Ronaldo <[email protected]> Co-authored-by: Claude Sonnet 5.5 <[email protected]>
sai-miduthuri
added a commit
that referenced
this pull request
Nov 10, 2026
…67789) (#68027) ## Description Cherry-pick of #67789 (master commit 2f5e30a) onto `releases/2.59.2`. **Bottom of a 3-PR stack on `releases/2.59.2`:** this PR, then #68035 (the brotli bump for the `large_image_embedding` release lock), then #68028 (the #67596 pick). Merge the stack with `gh stack merge 68028`, which lands all three in order. Brotli 1.0.3 through 1.2.0 has a critical out-of-bounds write in its decoder, CVE-2026-111497 ([GHSA-9v8h-qqgm-4m35](GHSA-9v8h-qqgm-4m35)), fixed in 1.2.1. Ray gets `brotli` transitively through gradio, and it's pinned in the compiled requirements and in the image, CI and release locks. #67789 does the following: - Adds `brotli>=1.2.1` to `security-requirements.txt`. - Moves `brotli` to 1.2.1 in `requirements_compiled.txt` and `requirements_compiled_py3.14.txt`. - Moves the locks to 1.2.1. The #67596 pick, #68028, fixes the conda copy in the base images. It's stacked above this PR because images built on those bases install these locks, and with the old pins pip would downgrade brotli to 1.2.0. ## Related issues Related to #67789. Advisory: GHSA-9v8h-qqgm-4m35 / CVE-2026-111497. The same pick for 2.60.1 is #67998. ## Additional information ### Cherry-pick details Applied with `git cherry-pick -x`. Of #67789's 41 files: - **29 applied.** Their added and removed lines are identical to master's. - **12 dropped.** These locks don't exist on this branch, because master added them after the 2.59 cut: - `ray-torch-cu128_base_py3.11.lock` (#65774), `ray-torch-cu133_base_py3.11.lock` and `ray-torch-cu133_base_py3.14.lock`; - the nine `release/ray_release/byod/torch_cu128_*_py3.11.lock` files. - **`ray-torch-cu128_base_py3.14.lock` conflicted**, because it differs from master in other packages. I took this branch's version and replaced brotli's version and hash lines with #67789's 1.2.1 entry, keeping the branch's `# via` line. Its added and removed lines are now identical to master's. - Git's rename detection paired master's `ray-torch-cu128_base_py3.11.lock` with this branch's `windows-tests-torch27-ci_depset_py3.10.lock`. That file has no brotli pin, so it's unchanged. After the pick, every brotli pin in the compiled requirements and image and CI locks is 1.2.1, with two exceptions, both still at 1.1.0: - `release/ray_release/byod/requirements_ml_byod_3.10.txt`. Nothing references it, and it's the same on master. - `release/ray_release/byod/large_image_embedding_py3.10.lock`, for the nightly `large_image_embedding` release test. Master removed that test and its lock in #65819, so #67789 doesn't cover it. `raydepsets` leaves the pin as is, because nothing in that depset's inputs requires a newer brotli. #68035, the next PR in this stack, bumps it to 1.2.1. Not a duplicate: this branch doesn't contain #67789, and no PR against `releases/2.59.2` references it. #67998 picks the same commit onto `releases/2.60.1`. ### Testing | Command | Result | |---|---| | `pre-commit run --files <the 29 changed files>` | Passed | | `bazel run //ci/raydepsets:raydepsets -- build --all-configs` | Succeeded with no changes to the tree | AI assistance was used to prepare this cherry-pick. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Signed-off-by: elliot-barn <[email protected]> Signed-off-by: Sai Miduthuri <[email protected]> Co-authored-by: Elliot Barnwell <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
sai-miduthuri
added a commit
that referenced
this pull request
Nov 10, 2026
…ase lock (#68035) ## Description Follow-up to the #67789 pick (#68027) on `releases/2.59.2`. It bumps brotli from 1.1.0 to 1.2.1 in `release/ray_release/byod/large_image_embedding_py3.10.lock`, the last lock on this branch that still pins a brotli affected by CVE-2026-111497 ([GHSA-9v8h-qqgm-4m35](GHSA-9v8h-qqgm-4m35)). **Middle of a 3-PR stack on `releases/2.59.2`:** #68027 (the #67789 pick), then this PR, then #68028 (the #67596 pick). Merge the stack with `gh stack merge 68028`, which lands all three in order. This lock is the BYOD dependency set of the `large_image_embedding` release test in `release/release_multimodal_inference_benchmarks_tests.yaml`, whose `ray` variation runs nightly. The test image installs it with `uv pip install --system --no-deps -r`, so it would put brotli 1.1.0 back over the 1.2.1 that #68028 puts in the base images. #67789 bumps the other four py3.10 multimodal release locks but has no change for this one, because master removed this test in #65819 before #67789 merged. ## Related issues Follow-up to #68027, the #67789 pick. Advisory: GHSA-9v8h-qqgm-4m35 / CVE-2026-111497. ## Additional information ### How the lock was regenerated I used the same approach #67789 used for the other four py3.10 multimodal locks. I added `--upgrade-package brotli` to the `large_image_embedding_py310` depset's `append_flags`, ran raydepsets, and then reverted the config, so this PR doesn't change it. Brotli is the only package that changes. Its pin, hashes and `# via geventhttpclient` are identical to the `audio_transcription_py3.10.lock` entry that #68027 brings over from master. After this PR, the only brotli pin below 1.2.1 on this branch is in `release/ray_release/byod/requirements_ml_byod_3.10.txt`. Nothing references that file, and master's #67789 leaves it at 1.1.0 too. Not a duplicate: master and `releases/2.60.1` no longer have this lock, so there's no master commit to pick and no 2.60.1 counterpart. No PR against `releases/2.59.2` touches it. ### Testing | Command | Result | |---|---| | `bazel run //ci/raydepsets:raydepsets -- build ci/raydepsets/configs/release_multimodal_inference_benchmarks_tests.depsets.yaml --name large_image_embedding_py310`, with `--upgrade-package brotli` added temporarily | Only `brotli` changes, 1.1.0 → 1.2.1 | | `bazel run //ci/raydepsets:raydepsets -- build --all-configs --check`, with the config reverted | `Lock files are up to date.` | | `pre-commit run --files release/ray_release/byod/large_image_embedding_py3.10.lock` | Passed | I didn't run the `large_image_embedding` release test, which needs a GPU cluster. AI assistance was used to prepare this PR. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Signed-off-by: Sai Miduthuri <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
sai-miduthuri
added a commit
that referenced
this pull request
Nov 10, 2026
… base-deps and base-slim (CVE-2026-111497) (#67596) (#68028) ## Description Cherry-pick of #67596 (master commit ed39c78) onto `releases/2.59.2`. **Top of a 3-PR stack on `releases/2.59.2`:** #68027 (the #67789 pick), then #68035 (the brotli bump for the `large_image_embedding` release lock), then this PR. Merge the stack with `gh stack merge 68028`, which lands all three in order. This PR needs the lock files from #68027 and #68035. Several images built on these bases install locks with pip or uv: the py3.10 `ray`, `ray-gpu` and `ray-ml` test and release images, `ray-llm` on 3.11 and 3.12, and the `large_image_embedding` release-test image. On this branch those locks pin `brotli==1.2.0`, or 1.1.0 for `large_image_embedding`. Installing them would downgrade the 1.2.1 this PR puts in the base image. On master, #67789 also merged before #67596. CVE-2026-111497 ([GHSA-9v8h-qqgm-4m35](GHSA-9v8h-qqgm-4m35)) is an out-of-bounds write in the Brotli decoder, fixed in 1.2.1, and it is in CISA KEV. The Miniforge installer used by `docker/base-deps` and `docker/base-slim` ships `brotli-python` 1.1.0 in its base environment, and no pip lock manages it. So every image built on these bases (`ray`, `ray-ml`, `ray-llm`) carries the vulnerable decoder. #67596 does the following: - On Python 3.11 and later, it adds `brotli-python>=1.2.1` to the existing `conda install`. - On Python 3.10, where conda-forge has no 1.2.1 build, it removes the conda package and installs `Brotli==1.2.1` from PyPI. ## Related issues Related to #67596. Depends on #68027, the #67789 pick, and on #68035. Advisory: GHSA-9v8h-qqgm-4m35 / CVE-2026-111497. The same pick for 2.60.1 is #67997. ## Additional information ### Cherry-pick details Applied cleanly with `git cherry-pick -x` on top of the #67789 pick. It has the same 2 files, +20/-2, and the same `git patch-id --stable` as the master commit. No prerequisite commits are missing. After the pick, both Dockerfiles are identical to master at ed39c78. The master commits that touched them between the 2.59 cut and #67596 reached this branch through #66069 and #67487. Not a duplicate: this branch doesn't contain #67596, and no PR against `releases/2.59.2` references it. #67997 picks the same commit onto `releases/2.60.1`. ### Testing | Command | Result | |---|---| | `pre-commit run --files docker/base-deps/Dockerfile docker/base-slim/Dockerfile` | Passed | | With `Brotli==1.2.1` installed, `pip install -r` a file pinning `brotli==1.2.0` | Uninstalls 1.2.1 and installs 1.2.0, which is why this PR is stacked on #68027 and #68035 | I didn't build the images locally. Both Dockerfiles are now byte-identical to the ones #67596 built and checked on master, for Python 3.10 to 3.14 on amd64 and arm64. CI builds the images on this PR. AI assistance was used to prepare this cherry-pick. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Signed-off-by: Ronaldo Saheki <[email protected]> Signed-off-by: Sai Miduthuri <[email protected]> Co-authored-by: Ronaldo <[email protected]> Co-authored-by: Claude Sonnet 5.5 <[email protected]>
elliot-barn
added a commit
that referenced
this pull request
Nov 11, 2026
…68041) ## Description Brings the Brotli CVE-2026-111497 fixes to `releases/2.57.2`: - **#67596:** conda `brotli-python>=1.2.1` in the `base-deps` and `base-slim` images. py3.10 has no conda-forge 1.2.1 build, so it removes conda's copy and installs the PyPI `Brotli==1.2.1` wheel. - **#67789:** a `brotli>=1.2.1` floor in `security-requirements.txt`, and brotli 1.2.1 in `requirements_compiled(_py3.14).txt` and every lock that pins it. **Stacked on #68040** (eMudhra and aiohttp), because both PRs edit the same `conda install` lines in the Dockerfiles. Merge #68040 first, then retarget this PR to `releases/2.57.2`. After this PR, both Dockerfiles match `releases/2.58.2` exactly. This pair replaces #68013. ## Related issues Related to #67596, #67789 and #67962 (2.58.2). Together with #68040, this supersedes #68013. ## Testing - Every non-Dockerfile line this PR changes is a `brotli` pin; nothing else moves. - `ci/ci.sh compile_pip_dependencies` (py3.11): only brotli's `# via` line changes. - `bazel run //ci/raydepsets:raydepsets -- build --all-configs`, then `--check`: "Lock files are up to date." AI assistance (Claude Code) was used to prepare this change. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: elliot-barn <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
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.
Description
Raise the conda
brotli-pythonindocker/base-depsanddocker/base-slimto 1.2.1 to pick up the fix for CVE-2026-111497 ("Node2Shell", GHSA-9v8h-qqgm-4m35): an out-of-bounds write in the Brotli decoder (upstream fix: google/brotli@0ed4268). PyPI/condaBrotli<= 1.2.0 bundle the vulnerable decoder; 1.2.1 is the fixed release. The CVE is in CISA KEV.The Miniforge 24.11.3 installer used by both Dockerfiles ships
brotli-python 1.1.0in its base environment, and none of the pip lock files manage it. So every image built on these bases (ray,ray-ml,ray-llm) carries the vulnerable decoder, both insite-packagesand as a second copy in the conda package cache.urllib3,requests,aiohttpandhttpxuse Brotli automatically when it is installed.What changes:
brotli-python>=1.2.1to the existingconda install. The followingconda cleanremoves the superseded package from the cache.brotli-python1.2.1 (the newest is 1.2.0), so a floor would make the solve fail. For 3.10 the conda package is removed,Brotli==1.2.1is installed from PyPI, and the cache is cleaned again. This branch can go when 3.10 is deprecated.Alternative considered: moving to a newer Miniforge installer. Miniforge 26.9.4 does ship
brotli-python 1.2.1, but its base is Python 3.14 / conda 26.9.4, and the existingconda install python=<ver> ...step then downgrades conda to 23.9.0 on 3.12 and fails to solve on 3.10. That is a much larger change than a one-package floor.Related issues
None filed. Advisory: GHSA-9v8h-qqgm-4m35 / CVE-2026-111497.
Additional information
Tested by building both Dockerfiles locally with
docker buildx build(ubuntu:22.04, CPU):In every image that built:
Brotli1.2.1, a compress/decompress round trip works, no Brotli < 1.2.1 remains insite-packages, the conda package cache orconda-meta, andlibbrotli1is 1.0.9-2ubuntu0.1 (Ubuntu's fix, picked up by the existingapt-get upgrade).Not tested: the CUDA and TPU variants (they run the same conda steps), the Ray CI image pipelines (needs the
golabel), andbase-slimon linux/arm64, which fails to build onmasterwith or without this change (psutil==5.9.8has no aarch64 wheel and the slim image has nogcc). The local builds mounted a pre-downloaded copy of the pinned uv installer because the build network re-signsastral.sh; the Dockerfiles used are otherwise identical to this diff.The
brotli==1.2.0pins in the CI/test lock files (python/requirements_compiled*.txt,python/deplocks/**) are test dependencies and are not touched here; they need regenerating with the repo's dependency tooling.🤖 Generated with Claude Code