Skip to content

[cherry-pick][2.59.1] eMudhra CA compromise + aiohttp security fixes (#67295, #67301, #67298, #67305, #67304, #67350) - #67487

Merged
elliot-barn merged 7 commits into
releases/2.59.1from
elliot-barn/cherry-pick-2.59.1-emudhra
Oct 28, 2026
Merged

elliot-barn merged 7 commits into
releases/2.59.1from
elliot-barn/cherry-pick-2.59.1-emudhra

Conversation

@elliot-barn

Copy link
Copy Markdown
Collaborator

Cherry-picks the eMudhra CA compromise fixes and the aiohttp 3.14.4 DoS fixes onto releases/2.59.1, as six commits in this order:

  1. [docker] Pin pip 26.2.2 and certifi 2026.10.19 in images for eMudhra CA compromise #67295 Pin pip 26.2.2 and certifi 2026.10.19 in images
  2. [deps] Bump virtualenv to 21.14.12 for eMudhra CA compromise #67301 Bump virtualenv to 21.14.12
  3. [ci] Pin pip 26.2.2 and uv 0.13.4 in Windows/macOS wheel builds for eMudhra CA compromise #67298 Pin pip 26.2.2 and uv 0.13.4 in Windows/macOS wheel builds
  4. [deps] Raise certifi floors to 2026.10.19 everywhere #67305 Raise certifi floors to 2026.10.19
  5. [deps] Bump aiohttp to 3.14.4 for CVE-2026-111064, CVE-2026-111066, GHSA-2g87-pp6c-29x5 #67304 Bump aiohttp to 3.14.4 (CVE-2026-111064, CVE-2026-111066, GHSA-2g87-pp6c-29x5)
  6. [docker] Pin conda certifi and pip to the eMudhra fix releases on every Python #67350 Pin conda certifi and pip on every Python

How the conflicts were resolved

The conflicts are in lock files and come from 2.59 being behind master:

  • Lock files that only exist on master (windows-tests-torch-ci, docstring_examples*, ray-torch-cu128_base_py3.11): left out. windows-tests-torch27-ci_depset_py3.10.lock is the 2.59 name for windows-tests-torch-ci, so it got the same certifi, virtualenv-set and aiohttp/yarl bumps.
  • [deps] Bump virtualenv to 21.14.12 for eMudhra CA compromise #67301: each of the 78 conflicting lock-file sections touches only the packages the PR bumps (virtualenv, packaging, typing-extensions, distlib, python-discovery, plus langchain-core in the ray-llm testdeps). Took the incoming side for all of them.
  • ray-torch-cu128_base_py3.14.lock and requirements_compiled_py3.14.txt: laid out differently on 2.59, so they keep the 2.59 content with only the bumped packages' version and hash lines replaced. Hashes checked against PyPI.
  • security-requirements.txt: resolved for the pick order. The end state matches master.

After all six commits, docker/base-deps/Dockerfile and docker/base-slim/Dockerfile are identical to master. These files stay on old pins because master doesn't update them either: ray_img_py39.lock, docbuild_depset_py3.11.lock, release/requirements_py310.txt, requirements_ml_byod_3.10.txt, and large_image_embedding_py3.10.lock (test deleted on master).

🤖 Generated with Claude Code

elliot-barn and others added 6 commits October 27, 2026 18:57
…CA compromise (#67295)

The private keys of eight eMudhra intermediate CAs were compromised
(https://emudhra.we-have-a-problem.com/). The published Ray images still
trust them:

| In `rayproject/ray:nightly-py312-cpu` | Version | Source |
|---|---|---|
| `pip` | 24.3.1 (vendors a 2024 certifi) | Miniforge 24.11.3 installer;
nothing upgrades it |
| `certifi` in site-packages (used by `requests`) | 2026.4.22 | base
lock; overwrites conda's certifi |
| `uv` binary | 0.11.33 | base-deps / base-slim Dockerfiles |

Checked with Python's `ssl` against the disclosure site's test host
`dv-g3b-emudhra.we-have-a-problem.com`: certifi 2025.11.12 and 2026.4.22
**trust** it, 2026.10.19 rejects it (it drops `emSign ECC Root CA -
G3`).

pip ignores site-packages certifi: it trusts its own vendored certifi
**and** the system store. Tested against the same host with certifi
2026.10.19 installed: pip 24.3.1 connects even with a patched system
store; pip 26.2.2 rejects it when the system store (conda's
`ca-certificates`, already 2026.10.19 on fresh builds) is patched.

- **pip 26.2.2** in `docker/base-deps` and `docker/base-slim`. All
downstream images (ray, ray-ml, ray-llm, ray-torch, base-extra) build on
these two.
- 3.11–3.14: `pip=26.2.2` is added to the existing `conda install
python=...` call.
- 3.10: conda-forge pip 26.2.2 builds require python>=3.11, but the PyPI
release supports 3.10, so it is installed with `uv pip install --system
pip==26.2.2` after the conda step. Tested in
`condaforge/miniforge3:24.11.3-0`: pip 24.3.1 is replaced by 26.2.2
(vendored certifi 2026.10.19). The `menuinst` entry-point warning from
conda 23.9 is pre-existing (#67256).
- **certifi** 2026.10.19 in `requirements_compiled*.txt` and every lock
file (113 files, certifi lines only). The image-related configs
(`rayimg`, `ray_torch`, `release_gpu_cu130`, `release_ml_torchft_tests`,
`release_multimodal_inference_benchmarks_tests`) were regenerated with
raydepsets and uv 0.9.26 (the `WORKSPACE` version); the only package
change is certifi.
- **uv binary** 0.11.33 → 0.13.4 in the two base Dockerfiles.

- CI tooling (pip-tools, Bazel's pip, CI Dockerfiles' uv, uv python
package) stays in #67203.
- runtime_env virtualenvs use virtualenv's bundled pip; virtualenv
21.14.12 (bundles pip 26.2.2) is a separate bump.

🤖 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]>
(cherry picked from commit 79dcc96)
Follow-up to #67295 / #67298 for the eMudhra intermediate CA compromise
(https://emudhra.we-have-a-problem.com/).

The `pip` runtime_env creates venvs with `python -m virtualenv ...
--no-download` (`python/ray/_private/runtime_env/virtualenv_utils.py`),
which seeds each venv with the pip bundled **inside** virtualenv, not
the image's pip. Ray then runs that pip to install the user's packages
(`runtime_env/pip.py`), only reinstalling pip if the user sets
`pip_version`.

- virtualenv 21.2.4 (current lock) bundles pip 26.0.1, whose vendored
certifi still trusts the compromised intermediates.
- virtualenv 21.14.12 (2026-10-21) bundles pip 26.2.2.

So even after #67295 every pip runtime_env on Ray images gets an
affected pip. This applies to all Linux images (`ray_img`, base, llm,
ray-torch locks), not only Windows/macOS. Users who `pip install ray`
themselves already get the latest virtualenv (`ray[default]` only
requires `virtualenv >=20.0.24, !=20.21.1`).

virtualenv 21.14 raises several minimums, so these move together in
`requirements_compiled.txt`, `requirements_compiled_py3.14.txt` and the
locks:

| Package | From | To | Why |
|---|---|---|---|
| virtualenv | 21.2.4 | 21.14.12 | bundled pip 26.2.2 |
| packaging | 25.0 (26.1 on py3.14) | 26.3 | virtualenv
`packaging>=26.3` |
| typing-extensions | 4.15.0 | 4.16.0 | virtualenv `>=4.16` (py<3.11) |
| distlib | 0.4.0 | 0.4.3 | virtualenv `>=0.4.3` |
| python-discovery | 1.2.2 | 1.6.1 | virtualenv `>=1.6.1` |

- The compiled files were edited in place (versions plus the `# via`
changes: packaging gains `virtualenv`, platformdirs loses
`python-discovery`). `uv pip compile` of both files with only these five
pins changed resolves on py3.10/3.11 (main file) and py3.14 (py3.14
file) with no other version moving, so nothing in the full set caps
`packaging<26` or `typing-extensions<4.16`.
- All locks were regenerated with raydepsets (`--all-configs`, uv 0.9.26
from `WORKSPACE`). Constrained depsets change only the five packages
above.
- Unconstrained depsets (TPU base deps, ray-llm `base_extra_testdeps`,
`datatfds`, release BYOD audio/document/image/video/llm_batch) kept
their old virtualenv because uv prefers existing pins. They were
upgraded with `-P` for virtualenv and its direct deps, pinned to the
compiled versions (incl. filelock 3.29.0 / platformdirs 4.9.6), then
re-normalized with raydepsets.
- **langchain-core 0.3.84 → 0.3.76** in the two ray-llm
`base_extra_testdeps` locks (release tests only): every langchain-core
from 0.3.77 caps `packaging<26`. Moving forward instead needs
`langchain-text-splitters` 1.x, which is out of scope here.
- `python/deplocks/ray_img/ray_img_py39.lock` is orphaned (no py3.9
depset) and left at virtualenv 20.29.1.
- `python/requirements/security-requirements.txt`: adds
`virtualenv>=21.14.12` (the first virtualenv release bundling pip
26.2.2), so a future `ci/ci.sh compile_pip_dependencies` /
`compile_pip_dependencies_py314` run (both take this file as an input)
can't fall back to a virtualenv that seeds runtime_env venvs with an
affected pip. virtualenv's `# via` in both compiled files gains `-r
python/requirements/security-requirements.txt`; no lock changes.
Adjacent-line edits to the same 3-line file are also in #67305 (certifi)
and #67304 (aiohttp); whichever merges later needs a trivial rebase.

Needs a CI round on the runtime_env tests (this is the tool that builds
every pip runtime_env venv); no local runtime_env test run yet.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Signed-off-by: elliot-barn <[email protected]>
Signed-off-by: Elliot Barnwell <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 8fdacd3)
…Mudhra CA compromise (#67298)

## Why

Follow-up to #67295 (Linux images) for the eMudhra intermediate CA
compromise (https://emudhra.we-have-a-problem.com/).

The Windows and macOS wheel builds run pip 25.2, which trusts its own
vendored certifi (2025.7.14, still includes `emSign ECC Root CA - G3`)
as well as the system store. `python/setup.py` uses that pip to download
the vendored thirdparty packages (psutil, colorama, aiohttp, idna)
without hash checking, so build-time downloads should not trust the
compromised intermediates.

The shipped wheels themselves need no change: they vendor no
pip/certifi/CA bundle, `requests` and `virtualenv` are not capped, and
Ray's gRPC TLS uses the user's `RAY_TLS_CA_CERT`.

## What

| File | Change |
|---|---|
| `python/build-wheel-windows.sh` | `uv run --with pip==25.2` →
`pip==26.2.2` |
| `ci/ray_ci/windows/build_base.sh` | uv 0.9.22 → 0.13.4
(`build_base.sh` already updates conda `ca-certificates`/`certifi`) |
| `python/build-wheel-macos.sh` | conda `pip=26.2.2` on 3.11–3.14; 3.10
keeps conda `pip=25.2` and upgrades to 26.2.2 from PyPI |
| `ci/build/test-macos-wheels.sh` | same split on the arm64 conda path
(it already runs `pip install -U pip` afterwards) |

conda-forge pip 26.2.2 builds require python>=3.11, but the PyPI release
supports 3.10. Dry-run solves (`conda create --dry-run --platform
osx-arm64|osx-64`) succeed for python 3.10 + pip 25.2 and 3.11–3.14 +
pip 26.2.2 (resolving python 3.13.17 / 3.14.9); python 3.10 + pip 26.2.2
fails.

## Not covered

- CI test locks for Windows/macOS still carry the `uv==0.8.9` python
package and `virtualenv==21.2.4` (test environments only); certifi in
those locks is bumped in #67295.
- pip-tools / Bazel pip / CI Linux Dockerfiles stay in #67203.

🤖 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]>
(cherry picked from commit 1ac3334)
Stacked on #67295 (base branch `elliot-barn/emudhra-image-fix`);
retarget to `master` once #67295 merges.

certifi 2026.10.19 is the fixed version for the eMudhra intermediate CA
compromise (https://emudhra.we-have-a-problem.com/): it drops `emSign
ECC Root CA - G3`, the root the compromised intermediates chain to.
Python's `ssl` with certifi 2026.4.22 still trusts the disclosure site's
test host; 2026.10.19 rejects it.

`requirements_compiled.txt`, `requirements_compiled_py3.14.txt` and
every lock file. This PR raises the **floors** in the input files those
are compiled from, so no future recompile can resolve an affected
certifi.

| File | Before | After | Compiled into |
|---|---|---|---|
| `python/requirements/security-requirements.txt` | `certifi>=2025.1.31`
| `certifi>=2026.10.19` | `requirements_compiled*.txt` (`ci/ci.sh
compile_pip_dependencies` / `_py314`) |
| `python/requirements/cloud-requirements.txt` | `certifi>=2024.8.30` |
`certifi>=2026.10.19` | `requirements_compiled*.txt` |
| `release/requirements_py310.in` | `certifi>=2025.1.31` |
`certifi>=2026.10.19` | `release/requirements_py310.txt`
(`//release:requirements_py310`) |
| `release/requirements_windows.in` | `certifi>=2025.1.31` |
`certifi>=2026.10.19` | `python/deplocks/ci/ci_windows_depset.lock`
(py3.8; certifi 2026.10.19 supports `>=3.7`) |

Every compiled output already pins `certifi==2026.10.19` (from #67295),
so no compiled or lock file changes. After this PR no certifi pin or
floor under `python/`, `release/` or `ci/` is below 2026.10.19.

- `docker/base-deps` / `docker/base-slim` `certifi<2026` for Python
3.10: caps **conda's** certifi, because every conda-forge certifi build
from 2026 requires Python >= 3.11 (#67256). The image's effective
certifi is the PyPI 2026.10.19 the lock installs over it.
- `doc/source/ray-overview/pip_freeze_ray-py310-cpu.txt`
(`certifi==2026.4.22`): a record of a published image's `pip freeze`,
regenerated by the release docs step.
- `ci/ray_ci/windows/build_base.sh` already runs `conda update ...
certifi` to the latest at build time.

🤖 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]>
(cherry picked from commit aab6295)
…HSA-2g87-pp6c-29x5 (#67304)

Closes #67302

Three high-severity advisories against aiohttp, all fixed in 3.14.4
(verified in the GitHub Advisory Database):

| Advisory | Affected | Fixed | Summary |
|---|---|---|---|
| CVE-2026-111064 / GHSA-5wr8-gcqf-gqf3 | <= 3.14.3 | 3.14.4 | server
lacks an initial request/header timeout |
| CVE-2026-111066 / GHSA-9xw5-w5jj-pvcg | >= 2.0.0, < 3.14.4 | 3.14.4 |
file descriptor exhaustion in multipart requests |
| GHSA-2g87-pp6c-29x5 | <= 3.14.3 | 3.14.4 | multiple instances of
excessive or unbounded memory/CPU use |

Ray runs aiohttp **servers** in two places, so the server-side DoS
issues apply directly:

- the runtime_env agent
(`python/ray/_private/runtime_env/agent/main.py`, `web.Application`),
from the copy vendored into the wheel via
`RUNTIME_ENV_AGENT_PIP_PACKAGES` (`aiohttp==3.14.3`). This is what
and it can't be overridden downstream.
- the dashboard, from site-packages: `requirements_compiled.txt` pins
3.14.3, so every image ships it, and the `>= 3.14.1` floor in
`requirements.txt` / `ray[default]` still allows affected versions for
users.

Same shape as #64056:

- `python/setup.py`: bundled `aiohttp==3.14.4`; `ray[default]` floor
`aiohttp >= 3.14.4`.
- `python/requirements.txt`,
`python/requirements/test-requirements.txt`: `aiohttp>=3.14.4`.
- `ci/build/bundled_dependency_versions_test.py`: expects
`aiohttp==3.14.4` (passes locally).
- `python/requirements/security-requirements.txt`: adds
`aiohttp>=3.14.4`, so a future `ci/ci.sh compile_pip_dependencies` /
`compile_pip_dependencies_py314` run (both take this file as an input)
can't resolve an affected aiohttp. aiohttp's `# via` in both compiled
files gains `-r python/requirements/security-requirements.txt`; no lock
changes, since raydepsets only sees the compiled files. Adjacent-line
edits to the same 3-line file are also in #67305 (certifi) and #67301
(virtualenv); whichever merges later needs a trivial rebase.
- `requirements_compiled.txt` / `requirements_compiled_py3.14.txt` and
all raydepsets locks: aiohttp 3.14.4, yarl 1.23.0 → 1.25.1 (aiohttp
3.14.4 requires `yarl>=1.25.1`; yarl's own deps are unchanged). Every
changed lock line is an aiohttp or yarl version/hash line; the size of
the diff is aiohttp 3.14.4 publishing more wheels (e.g. 161 vs 119
hashes in `ray_img_py312.lock`).

Checks:
- `uv pip compile` of both compiled files with only these two pins
changed resolves on py3.11 / py3.14 with no other version moving.
- aiohttp 3.14.4/3.14.5 publish wheels for cp310–cp314 on linux
x86_64/aarch64, macOS arm64/x86_64 and win_amd64.
- The vendored install (`pip install --target ... aiohttp==3.14.4
idna==3.15`) gives aiohttp 3.14.4, yarl 1.25.1, multidict 6.9.1 on
py3.10 and py3.14, and `from aiohttp import web` imports from the
vendored dir.

**Why 3.14.4 and not 3.14.5:** 3.14.5 only adds a WebSocket
control-frame fix and widens its `multidict` cap to `<8`. The vendored
bundle doesn't pin transitive deps, so 3.14.5 would pull multidict 7.1.0
(a new major) into the runtime_env agent; 3.14.4 keeps it on 6.x. Both
satisfy the issue's `>= 3.14.4`.

**Behavior change in 3.14.4:** `application/x-www-form-urlencoded` posts
with more than 1000 fields now get `413` by default (`client_max_fields`
on `web.Application`).

- `python/deplocks/ci/ci_windows_depset.lock` (aiohttp 3.10.11): the
Windows agent driver env is Python 3.8; aiohttp >= 3.11 requires a newer
Python.
- `release/requirements_py310.txt` (aiohttp 3.9.5): release tooling
(`ray_release`), pip-compiled via Bazel; not shipped.
- `release/ray_release/byod/requirements_ml_byod_3.10.txt` (3.13.3): not
referenced by any config.
- `python/deplocks/ray_img/ray_img_py39.lock`: orphaned, no py3.9
depset.
- `releases/2.60.0` also pins 3.14.3; a cherry-pick is a separate
decision.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Signed-off-by: elliot-barn <[email protected]>
Signed-off-by: Elliot Barnwell <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 9ab25fe)
…ry Python (#67350)

## Why

#67256 capped conda's certifi at `<2026` for Python 3.10 in
`docker/base-deps` and `docker/base-slim`, because every conda-forge
certifi from 2026 on required `python>=3.11` and the 3.10 downgrade
failed with `RemoveError`. That cap makes conda install **certifi
2025.11.12**, which still trusts the compromised eMudhra roots. The
py3.10 images only end up patched because the lock install
(`certifi==2026.10.19`) overwrites it afterwards. That leaves stale
records behind in `rayproject/ray:nightly-py310-cpu`:
- `conda-meta/certifi-2025.11.12-pyhd8ed1ab_0.json`
- `pkgs/certifi-2025.11.12-.../certifi/cacert.pem`

Scanners can flag those, and a later `conda` operation could re-link the
old bundle.

Since then, conda-forge has patched certifi **2026.10.19** to allow
Python 3.10
(conda-forge/conda-forge-repodata-patches-feedstock@d7dcb640,
2026-10-21). It is the only patched build: 2026.10.18 and 2026.10.23
still require 3.11.

## What

In both Dockerfiles, pin `certifi=2026.10.19` in the conda step for
**every** Python version, matching the lock files. The lock install then
finds conda's certifi already correct and leaves it alone, so
`conda-meta` and the package cache match what is installed.

```bash
CONDA_PIP_SPEC=("pip=26.2.2")
if [[ "${PYTHON_VERSION}" == "3.10" ]]; then
    # conda-forge pip 26.2.2 requires python>=3.11; 3.10 installs it from PyPI below.
    CONDA_PIP_SPEC=()
fi
conda install -y ... "certifi=2026.10.19" "${CONDA_PIP_SPEC[@]}"
```

certifi is pinned inline for every version; the 3.10 branch is only
about pip. conda-forge pip 26.2.2 still requires `python>=3.11`, with no
repodata patch, so 3.10 keeps installing pip 26.2.2 from PyPI after the
conda step, as before.

## Testing

The test runs in `condaforge/miniforge3:24.11.3-0` (the Dockerfiles'
Miniforge). For each Dockerfile, it extracts the edited spec block and
`conda install` line, runs them, then runs the 3.10 PyPI pip step and
the `certifi` line of that version's `ray_base_deps_py<ver>.lock` with
`uv pip install --no-deps`.

| | 3.10 | 3.11 | 3.12 | 3.13 | 3.14 |
|---|---|---|---|---|---|
| base-deps | ✅ | ✅ | ✅ | ✅ | ✅ |
| base-slim | ✅ | ✅ | ✅ | ✅ | ✅ |

Results for every cell:
- `certifi` is 2026.10.19, and `conda-meta` has 2026.10.19.
- The lock certifi install is a no-op ("Checked 1 package").
- `pip` is 26.2.2.
- conda is 26.7.1 on 3.10 (previously 23.9.0 under the cap), 24.11.3 on
3.12 (unchanged), and 26.9.4 on 3.11/3.13/3.14.

On 3.10, conda's pip record stays at 24.3.1 because pip still comes from
PyPI there, which is unchanged.

The four 3.10–3.12 runs that failed when all ten ran in parallel passed
when rerun one at a time, so those failures came from the concurrent
solves.

This changes the base image inputs, so premerge rebuilds every base
image from scratch, which also exercises the change on every Python
version.

Related: the 2.60 cherry-pick of #67256 (#67320) carries the old
`certifi<2026` cap; this change should replace it there.

## Additional information

Not a duplicate: open PRs touching certifi/conda are only the 2.60
cherry-picks (#67320, #67322, #67346).

AI assistance (Claude Code) was used for 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 (1M context) <[email protected]>
(cherry picked from commit 9a44846)
@elliot-barn
elliot-barn requested review from a team, edoakes and richardliaw as code owners October 27, 2026 19:15
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Note

The number of changes in this pull request is too large for Gemini Code Assist to generate a review.

@cursor

cursor Bot commented Oct 27, 2026

Copy link
Copy Markdown

This PR is too large for Bugbot to review. It changes 42,340 lines and 4,083,598 characters. Split the change into smaller pull requests to get a review.

@elliot-barn elliot-barn added the go add ONLY when ready to merge, run all tests label Oct 27, 2026
@elliot-barn
elliot-barn enabled auto-merge (squash) October 27, 2026 19:30
raydepsets --check drift: via comments in the hand-spliced py3.14 ray-torch
and windows torch27 locks, and the unconstrained large_image_embedding
depset re-resolving aiohttp/yarl.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: elliot-barn <[email protected]>
@github-actions
github-actions Bot disabled auto-merge October 27, 2026 21:28
@ray-gardener ray-gardener Bot added core Issues that should be addressed in Ray Core release-test release test labels Oct 28, 2026
@elliot-barn
elliot-barn merged commit fed9732 into releases/2.59.1 Oct 28, 2026
4 of 5 checks passed
@elliot-barn
elliot-barn deleted the elliot-barn/cherry-pick-2.59.1-emudhra branch October 28, 2026 06:17
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 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
…68040)

## Description

Brings the eMudhra CA compromise and aiohttp DoS fixes to
`releases/2.57.2`. They come from the 2.59.1 squash `fed97328bf`
(#67487: #67295, #67301, #67298, #67305, #67304, #67350), as on 2.58.2
(#67962).

This is the first of two stacked PRs that replace #68013. The Brotli
fixes are in the follow-up PR, which is based on this branch.

## How it was applied

A direct cherry-pick of `fed97328bf` conflicts in about 110 files,
nearly all locks, because 2.57 is two minors behind 2.59. So the source
changes are applied by hand and the locks are regenerated:

- **`docker/base-deps`, `docker/base-slim` Dockerfiles:** the same lines
as `fed97328bf` adds: certifi 2026.10.19 and pip 26.2.2 via conda, uv
pinned to 0.13.4, and pip from PyPI on py3.10.
- **Windows and macOS wheel builds:** pip 26.2.2 and uv 0.13.4.
- **`requirements.txt`, `test-requirements.txt`, `setup.py`:** aiohttp
floor 3.13.3 → 3.14.4.
- **`security-requirements.txt`:** adds aiohttp, certifi and virtualenv
floors.
- **`requirements_compiled.txt`, `requirements_compiled_py3.14.txt`:**
aiohttp 3.14.4, certifi 2026.10.19, virtualenv 21.14.12 with distlib,
packaging, python-discovery and typing-extensions, and yarl 1.25.1. The
version and hash blocks are taken from 2.58.2.
- **`requirements_compiled.txt`** regenerated with `ci/ci.sh
compile_pip_dependencies` (py3.11), so the `# via` lines match. No pins
move.
- **Locks:** regenerated with `raydepsets build --all-configs`. Some
locks aren't constrained by the compiled files: TPU base deps, ray-llm
testdeps, docbuild, datatfds, and the multimodal and llm_batch release
locks. In those, the bumped packages are set to the exact versions from
`releases/2.58.2` (virtualenv 21.14.12, distlib 0.4.3, filelock 3.29.0,
platformdirs 4.9.6, python-discovery 1.6.1, typing-extensions 4.16.0,
certifi 2026.10.19, aiohttp 3.14.4) before the regen, so they match the
source PRs instead of floating to the newest releases.
`large_image_embedding_py3.10.lock` is stale on 2.58.2, so it follows
its sibling multimodal locks.
- **`ray_img_py39.lock`:** certifi 2026.10.19, as on 2.58.2, 2.59.1 and
master. Nothing on 2.57.x builds or reads this lock (`#59484` removed
py3.9 and `#59080` re-added the file by accident), but it ships in the
tree.

**Not ported:** 2.59's pinned `RUNTIME_ENV_AGENT_PIP_PACKAGES` in
`setup.py`. On 2.57 the runtime env agent installs `aiohttp` unpinned.

**Left on old pins, same as 2.58.2 and master:** aiohttp, virtualenv and
yarl in `ray_img_py39.lock`, aiohttp in `ci_windows_depset.lock`,
`requirements_ml_byod_3.10.txt`, aiohttp in
`release/requirements_py310.txt`, and the doc pip-freeze snapshots.

## Related issues

Related to #67487 (2.59.1) and #67962 (2.58.2). Together with the Brotli
PR, this supersedes #68013.

## Testing

- `bazel run //ci/raydepsets:raydepsets -- build --all-configs --check`
passed: "Lock files are up to date."
- `ci/ci.sh compile_pip_dependencies` (py3.11): only `# via` lines
change.
- Every bumped package compared with `releases/2.58.2`: versions and
hashes match, except the intentionally updated `large_image_embedding`.
- No brotli line changes compared with `releases/2.57.2`.

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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Issues that should be addressed in Ray Core go add ONLY when ready to merge, run all tests release-test release test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant