Skip to content

[cherry-pick][2.57.2] idna 3.15+ (CVE-2026-45409) and log4j 2.25.4 security fixes - #68047

Merged
elliot-barn merged 10 commits into
releases/2.57.2from
elliot-barn/cherry-pick-2.57.2-idna
Nov 11, 2026
Merged

elliot-barn merged 10 commits into
releases/2.57.2from
elliot-barn/cherry-pick-2.57.2-idna

Conversation

@elliot-barn

@elliot-barn elliot-barn commented Nov 10, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Brings two dependency security fixes that landed on master after the 2.57 cut to releases/2.57.2. Both are already on 2.58.x:

These are the fixes reported in #64050 and #63919.

Stacked on #68041 (Brotli), which is stacked on #68040 (eMudhra). idna>=3.7 is the line just above #68040's certifi change in security-requirements.txt. Merge #68040, then #68041, then retarget this PR to releases/2.57.2.

Changes

  1. idna (5edd077da0)

    • security-requirements.txt: idna>=3.7 → idna>=3.15.
    • requirements_compiled.txt: idna 3.18. requirements_compiled_py3.14.txt: idna 3.15. Both as on releases/2.58.2.
    • Locks:
      • Where 2.58.2 has the same lock, it gets 2.58.2's idna entry.
      • Some locks are still below 3.15 on 2.58.2 and 2.59.1, and get idna 3.18 here: TPU base deps (3.11), ray-llm testdeps (3.13), datatfds, llm_batch, the multimodal byod py3.10 locks (3.7) and ray_img_py39.lock.
    • Regenerated with ci/ci.sh compile_pip_dependencies (py3.11), then raydepsets build --all-configs.
  2. log4j (90b2394af3): a clean cherry-pick of build(java): upgrade log4j to 2.25.4 #64269, the three version lines in java/dependencies.bzl.

  3. idna in release tooling (ad13264cbc): 3.7 → 3.18 in two files. Both are still on 3.7 on master.

    • release/requirements_py310.txt: the py_deps_py310 Bazel lock and the release-test launcher environment.
    • release/ray_release/byod/requirements_ml_byod_3.10.txt: unreferenced, left over from the ray-ml image.
    • Only the version and hash lines change. The file's generator, //release:requirements_py310.update, can't run on this branch: it fails on sphinx==8.2.3 (requires Python ≥3.11) from requirements-doc.txt, with or without this change.
  4. aiohttp in release/requirements_py310.txt (ea8eb14b97): this file was on aiohttp 3.9.5, below [cherry-pick][2.57.2] eMudhra CA compromise + aiohttp security fixes #68040's aiohttp>=3.14.4 floor.

    • requirements_py310.in gains aiohttp>=3.14.4 and idna>=3.15 floors, next to the existing certifi and h11 floors.
    • The .txt is recompiled: aiohttp 3.9.5 → 3.14.5, yarl 1.9.4 → 1.25.1, aiosignal 1.3.1 → 1.4.0, and the new aiohappyeyeballs 2.7.1 and propcache 0.5.4. No other pin changes.
    • How it's recompiled: with the same tool as //release:requirements_py310.update (pip-tools 6.6.0 on pip 22.0.4 and Python 3.10, --no-upgrade --generate-hashes). The only difference: during the compile, the release/requirements-doc.txt symlink is swapped for the same doc requirements at the versions already in the .txt, because upstream's sphinx==8.2.3 needs Python ≥3.11. Before the .in change, this reproduces the existing .txt byte for byte.

Not ported from #64056:

Related issues

Related to #64056, #64269, #64050 and #63919.

Testing

  • ci/ci.sh compile_pip_dependencies (py3.11): only idna changes.

  • bazel run //ci/raydepsets:raydepsets -- build --all-configs, then --check: "Lock files are up to date." Only idna pins change:

    Before After
    3.7 ×6, 3.11 ×6, 3.12 ×91, 3.13 ×3 3.15 ×7, 3.18 ×99
  • bazel build of the three log4j Maven artifacts and //java:io_ray_ray_api: succeeded with 2.25.4.

  • release/requirements_py310.txt on Python 3.10:

    • uv pip install --dry-run --require-hashes covers all 219 packages, and a full resolve has no conflicts.
    • @py_deps_py310_idna fetches.
  • The idna 3.18 hashes match PyPI.

  • release/requirements_py310.txt after the recompile: uv pip install --dry-run --require-hashes on Python 3.10 covers 221 packages, and a full resolve has no conflicts.

