{"id":"CVE-2026-91777","aliases":["CVE-2026-91777","GHSA-cxp5-3px4-pw24"],"related":[],"kind":"vulnerability","state":"published","title":"jackson-databind: quadratic forward-reference completion in Collection and Map deserializers","summary":"Forward-reference completion for @JsonIdentityInfo object IDs in FasterXML jackson-databind performs a linear scan of the pending-reference accumulator for every resolved ID. The affected paths are CollectionDeserializer.CollectionReferringAccumulator.resolveForwardReference() and the equivalent implementation in MapDeserializer. When a document first creates N unresolved object-ID references in an identity-enabled collection or map and then defines those same IDs in reverse order, completion performs on the order of N * (N + 1) / 2 identity comparisons, so a shallow document whose size grows linearly causes quadratic CPU work during deserialization. The reporter instrumented equals() calls on the ID class and measured exactly 2,003,000 comparisons at N = 2,000, against zero comparisons in the pending-reference lookup path for an equally sized control in which every reference was already resolved. The input requires no deep nesting and no syntactically unusual JSON. Exploitation requires an application that deserializes attacker-influenced JSON into an identity-enabled collection or map. The fix replaces the repeated linear lookup with a keyed pending-reference structure.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Forward-reference completion for @JsonIdentityInfo object IDs in FasterXML jackson-databind performs a linear scan of the pending-reference accumulator for every resolved ID. The affected paths are CollectionDeserializer.CollectionReferringAccumulator.resolveForwardReference() and the equivalent implementation in MapDeserializer. When a document first creates N unresolved object-ID references in an identity-enabled collection or map and then defines those same IDs in reverse order, completion performs on the order of N * (N + 1) / 2 identity comparisons, so a shallow document whose size grows linearly causes quadratic CPU work during deserialization. The reporter instrumented equals() calls on the ID class and measured exactly 2,003,000 comparisons at N = 2,000, against zero comparisons in the pending-reference lookup path for an equally sized control in which every reference was already resolved. The input requires no deep nesting and no syntactically unusual JSON. Exploitation requires an application that deserializes attacker-influenced JSON into an identity-enabled collection or map. The fix replaces the repeated linear lookup with a keyed pending-reference structure.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nWhen an `@JsonIdentityInfo` collection or map first creates N unresolved\nobject-ID references and later resolves the same IDs in reverse order,\njackson-databind scans the remaining pending-reference accumulator for each\nresolution. A shallow JSON document whose size grows linearly can therefore\ncause quadratic CPU work during deserialization.\n\n### Details\n\nThe affected path is forward-reference completion in\n`CollectionDeserializer.CollectionReferringAccumulator.resolveForwardReference()`\nand the corresponding map implementation. The implementation performs a\nlinear search of the pending accumulator for every resolved object ID.\n\nThe behavior is runtime-confirmed in jackson-databind 2.5.0, 2.22.1, and\n3.2.1. Current 2.22 and 3.2 source branches retained the same design when\nrechecked. A 2.4.0 control fails closed before successful reverse-order\ncompletion, so 2.5.0 is the conservative runtime-confirmed affected floor.\nThe patched versions are: 2.18.11, 2.21.7, 2.22.3, 3.1.7 and 3.2.3.\n\nThe vulnerable application must deserialize attacker-influenced JSON into an\nidentity-enabled collection or map. The issue does not require deep nesting or\nsyntactically unusual JSON.\n\nSuggested correction: replace repeated linear lookup/removal with a keyed\npending-reference structure or another design that provides linear or\namortized-linear completion. A regression should preserve input order,\nduplicate-ID behavior, and unresolved-ID errors while bounding reverse-order\nresolution work.\n\n### PoC\n\nThe proof constructs a shallow collection containing N unresolved\n`@JsonIdentityInfo` references followed by definitions of those same IDs in\nreverse order. Its ID class counts `equals()` calls, giving a deterministic\nwork measure rather than a timing-dependent result.\n\nWith N=2,000, affected versions perform exactly 2,003,000 ID comparisons. An\nequally sized control in which every reference is already resolved performs\nzero comparisons in the pending-reference lookup path. The run is bounded to\na 512 MiB JVM. The result demonstrates quadratic growth: approximately\n`N * (N + 1) / 2` comparisons, plus fixed setup comparisons.\n\n### Impact\n\nAn unauthenticated source that can submit JSON to an application using the\naffected identity-enabled collection or map shape can consume quadratic CPU\nand exhaust a request-time or worker-capacity budget, causing denial of\nservice. The application model/configuration prerequisite is material. No\nconfidentiality, integrity, code-execution, or parser-depth impact is claimed.\n\nRequested credit: Daniel Birtwhistle","format":"markdown","source":"ghsa"}],"published":"2026-09-23T02:21:48.323Z","modified":"2026-09-30T15:46:18.051Z","severity":{"scorer":"HeroDevs","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"HeroDevs","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-400"],"affected":[{"ranges":[{"type":"maven","introduced":"2.5.0","lastAffected":"2.18.10","status":"affected"},{"type":"maven","introduced":"2.19.0","lastAffected":"2.21.6","status":"affected"},{"type":"maven","introduced":"2.22.0","lastAffected":"2.22.2","status":"affected"}],"vendor":"FasterXML","product":"jackson-databind","package":"com.fasterxml.jackson.core:jackson-databind","repo":"https://github.com/FasterXML/jackson-databind","source":"cvelist"},{"ranges":[{"type":"maven","introduced":"3.0.0","lastAffected":"3.1.6","status":"affected"},{"type":"maven","introduced":"3.2.0","lastAffected":"3.2.2","status":"affected"}],"vendor":"FasterXML","product":"jackson-databind","package":"tools.jackson.core:jackson-databind","repo":"https://github.com/FasterXML/jackson-databind","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"2.19.0","status":"affected","fixed":"2.21.7"}],"ecosystem":"Maven","package":"com.fasterxml.jackson.core:jackson-databind","purl":"pkg:maven/com.fasterxml.jackson.core/jackson-databind","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.0.0","status":"affected","fixed":"3.1.7"}],"ecosystem":"Maven","package":"tools.jackson.core:jackson-databind","purl":"pkg:maven/tools.jackson.core/jackson-databind","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.2.0","status":"affected","fixed":"3.2.3"}],"ecosystem":"Maven","package":"tools.jackson.core:jackson-databind","purl":"pkg:maven/tools.jackson.core/jackson-databind","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.5.0","status":"affected","fixed":"2.18.11"}],"ecosystem":"Maven","package":"com.fasterxml.jackson.core:jackson-databind","purl":"pkg:maven/com.fasterxml.jackson.core/jackson-databind","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.22.0","status":"affected","fixed":"2.22.3"}],"ecosystem":"Maven","package":"com.fasterxml.jackson.core:jackson-databind","purl":"pkg:maven/com.fasterxml.jackson.core/jackson-databind","source":"ghsa"}],"references":[{"url":"https://github.com/FasterXML/jackson-databind/security/advisories/GHSA-cxp5-3px4-pw24","tags":["exploit","vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/FasterXML/jackson-databind/issues/6204","tags":["patch","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-91777","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/FasterXML/jackson-databind/pull/6204","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/FasterXML/jackson-databind/commit/37ad9b81712cbb9fb62c2d2c1813593252a24b67","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/FasterXML/jackson-databind","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/FasterXML/jackson-databind/releases/tag/jackson-databind-2.18.11","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/FasterXML/jackson-databind/releases/tag/jackson-databind-2.21.7","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/FasterXML/jackson-databind/releases/tag/jackson-databind-2.22.3","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/FasterXML/jackson-databind/releases/tag/jackson-databind-3.1.7","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/FasterXML/jackson-databind/releases/tag/jackson-databind-3.2.3","tags":["web"],"sources":["ghsa"]}],"credits":["Daniel Birtwhistle (dabirt)"],"assigner":"HeroDevs","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2026-09-23T14:04:51.226Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-91777","url":"https://www.cve.org/CVERecord?id=CVE-2026-91777","licence":"CVE Terms of Use","modified":"2026-09-23T14:05:17.919Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-cxp5-3px4-pw24","url":"https://github.com/advisories/GHSA-cxp5-3px4-pw24","licence":"CC-BY-4.0","modified":"2026-09-30T15:46:18.051Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-91777","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-91777","licence":"Public domain","modified":"2026-09-24T20:43:32.537Z"}],"updatedAt":"2026-11-25T22:59:40.573Z","epss":{"score":0.00563,"percentile":0.48173,"date":"2026-12-01T12:00:22.000Z"}}