Skip to content

[Java] Bump jackson-databind 2.18.6 -> 2.18.8 to fix CVE-2026-54512 and CVE-2026-54513 - #64575

Merged
edoakes merged 4 commits into
ray-project:masterfrom
risjai:bump-jackson-databind-2.18.8
Jul 24, 2026
Merged

edoakes merged 4 commits into
ray-project:masterfrom
risjai:bump-jackson-databind-2.18.8

Conversation

@risjai

@risjai risjai commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

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 #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.

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]>

@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 jackson-databind dependency version from 2.18.6 to 2.18.8 in java/dependencies.bzl. I have no feedback to provide.

@risjai
risjai marked this pull request as ready for review July 7, 2026 16:46
@ray-gardener ray-gardener Bot added core Issues that should be addressed in Ray Core community-contribution Contributed by the community labels Jul 7, 2026
@edoakes edoakes added the go add ONLY when ready to merge, run all tests label Jul 23, 2026
@edoakes edoakes self-assigned this Jul 23, 2026
@edoakes
edoakes enabled auto-merge (squash) July 23, 2026 15:59
@github-actions
github-actions Bot disabled auto-merge July 24, 2026 03:34
@edoakes
edoakes merged commit cb2cba4 into ray-project:master Jul 24, 2026
3 checks passed
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution Contributed by the community core Issues that should be addressed in Ray Core go add ONLY when ready to merge, run all tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants