jackson-databind: Deeply nested JsonNode throws StackOverflowError for toString()
FasterXML jackson-databind
FasterXML jackson-databind
| Product | Affected | Fixed in |
|---|---|---|
| com.fasterxml.jackson.core:jackson-databind Maven |
|
|
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.
From the CVE record · GitHub_M
jackson-databind can consume significant resources when a service reads deeply nested JSON with ObjectMapper.readTree() and then writes the same or modified node with JsonNode.toString(). An attacker who can send such JSON to the service can cause a denial of service with concurrent requests.
Check services using Maven package com.fasterxml.jackson.core:jackson-databind versions 2.10.0 through versions before 2.14.0.