VDB
Sign up
HIGH

GHSA-h46c-h94j-95f3

jackson-core can throw a StackoverflowError when processing deeply nested data

Quick fix

GHSA-h46c-h94j-95f3 — com.fasterxml.jackson.core:jackson-core: upgrade to the fixed version with the command below.

# pom.xml: bump <version>2.15.0</version> for com.fasterxml.jackson.core:jackson-core

Details

### 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.

Are you affected?

Enter the version of the package you're using.

Affected packages

Maven/com.fasterxml.jackson.core:jackson-core
Introduced in: 0Fixed in: 2.15.0
Fix# pom.xml: bump <version>2.15.0</version> for com.fasterxml.jackson.core:jackson-core

References