Repository navigation
[Java] Bump jackson-databind 2.18.6 -> 2.18.8 to fix CVE-2026-54512 and CVE-2026-54513 - #64575
Merged
Merged
Conversation
CVE-2026-54513 The bundled jackson-databind 2.18.6 (shaded into ray_dist.jar) is flagged by security scanners for two PolymorphicTypeValidator (PTV) bypass CVEs, both fixed in 2.18.8: - CVE-2026-54512: generic type parameters are not validated against the PTV allow-list (e.g. ArrayList<EvilGadget>). - CVE-2026-54513: allowIfSubTypeIsArray() allowlists arrays by clazz.isArray() without checking the element type (e.g. EvilType[]). 2.18.6 -> 2.18.8 is a patch bump within the 2.18.x line (binary compatible); jackson-core and jackson-annotations resolve transitively to the matching version. Addresses ray-project#64571. Signed-off-by: Rishabh Jain <[email protected]>
risjai
marked this pull request as ready for review
July 7, 2026 16:46
risjai
requested review from
a team,
SongGuyang,
WangTaoTheTonic,
kfstorm and
raulchen
as code owners
July 7, 2026 16:46
edoakes
approved these changes
Jul 23, 2026
400Ping
pushed a commit
to 400Ping/ray
that referenced
this pull request
Aug 18, 2026
CVE-2026-54513 (ray-project#64575) ## Description Bumps the bundled `jackson-databind` dependency from **2.18.6** to **2.18.8** in `java/dependencies.bzl`. `jackson-databind` is shaded into `ray_dist.jar` (relocated to `io.ray.shaded.com.fasterxml.jackson.*`). Version 2.18.6 is flagged by security scanners (Sonatype, Salesforce 3PP, etc.) for two `PolymorphicTypeValidator` (PTV) bypass vulnerabilities, both fixed in **2.18.8**: - **CVE-2026-54512** (CVSS 8.1 HIGH): when a type id contains generic parameters, `DatabindContext._resolveAndValidateGeneric()` validates only the raw container class and never the nested type arguments, so a denied class can be smuggled as a generic parameter of an allowed container (e.g. `java.util.ArrayList<com.evil.Gadget>`), bypassing an explicitly configured PTV allow-list. - **CVE-2026-54513** (CVSS 8.1 HIGH): `allowIfSubTypeIsArray()` allowlists array types based only on `clazz.isArray()` without checking the element type, so `EvilType[]` is permitted even when `EvilType` is not allowlisted. Both CVEs affect `2.10.0` up to (excluding) `2.18.8` and are fixed in `2.18.8`. This is a patch bump within the 2.18.x line (binary compatible); `jackson-core` and `jackson-annotations` resolve transitively to the matching 2.18.8 version. ## Related issues Related to ray-project#64571 (that issue references CVE-2026-54512; this PR also addresses the closely-related CVE-2026-54513, fixed by the same 2.18.8 release). ## Additional information - Single-line change to the pinned coordinate in `java/dependencies.bzl`; there is no `maven_install.json` lockfile to regenerate. - I was not able to build/run Ray’s Java module locally, so this change relies on CI for verification. Signed-off-by: Rishabh Jain <[email protected]> Signed-off-by: 400Ping <[email protected]>
edoakes
pushed a commit
that referenced
this pull request
Nov 20, 2026
## 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]>
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
Bumps the bundled
jackson-databinddependency from 2.18.6 to 2.18.8 injava/dependencies.bzl.jackson-databindis shaded intoray_dist.jar(relocated toio.ray.shaded.com.fasterxml.jackson.*). Version 2.18.6 is flagged by security scanners (Sonatype, Salesforce 3PP, etc.) for twoPolymorphicTypeValidator(PTV) bypass vulnerabilities, both fixed in 2.18.8:DatabindContext._resolveAndValidateGeneric()validates only the raw container class and never the nested type arguments, so a denied class can be smuggled as a generic parameter of an allowed container (e.g.java.util.ArrayList<com.evil.Gadget>), bypassing an explicitly configured PTV allow-list.allowIfSubTypeIsArray()allowlists array types based only onclazz.isArray()without checking the element type, soEvilType[]is permitted even whenEvilTypeis not allowlisted.Both CVEs affect
2.10.0up to (excluding)2.18.8and are fixed in2.18.8. This is a patch bump within the 2.18.x line (binary compatible);jackson-coreandjackson-annotationsresolve transitively to the matching 2.18.8 version.Related issues
Related to #64571 (that issue references CVE-2026-54512; this PR also addresses the closely-related CVE-2026-54513, fixed by the same 2.18.8 release).
Additional information
java/dependencies.bzl; there is nomaven_install.jsonlockfile to regenerate.