GHSA-wv8q-qhhj-9h54: High severity maven/tools.jackson.core:jackson-databind vulnerability

Published Sep 30, 2026
·
Updated

Summary

With @JsonTypeInfo(use = Id.NAME, defaultImpl = ...), every distinct unknown raw type ID selects the same fallback deserializer but is retained as a separate key in TypeDeserializerBase.deserializers. An attacker who can repeatedly supply new unknown type IDs can grow this process-lifetime cache without a configured bound.

Details

The affected path is TypeDeserializerBase.findDeserializer(). After an unknown name-based type ID resolves to the configured fallback/default implementation, jackson-databind caches the result under the attacker-provided raw typeId. Although all such IDs select the same fallback deserializer, each new string remains a distinct cache key.

The behavior is runtime-confirmed in jackson-databind 2.22.1 and 3.2.1. Current 2.22 and 3.2 source branches retained the unbounded deserializers map and per-raw-ID cache write when rechecked. The earlier affected floor has not been established, patched versions are: 2.18.11, 2.21.7, 2.22.3, 3.1.7 and 3.2.3.

The vulnerable application must enable name-based polymorphism with a defaultImpl or equivalent fallback, accept attacker-influenced type IDs, and reuse a long-lived mapper/type deserializer across requests.

Suggested correction: avoid caching each unknown raw ID when every such ID resolves to the same fallback, use a fallback sentinel, or use an explicitly bounded concurrency-safe cache. A regression should contrast many distinct unknown IDs with repetitions of one unknown ID across requests.

PoC

Configure a polymorphic base type with @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, defaultImpl = Fallback.class) and deserialize inputs containing unknown type names through the same mapper. Inspect TypeDeserializerBase.deserializers after the run.

On affected 2.x and 3.x versions, 10,000 distinct unknown raw type IDs produce 10,000 retained cache entries even though every input selects the same fallback deserializer. A matched control that repeats one unknown ID 10,000 times produces one retained entry. This isolates attacker-controlled key cardinality from ordinary request count.

Impact

Where the stated polymorphic fallback configuration is exposed to attacker-influenced type IDs, distinct inputs cause incremental process-lifetime memory retention and eventual availability pressure or denial of service. This is not claimed as a single-request allocation spike, and no fixed bytes-per-ID or time-to-out-of-memory value is asserted. No confidentiality, integrity, or code-execution impact is claimed.

Requested credit: Daniel Birtwhistle

Affected Software

5 affected componentsFixes available
maven/tools.jackson.core:jackson-databind>=3.2.0<=3.2.2
3.2.3
maven/tools.jackson.core:jackson-databind>=3.0.0<=3.1.6
3.1.7
maven/com.fasterxml.jackson.core:jackson-databind>=2.22.0<=2.22.2
2.22.3
maven/com.fasterxml.jackson.core:jackson-databind>=2.19.0<=2.21.6
2.21.7
maven/com.fasterxml.jackson.core:jackson-databind>=2.0.0<=2.18.10
2.18.11

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade maven/tools.jackson.core:jackson-databind to a version that resolves this vulnerability.

    Fixed in 3.2.3
  2. Upgrade

    Upgrade maven/tools.jackson.core:jackson-databind to a version that resolves this vulnerability.

    Fixed in 3.1.7
  3. Upgrade

    Upgrade maven/com.fasterxml.jackson.core:jackson-databind to a version that resolves this vulnerability.

    Fixed in 2.22.3
  4. Upgrade

    Upgrade maven/com.fasterxml.jackson.core:jackson-databind to a version that resolves this vulnerability.

    Fixed in 2.21.7
  5. Upgrade

    Upgrade maven/com.fasterxml.jackson.core:jackson-databind to a version that resolves this vulnerability.

    Fixed in 2.18.11
  6. Upgrade

    Upgrade jackson-databind to a version that resolves this vulnerability.

    Fixed in 2.18.11
  7. Upgrade

    Upgrade jackson-databind to a version that resolves this vulnerability.

    Fixed in 2.21.7
  8. Upgrade

    Upgrade jackson-databind to a version that resolves this vulnerability.

    Fixed in 2.22.3
  9. Upgrade

    Upgrade jackson-databind to a version that resolves this vulnerability.

    Fixed in 3.1.7
  10. Upgrade

    Upgrade jackson-databind to a version that resolves this vulnerability.

    Fixed in 3.2.3
  11. Compensating control

    In the affected TypeDeserializerBase._findDeserializer() path, avoid caching each attacker-provided unknown raw type ID separately when all such IDs resolve to the same fallback; use a fallback sentinel or an explicitly bounded concurrency-safe cache.

Event History

Sep 30, 2026
Advisory Published
via GitHub·03:36 PM
Data Sourced
via GitHub·03:36 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

Which applications are exposed to this issue?

An application is exposed only when it enables name-based polymorphism with a default implementation or equivalent fallback, accepts attacker-influenced type IDs, and reuses a long-lived mapper or type deserializer. Repeated requests using distinct unknown type IDs are required to grow the cache.

2

What versions should be used to remediate the issue?

Patched versions are 2.18.11, 2.21.7, 2.22.3, 3.1.7, and 3.2.3. The earlier affected-version floor has not been established.

3

Are the currently observed branches affected?

The behavior was runtime-confirmed in jackson-databind 2.22.1 and 3.2.1. The 2.22 and 3.2 source branches also retained the unbounded deserializer map and per-raw-ID cache write when rechecked.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203