Repository navigation
build(java): upgrade log4j to 2.25.4 - #64269
Conversation
Signed-off-by: nh-atuan <[email protected]>
There was a problem hiding this comment.
Code Review
This pull request updates the Log4j dependencies (log4j-api, log4j-core, and log4j-slf4j-impl) from version 2.25.3 to 2.25.4 in java/dependencies.bzl. There are no review comments, and I have no feedback to provide.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
|
This pull request has been automatically marked as stale because it has not had You can always ask for help on our discussion forum or Ray's public slack channel. If you'd like to keep this open, just leave any comment, and the stale label will be removed. |
|
Hi maintainers, Just a friendly ping to keep this PR active. I've already addressed the previous review feedback and would really appreciate a review whenever someone from the Ray Core team has time. Thank you! |
|
Can this be merged? |
|
Hi maintainers, All tests are passing now, and this PR is ready for review. Since it's currently only waiting for a code owner review, I'd really appreciate it if someone from the Ray Core team could take a look when available. Thanks in advance! |
## Description This upgrades Ray's Java Log4j dependencies from 2.25.3 to 2.25.4 to address CVE-2026-34480 reported in ray-project#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 ray-project#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]> Signed-off-by: 400Ping <[email protected]>
## 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]>
…curity fixes (#68047) ## 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: - **idna, from #64056.** [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. The 2024 fix for CVE-2024-3651 was incomplete: crafted input to `idna.encode()` can still take a long time to process. 2.57.1 shipped idna 3.12. - **log4j, cherry-picked from #64269.** `log4j-api`, `log4j-core` and `log4j-slf4j-impl` go from 2.25.3 to 2.25.4 in `ray_dist.jar`. 2.25.4 fixes every published log4j-core advisory, including CVE-2026-34477, -34478, -34479 and -34480 (April 2026) and CVE-2025-68161. Master and 2.58.2 are on 2.25.4. 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 #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 #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:** - The `RUNTIME_ENV_AGENT_PIP_PACKAGES` pin. On 2.57 the runtime env agent installs `aiohttp` unpinned, so its bundled idna is whatever is current when the wheel is built. - The aiohttp floor. #68040 already sets 3.14.4. - The bundled-versions guard test, because it asserts that pin. ## 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](https://claude.com/claude-code) --------- Signed-off-by: elliot-barn <[email protected]> Signed-off-by: nh-atuan <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Nguyễn Hồ Anh Tuấn <[email protected]> Co-authored-by: Edward Oakes <[email protected]>
## Description Bumps the Java dependencies bundled into `ray_dist.jar`: - log4j (`log4j-api`, `log4j-core`, `log4j-slf4j-impl`) 2.25.4 -> 2.25.5, for CVE-2026-49844. The three artifacts stay on the same version. - `jackson-databind` 2.18.8 -> 2.18.11, for the jackson-core and jackson-databind CVEs listed in #67733. `jackson-core` isn't listed in `dependencies.bzl`; `jackson-databind` 2.18.11 depends on `jackson-core` 2.18.11, so it comes along. `ci/build/bundled_dependency_versions_test.py` now expects log4j 2.25.5 and also checks the `jackson-databind` version, same as it already does for `httpcore5`. No open PR touches these versions (searched open PRs for log4j/jackson). Same kind of change as #64269 and #64575. Tests: - `pytest ci/build/bundled_dependency_versions_test.py`: 4 passed - Checked that all new artifacts are on Maven Central and that the `jackson-databind` 2.18.11 POM pulls `jackson-core` 2.18.11. I didn't run the Bazel Java build locally, so CI covers that. AI assistance (Claude) was used to put this together. I reviewed the diff and ran the test above. ## Related issues Closes #67733 Closes #67734 Signed-off-by: Lucas Barros <[email protected]>
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, andlog4j-slf4j-implversions.Related issues
Closes #64251.
Additional information
Checks:
bazelisk build @maven//:org_apache_logging_log4j_log4j_corebazelisk build @maven//:org_apache_logging_log4j_log4j_api @maven//:org_apache_logging_log4j_log4j_slf4j_implbazelisk build //java:io_ray_ray_api