CVE-2026-91777
jackson-databind quadratic forward-reference completion
Archived. This CVE has left SubZer0's live 30-day window. Signals below are as of 2026-10-30; check the references for anything newer.
- Severity: High
- CVSS 7.5
- EPSS 0.49%
- Public exploit
- P2 · This week
Why P2: this week.
Description
### Summary When an `@JsonIdentityInfo` collection or map first creates N unresolved object-ID references and later resolves the same IDs in reverse order, jackson-databind scans the remaining pending-reference accumulator for each resolution. A shallow JSON document whose size grows linearly can therefore cause quadratic CPU work during deserialization. ### Details The affected path is forward-reference completion in `CollectionDeserializer.CollectionReferringAccumulator.resolveForwardReference()` and the corresponding map implementation. The implementation performs a linear search of the pending accumulator for every resolved object ID. The behavior is runtime-confirmed in jackson-databind 2.5.0, 2.22.1, and 3.2.1. Current 2.22 and 3.2 source branches retained the same design when rechecked. A 2.4.0 control fails closed before successful reverse-order completion, so 2.5.0 is the conservative runtime-confirmed affected floor. The patched versions are: 2.18.11, 2.21.7, 2.22.3, 3.1.7 and 3.2.3. The vulnerable application must deserialize attacker-influenced JSON into an identity-enabled collection or map. The issue does not require deep nesting or syntactically unusual JSON. Suggested correction: replace repeated linear lookup/removal with a keyed pending-reference structure or another design that provides linear or amortized-linear completion. A regression should preserve input order, duplicate-ID behavior, and unresolved-ID errors while bounding reverse-order resoluti…
Affected products
- maven com.fasterxml.jackson.core:jackson-databind >= 2.19.0, <= 2.21.6; first patched: 2.21.7
- maven com.fasterxml.jackson.core:jackson-databind >= 2.22.0, <= 2.22.2; first patched: 2.22.3
- maven com.fasterxml.jackson.core:jackson-databind >= 2.5.0, <= 2.18.10; first patched: 2.18.11
- maven tools.jackson.core:jackson-databind >= 3.0.0, <= 3.1.6; first patched: 3.1.7
- maven tools.jackson.core:jackson-databind >= 3.2.0, <= 3.2.2; first patched: 3.2.3
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
- Advisory reference GitHub