CVE-2026-68497
jackson-databind: Duration XMLGregorianCalendar Unbounded Number Parse DoS
Archived. This CVE has left SubZer0's live 30-day window. Signals below are as of 2026-10-28; check the references for anything newer.
- Severity: High
- CVSS 7.5
- EPSS 0.63%
- Public exploit
- P2 · This week
Why P2: this week.
Description
### Summary `jackson-databind` 3.2.1 deserializes a JSON **string** bound to a `javax.xml.datatype.Duration` or `javax.xml.datatype.XMLGregorianCalendar` field by passing the raw string verbatim to `DatatypeFactory.newDuration(value)` / `newXMLGregorianCalendar(value)`. Per the XML-Schema lexical grammar these factory methods accept numeric components of arbitrary length, which the JDK materializes into `java.math.BigInteger` / `BigDecimal` using the native `BigInteger(String)` constructor (an O(n²) parser). Because the digits reside inside a JSON **string** token, jackson-core's `StreamReadConstraints.maxNumberLength` guard (which bounds only JSON *number* tokens) never fires, so there is no length limit anywhere on this path. An unauthenticated attacker can submit a single small request (e.g. ~1–5 MB) that forces tens of seconds to minutes of single-thread CPU consumption, yielding a denial of service under the default `JsonMapper.builder().build()` mapper with no polymorphic typing or special configuration. ### Details `StreamReadConstraints.maxNumberLength` (jackson-core, default 1000) bounds the **text length of JSON number tokens** only; it does not apply to digits inside a JSON string token (`maxStringLength` default is 100,000,000). jackson's own value binders compensate for this gap elsewhere — `NumberDeserializers` explicitly call `streamReadConstraints().validateIntegerLength(text.length())` / `validateFPLength(text.length())` before parsing a *stringified* numbe…
Affected products
- maven com.fasterxml.jackson.core:jackson-databind >= 2.14.0, < 2.18.10; first patched: 2.18.10
- maven com.fasterxml.jackson.core:jackson-databind >= 2.19.0, < 2.21.6; first patched: 2.21.6
- maven com.fasterxml.jackson.core:jackson-databind >= 2.22.0, < 2.22.2; first patched: 2.22.2
- maven tools.jackson.core:jackson-databind >= 3.0.0, < 3.1.6; first patched: 3.1.6
- maven tools.jackson.core:jackson-databind >= 3.2.0, < 3.2.2; first patched: 3.2.2
References
- GitHub security advisory GitHub
- Advisory reference GitHub
- Advisory reference GitHub
- Advisory reference GitHub
- Advisory reference GitHub
- Advisory reference GitHub
- Advisory reference GitHub
- Advisory reference GitHub
- Advisory reference GitHub
- Advisory reference GitHub