Repository navigation
[cherry-pick][2.60.0][deps] Bump aiohttp to 3.14.4 for CVE-2026-111064, CVE-2026-111066, GHSA-2g87-pp6c-29x5 (#67304) - #67344
Merged
sai-miduthuri merged 1 commit intoOct 26, 2026
Conversation
sai-miduthuri
requested review from
a team,
edoakes and
richardliaw
as code owners
October 23, 2026 19:31
Contributor
|
Note The number of changes in this pull request is too large for Gemini Code Assist to generate a review. |
|
This PR is too large for Bugbot to review. It changes 46,898 lines and 4,112,002 characters. Split the change into smaller pull requests to get a review. |
sai-miduthuri
force-pushed
the
sai-miduthuri/cherry-pick-67304-2.60.0
branch
from
October 23, 2026 21:45
2f94c24 to
38985a6
Compare
elliot-barn
approved these changes
Oct 23, 2026
…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) Signed-off-by: Sai Miduthuri <[email protected]>
sai-miduthuri
force-pushed
the
sai-miduthuri/cherry-pick-67304-2.60.0
branch
from
October 23, 2026 22:21
38985a6 to
88d3f2e
Compare
elliot-barn
approved these changes
Oct 23, 2026
sai-miduthuri
added a commit
that referenced
this pull request
Oct 26, 2026
…e python to 3.10 (#67256) (#67320) Cherry-pick of #67256 (master commit dc5d25c) onto `releases/2.60.0`. ## Why On this branch, every Python 3.10 base image that misses the wanda cache fails to build. In postmerge build 20439, that was: - All 11 `ray-slim` py3.10 base images. - 3 aarch64 py3.10 CUDA base images. - `smoke test build-docker.sh`, which always builds `base-deps` from scratch. Each one fails in its `conda install python=3.10` step: ``` RemoveError: This operation will remove conda without replacing it with another version of conda. ``` conda-forge `certifi` builds uploaded since 2026-10-19 require `python>=3.11`, so the py3.10 solve drops `certifi`, `requests` and `conda`. #67256 caps `certifi<2026` for Python 3.10 only, in `docker/base-deps/Dockerfile` and `docker/base-slim/Dockerfile`. On master, the smoke test failed in postmerge builds 20426 and 20436. It has passed in every build since 20445, the first to include #67256. ## Cherry-pick details Applied cleanly with `git cherry-pick -x`. The change is identical to the master commit: the same 2 files, 19 insertions and 2 deletions, and the same `git patch-id --stable`. No prerequisite commits are missing. Both Dockerfiles on this branch were identical to #67256's parent, so after the pick they match master at dc5d25c. This PR is the bottom of stack #67354, in master's order. Above it are the picks of #67011 (#67321), #67295 (#67322), #67305 (#67342), #67301 (#67343), #67304 (#67344) and #67350 (#67352). #67011 and #67295 change base image inputs, so their image builds need this fix. At the top of the stack, the pick of #67350 replaces this cap with a `certifi=2026.10.19` pin, as on master. Not a duplicate: this branch doesn't contain #67256, and no PR against `releases/2.60.0` references it. ## Testing | Command | Result | |---|---| | `pre-commit run --files docker/base-deps/Dockerfile docker/base-slim/Dockerfile` | Passed (trailing whitespace, end of file, large files) | This PR changes the base image inputs, so CI rebuilds the base images, including the py3.10 ones, instead of taking them from the cache. I didn't build the images locally. 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 (1M context) <[email protected]>
sai-miduthuri
added a commit
that referenced
this pull request
Oct 26, 2026
…n images for eMudhra CA compromise (#67295) (#67322) Cherry-pick of #67295 (master commit 79dcc96) onto `releases/2.60.0`. ## Why The private keys of eight eMudhra intermediate CAs were compromised, and images built from this branch still trust them. They ship pip 24.3.1, which trusts its own vendored `certifi`, and an older `certifi` pin in the lock files. #67295 changes three things: - It installs pip 26.2.2 in `docker/base-deps` and `docker/base-slim`. Python 3.10 gets pip from PyPI with `uv`, because conda-forge's pip 26.2.2 requires Python 3.11 or newer. - It moves the `uv` binary to 0.13.4. - It pins `certifi` 2026.10.19 in `requirements_compiled*.txt` and the lock files. #67295 has the full analysis. ## Cherry-pick details Applied with `git cherry-pick -x`. Git merged 112 of the 113 files without conflicts, and in those files the added and removed lines are identical to the master commit. "Deviations from #67295" below covers the other files. After the pick: - `docker/base-deps/Dockerfile` and `docker/base-slim/Dockerfile` match master at 79dcc96. - Every `certifi` pin in `python/deplocks/`, `python/requirements_compiled*.txt` and `release/ray_release/byod/` is 2026.10.19, as on master. This PR is stacked on the picks of #67256 (#67320) and #67011 (#67321). Its Dockerfile changes edit lines that #67256 adds, and #67011 sits below it to keep master's order. The picks of #67305 (#67342), #67301 (#67343), #67304 (#67344) and #67350 (#67352) sit on top of it. Not a duplicate: this branch doesn't contain #67295, and no PR against `releases/2.60.0` references it. ## Deviations from #67295 - **`python/deplocks/ray-torch/ray-torch-cu128_base_py3.14.lock`:** this branch compiles that lock without the `requirements_compiled_py3.14.txt` constraint, so its `certifi` pin was 2026.5.20 rather than master's 2026.4.22, and its `# via` lines differ. This PR replaces its `certifi` entry with #67295's `certifi==2026.10.19` and hashes, and keeps the branch's `# via` lines. - **Left out `python/deplocks/docs/docstring_examples_base_depset_py3.10.lock` and `docstring_examples_depset_py3.10.lock`:** these depsets don't exist on this branch. ## Testing | Command | Result | |---|---| | `pre-commit run --files <the 113 changed files>` | Passed (trailing whitespace, end of file, large files) | I didn't run the dependency check or build the images locally. On this PR, CI's `:tapioca: build: raydepsets: compile all dependencies` job runs `raydepsets build --all-configs --check`, and the image jobs rebuild the base images with pip 26.2.2 and the new locks. 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
Oct 26, 2026
…here (#67305) (#67342) Cherry-pick of #67305 (master commit aab6295) onto `releases/2.60.0`. ## Why This is a follow-up to #67295 for the eMudhra intermediate CA compromise. #67295, picked in #67322, pins `certifi==2026.10.19` in the compiled requirements and lock files. #67305 raises the `certifi` floor to `>=2026.10.19` in the files those are compiled from, so a future recompile can't resolve an affected `certifi`: - `python/requirements/security-requirements.txt` - `python/requirements/cloud-requirements.txt` - `release/requirements_py310.in` - `release/requirements_windows.in` No compiled or lock files change, because every compiled output in this stack already pins 2026.10.19. ## Cherry-pick details Applied cleanly with `git cherry-pick -x`. The change is identical to the master commit: the same 4 files, 4 insertions and 4 deletions, and the same `git patch-id --stable`. No prerequisite commits are missing. The 4 files were identical to #67305's parent, so after the pick they match master at aab6295. This PR is stacked on #67322 (the pick of #67295), because the new floor only matches the compiled pins once #67295 is in. The picks of #67301 (#67343) and #67304 (#67344) sit on top of it, because all three edit adjacent lines of `security-requirements.txt`. Not a duplicate: this branch doesn't contain #67305, and no PR against `releases/2.60.0` references it. ## Testing | Command | Result | |---|---| | `pre-commit run --files <the 4 changed files>` | Passed | 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
Oct 26, 2026
…a fix releases on every Python (#67350) (#67352) Cherry-pick of #67350 (master commit 9a44846) onto `releases/2.60.0`. ## Why #67256, picked in #67320 at the bottom of this stack, avoids the py3.10 `RemoveError` by capping conda's `certifi` at `<2026` for Python 3.10. With that cap, conda installs `certifi` 2025.11.12, which still trusts the compromised eMudhra roots. The py3.10 images end up patched only because the lock install overwrites it with `certifi` 2026.10.19, which leaves stale `conda-meta` and package-cache records behind. conda-forge has since patched `certifi` 2026.10.19 to allow Python 3.10. #67350 pins `certifi=2026.10.19` in the conda step for every Python version, matching the lock files, and removes the py3.10-only cap. pip 26.2.2 still comes from PyPI on Python 3.10. ## Cherry-pick details Applied cleanly with `git cherry-pick -x`. The change is identical to the master commit: the same 2 files, 20 insertions and 16 deletions, and the diff matches line for line. No prerequisite commits are missing. #67350 edits the conda block that #67256 added and #67295 extended. Below this PR, the picks of #67256 (#67320) and #67295 (#67322) leave both Dockerfiles identical to #67350's parent. After this pick they match master at 9a44846. This PR is the top of stack #67354. It was merged to master after every other PR in the stack, so it goes last here too. Below it are the picks of: - #67256 (#67320) - #67011 (#67321) - #67295 (#67322) - #67305 (#67342) - #67301 (#67343) - #67304 (#67344) Not a duplicate: this branch doesn't contain #67350, and no other PR against `releases/2.60.0` picks it. ## Testing | Command | Result | |---|---| | `pre-commit run --files docker/base-deps/Dockerfile docker/base-slim/Dockerfile` | Passed (trailing whitespace, end of file, large files) | I didn't build the images locally. This PR changes the base image inputs, so CI rebuilds the base images, including the py3.10 ones. #67350's own test ran the same conda step in `condaforge/miniforge3:24.11.3-0` for Python 3.10 to 3.14 in both Dockerfiles. 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 (1M context) <[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.
Cherry-pick of #67304 (master commit 9ab25fe) onto
releases/2.60.0.Why
aiohttp 3.14.3, which this branch ships, has three high-severity advisories that are fixed in 3.14.4: CVE-2026-111064, CVE-2026-111066 and GHSA-2g87-pp6c-29x5. Ray runs aiohttp servers in two places: the runtime_env agent, from the copy vendored into the wheel, and the dashboard.
#67304 makes these changes:
python/setup.py: moves the vendored pin toaiohttp==3.14.4and theray[default]floor to>= 3.14.4.python/requirements.txt,python/requirements/test-requirements.txtandsecurity-requirements.txt: raise theaiohttpfloor to 3.14.4.aiohttp3.14.4 andyarl1.25.1. aiohttp 3.14.4 requiresyarl>=1.25.1.Behavior change in aiohttp 3.14.4:
application/x-www-form-urlencodedposts with more than 1000 fields now get a413response by default.Cherry-pick details
Applied with
git cherry-pick -x. Git merged 107 of the 110 files without conflicts.python/deplocks/ray-torch/ray-torch-cu128_base_py3.11.lockalso conflicted, but only in surrounding lines, and its resolved changes are identical to master's. In those 108 files the added and removed lines are identical to the master commit. "Deviations from #67304" below covers the other files.This PR is stacked on the pick of #67301 (#67343), because both edit
security-requirements.txt. The pick of #67350 (#67352) sits on top of it.Not a duplicate: this branch doesn't contain #67304, and no PR against
releases/2.60.0references it.Deviations from #67304
python/requirements_compiled_py3.14.txt: as in the pick of [deps] Bump virtualenv to 21.14.12 for eMudhra CA compromise #67301, this PR keeps this branch's hand-maintained lines.aiohttp3.14.4 andyarl1.25.1.-r python/requirements/security-requirements.txtline underaiohttp. On this branch that file isn't an input to the py3.14 file.python/deplocks/ray-torch/ray-torch-cu128_base_py3.14.lock: this branch hadyarl1.24.2 instead of master's 1.23.0. This PR replaces itsaiohttpandyarlentries with [deps] Bump aiohttp to 3.14.4 for CVE-2026-111064, CVE-2026-111066, GHSA-2g87-pp6c-29x5 #67304's versions and hashes, and keeps the branch's# vialists.python/deplocks/docs/docstring_examples_base_depset_py3.10.lockanddocstring_examples_depset_py3.10.lock: these depsets don't exist on this branch.Testing
pre-commit run --files <the changed files>bazel run //ci/raydepsets:raydepsets -- build --all-configs --check, run on the top of this stack (through the pick of #67304)I didn't run anything else locally. CI's
:coral: reef: ci+release tooling testsjob runs//ci/build:bundled_dependency_versions_test, which checks the vendoredaiohttp==3.14.4pin. CI also runs the raydepsets check and the image builds.AI assistance was used to prepare this cherry-pick.
🤖 Generated with Claude Code