GHSA-h46c-h94j-95f3
jackson-core can throw a StackoverflowError when processing deeply nested data
En bref
- Publiée
- Mise à jour
- CVE
- CVE-2025-52999
- CVSS_V4
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
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.
Paquets affectés
| Paquet | Versions |
|---|---|
| Maven · com.fasterxml.jackson.core:jackson-core | introduced 0, fixed 2.15.0 |
Références
- https://github.com/FasterXML/jackson-core/security/advisories/GHSA-h46c-h94j-95f3 WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-52999 ADVISORY
- https://github.com/FasterXML/jackson-core/pull/943 WEB
- https://github.com/FasterXML/jackson-core PACKAGE
Sources
| Source | Licence |
|---|---|
| OSV.dev | CC-BY 4.0 — GitHub Advisory Database |