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)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| com.fasterxml.jackson.core » jackson-core | < 2.15.0 | 2.15.0 |
Blast radius
71% of the dependent artifacts (107,853) still pull an affected version in their latest release.
| Depth | Dependent 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
- com.fasterxml.jackson.core » jackson-databind44,494 usages
- org.sonatype.central » central-publishing-maven-plugin22,513 usages
- org.springframework.boot » spring-boot-starter-web19,081 usages
- org.renjin » renjin-maven-plugin13,886 usages
- org.renjin » stats13,856 usages
- org.renjin » methods13,854 usages
- org.renjin » datasets13,850 usages
- org.renjin » stats413,781 usages
- org.renjin » splines13,779 usages
- com.fasterxml.jackson.datatype » jackson-datatype-jsr31010,638 usages
- org.springframework.boot » spring-boot-maven-plugin8,665 usages
- org.springframework.boot » spring-boot-starter-actuator6,564 usages
- com.fasterxml.jackson.dataformat » jackson-dataformat-yaml6,005 usages
- org.testcontainers » testcontainers4,109 usages
- com.fasterxml.jackson.module » jackson-module-kotlin4,004 usages
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.