AI assistance (Claude Code) was used to prepare this change.

🤖 Generated with Claude Code

elliot-barn and others added 6 commits November 10, 2026 18:30
Ports the eMudhra CA compromise and aiohttp DoS fixes from the 2.59.1
squash fed9732 (#67487: #67295, #67301, #67298, #67305, #67304,
#67350) onto releases/2.57.2. The Brotli fixes follow in a separate PR.

A direct cherry-pick conflicts in ~110 lock files because 2.57 is two
minors behind 2.59, so the changes are applied by hand:
- docker/base-deps and base-slim Dockerfiles: same hunks as fed9732
  (certifi 2026.10.19 + pip 26.2.2 via conda, uv 0.13.4, py3.10 pip from
  PyPI).
- Windows/macOS wheel builds: pip 26.2.2, uv 0.13.4.
- aiohttp floor 3.13.3 -> 3.14.4; security-requirements gains aiohttp,
  certifi and virtualenv floors.
- requirements_compiled(_py3.14).txt: aiohttp 3.14.4, certifi
  2026.10.19, virtualenv 21.14.12 and its deps, yarl 1.25.1, version and
  hash blocks taken from 2.58.2.
- All locks regenerated with raydepsets build --all-configs. Locks not
  constrained by the compiled files had the stale package entries
  dropped first so uv re-resolves them.

setup.py's 2.59 RUNTIME_ENV_AGENT_PIP_PACKAGES pin is not ported: on 2.57
the runtime env agent installs aiohttp unpinned.

Old pins that are also left on 2.58.2 and master stay: ray_img_py39.lock,
ci_windows_depset.lock (aiohttp), requirements_ml_byod_3.10.txt,
release/requirements_py310.txt (aiohttp), doc pip-freeze snapshots.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: elliot-barn <[email protected]>
Ports the Brotli 1.2.1 fixes onto releases/2.57.2, on top of the eMudhra
pick:
- #67596: conda brotli-python>=1.2.1 in the base-deps and base-slim
  images; py3.10 (no conda-forge 1.2.1 build) swaps in the PyPI wheel.
- #67789: brotli>=1.2.1 floor in security-requirements and brotli 1.2.1
  in requirements_compiled(_py3.14).txt and every lock that pins it.

The Dockerfiles now match releases/2.58.2 exactly. Locks regenerated
with raydepsets build --all-configs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: elliot-barn <[email protected]>
…generate compiled

Addresses review on #68040:
- Unconstrained locks (TPU base deps, ray-llm testdeps, datatfds,
  llm_batch, multimodal byod py3.10) had floated to the newest releases
  when re-resolved. Set the #67301/#67295/#67304 package set to the
  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.
  large_image_embedding (stale on 2.58.2) follows its sibling locks.
- certifi 2026.10.19 in ray_img_py39.lock (unused but shipped, as on
  2.58.2/2.59.1/master), ci_windows_depset.lock and docbuild.
- requirements_compiled.txt regenerated with ci/ci.sh
  compile_pip_dependencies (py3.11); only the # via lines change.
- raydepsets build --all-configs, then --check: up to date.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: elliot-barn <[email protected]>
ci/ci.sh compile_pip_dependencies (py3.11) adds security-requirements to
brotli's # via lines; no pins change. raydepsets build --all-configs
then --check: up to date.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: elliot-barn <[email protected]>
Ports the idna part of #64056 onto releases/2.57.2. CVE-2026-45409
(GHSA-65pc-fj4g-8rjx, idna < 3.15) is an incomplete fix of
CVE-2024-3651: crafted input to idna.encode() can take a long time to
process. #64056 landed after the 2.57 cut, so 2.57.x still pins 3.12.

- security-requirements: idna>=3.7 -> idna>=3.15.
- requirements_compiled.txt: idna 3.18; requirements_compiled_py3.14.txt:
  idna 3.15. Both as on releases/2.58.2.
- Locks: 2.58.2's idna entries where 2.58.2 has the lock. The locks
  that stay below 3.15 on 2.58.2 (TPU base deps, ray-llm testdeps,
  datatfds, llm_batch, multimodal byod py3.10, ray_img_py39) get idna
  3.18 too.
- compile_pip_dependencies (py3.11), then raydepsets build --all-configs
  and --check: up to date. Only idna changes.

Not ported: the log4j bump and the RUNTIME_ENV_AGENT_PIP_PACKAGES pin
from #64056; on 2.57 the agent installs aiohttp unpinned. Left on idna
3.7, same as master: release/requirements_py310.txt and
requirements_ml_byod_3.10.txt.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: elliot-barn <[email protected]>
@elliot-barn
elliot-barn requested review from a team as code owners November 10, 2026 21:49

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the idna dependency version across various requirements files, lock files, and documentation to address security requirements. Specifically, the minimum version of idna in security-requirements.txt is upgraded from 3.7 to 3.15, and the compiled requirements and lock files are updated to use idna version 3.18 (or 3.15 for Python 3.14 environments). I have no feedback to provide.

nh-atuan and others added 2 commits November 10, 2026 21:53
## Description

This upgrades Ray's Java Log4j dependencies from 2.25.3 to 2.25.4 to
address CVE-2026-34480 reported in #64251.

The Log4j artifacts are kept on the same version to avoid mixing
`log4j-api`, `log4j-core`, and `log4j-slf4j-impl` versions.

## Related issues

Closes #64251.

## Additional information

Checks:
- `bazelisk build @maven//:org_apache_logging_log4j_log4j_core`
- `bazelisk build @maven//:org_apache_logging_log4j_log4j_api
@maven//:org_apache_logging_log4j_log4j_slf4j_impl`
- `bazelisk build //java:io_ray_ray_api`

Signed-off-by: nh-atuan <[email protected]>
Co-authored-by: Edward Oakes <[email protected]>
(cherry picked from commit 1831bd5)
Signed-off-by: elliot-barn <[email protected]>
Bumps idna 3.7 -> 3.18 (CVE-2026-45409) in release/requirements_py310.txt
(the py_deps_py310 bazel lock and release-test launcher env) and
release/ray_release/byod/requirements_ml_byod_3.10.txt (unreferenced,
left over from the ray-ml image). Both stay on 3.7 on master.

Only the version and hash lines change; hashes match PyPI. The
generator //release:requirements_py310.update can't run on this branch:
it fails on sphinx==8.2.3 (requires python>=3.11) from
requirements-doc.txt before and after this change. Instead:
- uv pip install --dry-run --require-hashes on python 3.10: all 219
  packages, and a full resolve with no conflicts.
- @py_deps_py310_idna fetches.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: elliot-barn <[email protected]>
@elliot-barn elliot-barn changed the title [cherry-pick][2.57.2] idna 3.15+ for CVE-2026-45409 (from #64056) [cherry-pick][2.57.2] idna 3.15+ (CVE-2026-45409) and log4j 2.25.4 security fixes Nov 10, 2026
…iohttp>=3.14.4

release/requirements_py310.txt pinned aiohttp 3.9.5, below the
aiohttp>=3.14.4 floor from #68040 (CVE-2026-111064, CVE-2026-111066,
GHSA-2g87-pp6c-29x5). requirements_py310.in gains aiohttp>=3.14.4 and
idna>=3.15 floors, next to the existing certifi and h11 floors, and the
.txt is recompiled:
aiohttp 3.9.5 -> 3.14.5, yarl 1.9.4 -> 1.25.1, aiosignal 1.3.1 -> 1.4.0,
new aiohappyeyeballs 2.7.1 and propcache 0.5.4. No other pin changes.

Recompiled with the same tool as //release:requirements_py310.update:
pip-tools 6.6.0 on pip 22.0.4 and python 3.10, --no-upgrade
--generate-hashes. The bazel target can't run as-is because
release/requirements-doc.txt (a symlink to doc/requirements-doc.txt)
pins sphinx 8.2.3, which needs python>=3.11. For the compile, that file
was replaced by the same doc requirements at the versions already in the
.txt, then restored. Before the .in change, this procedure reproduces
the existing .txt byte for byte. Checked with uv pip install --dry-run
--require-hashes on python 3.10 (221 packages) plus a full resolve.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: elliot-barn <[email protected]>
@ray-gardener ray-gardener Bot added the core Issues that should be addressed in Ray Core label Nov 11, 2026
Base automatically changed from elliot-barn/cherry-pick-2.57.2-brotli to releases/2.57.2 November 11, 2026 02:38
Resolves conflicts from the squash merges of #68040/#68041; tree is unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: elliot-barn <[email protected]>
@elliot-barn
elliot-barn merged commit afac8da into releases/2.57.2 Nov 11, 2026
5 of 6 checks passed
@elliot-barn
elliot-barn deleted the elliot-barn/cherry-pick-2.57.2-idna branch November 11, 2026 02:54
elliot-barn added a commit that referenced this pull request Nov 11, 2026
…in release tooling (#68051)

## Description

Closes the remaining security gaps on `releases/2.58.2` so that it
matches the 2.57.2 picks (#68040, #68041, #68047). log4j (2.25.4) and
the `security-requirements.txt` floors are already correct here.

### 1. idna 3.15+ in the remaining locks (`fdcca7fe01`)

[CVE-2026-45409 /
GHSA-65pc-fj4g-8rjx](GHSA-65pc-fj4g-8rjx)
is a medium-severity denial of service in idna before 3.15. 2.58.2 has
the `idna>=3.15` floor from #64056. But locks that aren't constrained by
`requirements_compiled.txt` kept vulnerable idna, and they now get idna
3.18, the compiled pin:

| Lock | Before |
|---|---|
| TPU base deps py3.10–3.13 / py3.14 (these feed the **TPU images**) |
3.11 / 3.13 |
| ray-llm testdeps py3.11/3.12 | 3.13 |
| `datatfds_py3.12`, `llm_batch_single_node_benchmark_py312_cu130` |
3.11 |
| multimodal byod py3.10 release locks (×5) | 3.7 |
| `ray_img_py39.lock`, `requirements_ml_byod_3.10.txt` (unreferenced) |
3.7 |

`large_image_embedding_py3.10.lock` was also still on certifi 2025.1.31
and virtualenv 20.33.1. It now uses its sibling locks' eMudhra pins
(certifi 2026.10.19, virtualenv 21.14.12 and its dependencies, aiohttp
3.14.4), the same as on 2.57.2.

### 2. aiohttp and idna in `release/requirements_py310.txt`
(`30d47f3129`)

This file is the `py_deps_py310` Bazel lock and the release-test
launcher environment. It pinned aiohttp 3.9.5 and idna 3.7.
`requirements_py310.in` gains `aiohttp>=3.14.4` and `idna>=3.15` floors,
and the `.txt` is recompiled:

| Package | Before | After |
|---|---|---|
| aiohttp | 3.9.5 | 3.14.5 |
| yarl | 1.9.4 | 1.25.1 |
| aiosignal | 1.3.1 | 1.4.0 |
| idna | 3.7 | 3.20 |
| aiohappyeyeballs, propcache | none | 2.7.1, 0.5.4 |

No other pin changes.

It's recompiled with the same tool as
`//release:requirements_py310.update`: pip-tools 6.6.0 on pip 22.0.4 and
Python 3.10, `--no-upgrade --generate-hashes`. The one workaround:
`release/requirements-doc.txt`, a symlink to `doc/requirements-doc.txt`,
pins `sphinx==8.2.3`, which needs Python ≥3.11. For the compile, that
symlink was replaced by the same doc requirements at the versions
already in the `.txt`, then restored. Before the `.in` change, this
reproduces the existing `.txt` byte for byte.

### Left as is (same on 2.57.2 and master)

- **`ci_windows_depset.lock`:** compiled for Python 3.8, where aiohttp
tops out at 3.10.11.
- **`ray_img_py39.lock`:** aiohttp stays at 3.11.16, because the Python
3.9 line tops out at 3.13.x.
- **`requirements_ml_byod_3.10.txt`:** aiohttp, brotli and yarl stay as
they are. The file is unreferenced and has no generator.
- **The doc pip-freeze snapshot:** regenerated from the image by the
release docs step.
- **The raydepsets test fixture.**

## Related issues

Related to #64056, #67962, #68047 (2.57.2) and #68048 (master).

## Testing

- `bazel run //ci/raydepsets:raydepsets -- build --all-configs`, then
`--check`: "Lock files are up to date." The locks change only idna and,
in `large_image_embedding`, the package set above.
- `release/requirements_py310.txt`: `uv pip install --dry-run
--require-hashes` on Python 3.10 covers 221 packages, and a full resolve
has no conflicts.
- A scan of every pinned file for aiohttp, certifi, brotli, idna,
virtualenv and yarl below their floors finds only the files listed under
"Left as is".

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]>
elliot-barn added a commit that referenced this pull request Nov 20, 2026
…68048)

## Description

Bumps idna and aiohttp in files that are still below master's security
floors. Those floors only reach locks built against
`requirements_compiled.txt`, so these files never picked them up.

### idna: CVE-2026-45409 (`18de4f0ed0`)

[CVE-2026-45409 /
GHSA-65pc-fj4g-8rjx](GHSA-65pc-fj4g-8rjx)
is a medium-severity denial of service (CVSS 5.3) in idna before 3.15.
#64056 set `idna>=3.15` and idna 3.18 in `requirements_compiled.txt`,
but these files kept vulnerable pins:

| File | Before |
|---|---|
|
`release/ray_release/byod/{audio_transcription,document_embedding,image_classification,video_object_detection}_py3.10.lock`
(multimodal release-test images) | 3.7 |
| `release/requirements_py310.txt` (the `py_deps_py310` Bazel lock and
the release-test launcher environment) | 3.7 |
| `python/deplocks/tests/data/datatfds_py3.12.lock` | 3.11 |
| `release/ray_release/byod/requirements_ml_byod_3.10.txt`
(unreferenced, but present in the tree) | 3.7 |

All of them move to 3.18, the compiled pin.

### aiohttp in `release/requirements_py310.txt` (`eaf171af6f`)

This file still pinned aiohttp 3.9.5, below the `aiohttp>=3.14.4` floor
from #67304 (CVE-2026-111064, CVE-2026-111066, GHSA-2g87-pp6c-29x5):

| Package | Before | After |
|---|---|---|
| aiohttp | 3.9.5 | 3.14.4 |
| yarl | 1.9.4 | 1.25.1 |
| aiosignal | 1.3.1 | 1.4.0 |
| aiohappyeyeballs | none | 2.6.1 (new aiohttp dependency) |
| propcache | none | 0.4.1 (new aiohttp and yarl dependency) |

- These are the versions in `requirements_compiled.txt`. Every other pin
is unchanged; multidict, frozenlist, attrs and async-timeout already
satisfy aiohttp 3.14.4.
- `requirements_py310.in` gains `aiohttp>=3.14.4` and `idna>=3.15`, next
to its existing `certifi` and `h11` floors, so a future regen can't move
them back.

### Why `requirements_py310.txt` is edited by hand

The generator can't run:
- `//release:requirements_py310.update` and `_test` don't build on
master, because `@rules_python//python/pip_install:pip_compile.py` no
longer exists.
- The `.in` can't resolve on Python 3.10 anyway. `requirements-doc.txt`
pins `sphinx==8.2.3` (Python ≥3.11), while the `.txt` still has 7.3.7.

So the new versions come from a `uv pip compile` with every other pin in
the `.txt` held fixed. Only those entries (version and hashes) are
changed, and the existing `# via` lines are kept. I'll fix the generator
separately.

## Related issues

Follow-up to #64056 (#64050, #63919) and #67304. The same idna fix is
being picked onto 2.57.2 in #68047.

## Testing

- `bazel run //ci/raydepsets:raydepsets -- build --all-configs`, then
`--check`: "Lock files are up to date." In the locks only idna versions
change: 3.7 ×6 and 3.11 ×1 → 3.18 ×7.
- `release/requirements_py310.txt` on Python 3.10: `uv pip install
--dry-run --require-hashes` covers all 221 packages, and a full resolve
has no conflicts.
- The hashes for aiohttp, yarl, aiosignal, propcache and
aiohappyeyeballs match the same versions in master's deplocks (97 or
more locks each, 0 mismatches). The idna 3.18 hashes match PyPI.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants