6.3medium
jackson-databind: Deeply nested JsonNode throws StackOverflowError for toString()
- Severity
- 6.3medium CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.46% (higher than 41% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-3wrr-7qpf-2prh
Description
jackson-databind contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor. From 2.13.0 until 2.14.0, a potential Denial-of-Service exists when attacker sends deeply nested JSON if (and only if) the service reads deeply nested (1000s of levels) JSON as JsonNode (ObjectMapper.readTree()) and writes out same (or modifided) node using JsonNode.toString(). This can consume significant amount of resources with concurrent relatively small requests (1000 nested arrays is 2kB). This vulnerability is fixed in 2.14.0.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| FasterXML jackson-databind | >= 2.10.0, < 2.14.0, from 2.10.0 before 2.14.0 | CVE List, NVD |
| com.fasterxml.jackson.core:jackson-databind (Maven) | from 2.10.0 before 2.14.0 | GitHub Advisory Database |
All scores
| GitHub_M | 6.3medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N |
| GitHub | 7.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.
What each source says
CVE List
jackson-databind contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor. From 2.13.0 until 2.14.0, a potential Denial-of-Service exists when attacker sends deeply nested JSON if (and only if) the service reads deeply nested (1000s of levels) JSON as JsonNode (ObjectMapper.readTree()) and writes out same (or modifided) node using JsonNode.toString(). This can consume significant amount of resources with concurrent relatively small requests (1000 nested arrays is 2kB). This vulnerability is fixed in 2.14.0.
GitHub Advisory Database
Impact
Potential Denial-of-Service when attacker sends deeply nested JSON if (and only if) service:
- Reads deeply nested (1000s of levels) JSON as
JsonNode(ObjectMapper.readTree()) - Writes out same (or modifided) node using
JsonNode.toString()
which can consume significant amount of resources with concurrent relatively small requests (1000 nested arrays is 2kB).
Patches
Fixed in 2.14.0 via https://github.com/FasterXML/jackson-databind/issues/3447.
Workarounds
Avoid serializing JsonNode using toString(): use ObjectMapper.writeValueAsString(node)
NVD (es)
jackson-databind contiene la funcionalidad de enlace de datos de propósito general y el modelo de árbol para Jackson Data Processor. Desde 2.13.0 hasta 2.14.0, existe una potencial Denegación de Servicio cuando el atacante envía JSON profundamente anidado si (y solo si) el servicio lee JSON profundamente anidado (miles de niveles) como JsonNode (ObjectMapper.readTree()) y escribe el mismo nodo (o modificado) usando JsonNode.toString(). Esto puede consumir una cantidad significativa de recursos con solicitudes concurrentes relativamente pequeñas (1000 arrays anidados son 2kB). Esta vulnerabilidad está corregida en 2.14.0.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-50193 changed 2026-06-24 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-3wrr-7qpf-2prh changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2026-50193 changed 2026-10-25 | Public domain |