CVE-2025-52999: jackson-core can throw a StackoverflowError when processing deeply nested data
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.
Published Jun 27, 2025
Affected packages
com.fasterxml.jackson.core:jackson-core
- Ecosystem
- Maven
- Affected
- < 2.15.0
- Fixed in
- 2.15.0
- Check
mvn dependency:tree -Dincludes=com.fasterxml.jackson.core:jackson-core
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Maven vulnerabilities
All Maven entriesCVE-2026-89407
jackson-core: ReDoS: quadratic backtracking in NumberInput.PATTERN_FLOAT via looksLikeValidNumber()
high7.5Oct 1, 2026CVE-2026-89425
jackson-core: UTF8DataInputJsonParser._reportInvalidToken() missing maxErrorTokenLength limit -> unbounded StringBuilder growth (DoS)
high7.5Oct 1, 2026CVE-2026-68494
jackson-core: Async parser maxNumberLength bypass via chunked digit accumulation (incomplete fix for GHSA-72hv-8253-57qq)
high8.7Jul 21, 2026CVE-2026-18401
jackson-core: Number Length Constraint Bypass in Async Parser Leads to Potential DoS Condition
medium6.9Feb 28, 2026CVE-2025-49128
Jackson-core Vulnerable to Memory Disclosure via Source Snippet in JsonLocation
medium4.0Jun 7, 2025
