HIGH 8.7

CVE-2025-52999

jackson-core can throw a StackoverflowError when processing deeply nested data

Description

Impact

With older versions of jackson-core, if you parse an input file and it has deeply nested data, Jackson could end up throwing a StackoverflowError if the depth is particularly large.

Patches

jackson-core 2.15.0 contains a configurable limit for how deep Jackson will traverse in an input document, defaulting to an allowable depth of 1000. Change is in https://github.com/FasterXML/jackson-core/pull/943. jackson-core will throw a StreamConstraintsException if the limit is reached. jackson-databind also benefits from this change because it uses jackson-core to parse JSON inputs.

Workarounds

Users should avoid parsing input files from untrusted sources.

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
com.fasterxml.jackson.core » jackson-core
< 2.15.0
2.15.0

Blast radius

1affected artifacts
236affected versions
149,935dependent artifacts (est.)
7,636,408dependent versions

71% of the dependent artifacts (107,853) still pull an affected version in their latest release.

DepthDependent versions
Direct
537,833
2 hops
2,322,460
3 hops
2,888,685
4 hops
1,216,740
5 hops
493,485
6 hops
177,205

Most used dependents

Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.