{"id":"CVE-2026-91776","aliases":["CVE-2026-91776","GHSA-wv8q-qhhj-9h54"],"related":[],"kind":"vulnerability","state":"published","title":"jackson-databind: unbounded growth of the type id cache in TypeDeserializerBase retains every unknown raw type ID","summary":"TypeDeserializerBase._findDeserializer() in FasterXML jackson-databind caches the resolved deserializer under the raw, attacker-supplied type ID. When name-based polymorphism is configured with a fallback, for example @JsonTypeInfo(use = Id.NAME, defaultImpl = ...), every distinct unrecognized type ID resolves to the same fallback deserializer but is retained as its own key in the _deserializers map. That map has no configurable bound and lives for the lifetime of the type deserializer, so an attacker who can repeatedly supply fresh unknown type IDs causes monotonic memory retention across requests. The reporter observed 10,000 retained entries from 10,000 distinct unknown IDs, against a single entry for a control that repeated one unknown ID the same number of times, isolating attacker-controlled key cardinality from request volume. Exploitation requires an application that enables name-based polymorphism with a defaultImpl or equivalent fallback, accepts attacker-influenced type IDs, and reuses a long-lived ObjectMapper across requests. The fix stops caching fallback resolutions for unrecognized IDs and bounds both the number of cached entries and the length of a cacheable type ID.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"TypeDeserializerBase._findDeserializer() in FasterXML jackson-databind caches the resolved deserializer under the raw, attacker-supplied type ID. When name-based polymorphism is configured with a fallback, for example @JsonTypeInfo(use = Id.NAME, defaultImpl = ...), every distinct unrecognized type ID resolves to the same fallback deserializer but is retained as its own key in the _deserializers map. That map has no configurable bound and lives for the lifetime of the type deserializer, so an attacker who can repeatedly supply fresh unknown type IDs causes monotonic memory retention across requests. The reporter observed 10,000 retained entries from 10,000 distinct unknown IDs, against a single entry for a control that repeated one unknown ID the same number of times, isolating attacker-controlled key cardinality from request volume. Exploitation requires an application that enables name-based polymorphism with a defaultImpl or equivalent fallback, accepts attacker-influenced type IDs, and reuses a long-lived ObjectMapper across requests. The fix stops caching fallback resolutions for unrecognized IDs and bounds both the number of cached entries and the length of a cacheable type ID.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nWith `@JsonTypeInfo(use = Id.NAME, defaultImpl = ...)`, every distinct unknown\nraw type ID selects the same fallback deserializer but is retained as a\nseparate key in `TypeDeserializerBase._deserializers`. An attacker who can\nrepeatedly supply new unknown type IDs can grow this process-lifetime cache\nwithout a configured bound.\n\n### Details\n\nThe affected path is `TypeDeserializerBase._findDeserializer()`. After an\nunknown name-based type ID resolves to the configured fallback/default\nimplementation, jackson-databind caches the result under the attacker-provided\nraw `typeId`. Although all such IDs select the same fallback deserializer, each\nnew string remains a distinct cache key.\n\nThe behavior is runtime-confirmed in jackson-databind 2.22.1 and 3.2.1.\nCurrent 2.22 and 3.2 source branches retained the unbounded `_deserializers`\nmap and per-raw-ID cache write when rechecked. The earlier affected floor has\nnot been established, patched versions are: 2.18.11, 2.21.7, 2.22.3, 3.1.7 and 3.2.3.\n\nThe vulnerable application must enable name-based polymorphism with a\n`defaultImpl` or equivalent fallback, accept attacker-influenced type IDs, and\nreuse a long-lived mapper/type deserializer across requests.\n\nSuggested correction: avoid caching each unknown raw ID when every such ID\nresolves to the same fallback, use a fallback sentinel, or use an explicitly\nbounded concurrency-safe cache. A regression should contrast many distinct\nunknown IDs with repetitions of one unknown ID across requests.\n\n### PoC\n\nConfigure a polymorphic base type with\n`@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, defaultImpl = Fallback.class)` and\ndeserialize inputs containing unknown type names through the same mapper.\nInspect `TypeDeserializerBase._deserializers` after the run.\n\nOn affected 2.x and 3.x versions, 10,000 distinct unknown raw type IDs produce\n10,000 retained cache entries even though every input selects the same\nfallback deserializer. A matched control that repeats one unknown ID 10,000\ntimes produces one retained entry. This isolates attacker-controlled key\ncardinality from ordinary request count.\n\n### Impact\n\nWhere the stated polymorphic fallback configuration is exposed to\nattacker-influenced type IDs, distinct inputs cause incremental\nprocess-lifetime memory retention and eventual availability pressure or\ndenial of service. This is not claimed as a single-request allocation spike,\nand no fixed bytes-per-ID or time-to-out-of-memory value is asserted. No\nconfidentiality, integrity, or code-execution impact is claimed.\n\nRequested credit: Daniel Birtwhistle","format":"markdown","source":"ghsa"}],"published":"2026-09-23T02:17:50.480Z","modified":"2026-09-30T15:46:18.451Z","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.0.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.0.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.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":"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"},{"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"}],"references":[{"url":"https://github.com/FasterXML/jackson-databind/security/advisories/GHSA-wv8q-qhhj-9h54","tags":["exploit","vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/FasterXML/jackson-databind/issues/6203","tags":["patch","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-91776","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/FasterXML/jackson-databind/commit/2870d1d6dc1b7e1c07ee11dd5b04ab71cddbb577","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:02:42.582Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-91776","url":"https://www.cve.org/CVERecord?id=CVE-2026-91776","licence":"CVE Terms of Use","modified":"2026-09-23T14:03:16.129Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-wv8q-qhhj-9h54","url":"https://github.com/advisories/GHSA-wv8q-qhhj-9h54","licence":"CC-BY-4.0","modified":"2026-09-30T15:46:18.451Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-91776","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-91776","licence":"Public domain","modified":"2026-09-24T20:43:32.537Z"}],"updatedAt":"2026-11-25T22:59:40.572Z","epss":{"score":0.00563,"percentile":0.48174,"date":"2026-12-01T12:00:22.000Z"}}