{"id":"CVE-2026-54512","published":"2026-06-23T20:56:36Z","modified":"2026-06-24T15:22:43Z","title":"jackson-databind: PolymorphicTypeValidator bypass via generic type parameters allows arbitrary class instantiation","vendor":"FasterXML","product":"jackson-databind","tier":"tail","description":{"text":"jackson-databind contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor. From 2.10.0 until 2.18.8, 2.21.4, and 3.1.4, jackson-databind's PolymorphicTypeValidator (PTV) is the primary safety mechanism guarding polymorphic deserialization. When polymorphic typing is enabled and a type identifier contains generic parameters (i.e. the type ID string contains <), DatabindContext._resolveAndValidateGeneric() validates only the raw container class name (the substring before <) against the configured PTV. If the container type is approved, the method parses the full canonical type string via TypeFactory.constructFromCanonical() and returns the fully parameterized type without ever validating the nested type arguments against the PTV. The nested type arguments are then resolved, instantiated, and populated as beans during deserialization. An attacker who controls the type ID can therefore place a denied class as a generic type parameter of an allowed container — for example java.util.ArrayList<com.evil.Gadget> when only java.util.ArrayList is allow-listed. The container passes the PTV check; com.evil.Gadget is loaded via Class.forName(name, true, loader), instantiated, and its properties are set from attacker-controlled JSON. This completely bypasses an explicitly configured PTV allow-list. This vulnerability is fixed in 2.18.8, 2.21.4, and 3.1.4.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01066,"percentile":0.65571,"provenance":"source"},"cwes":[{"id":"CWE-184","name":"Incomplete List of Disallowed Inputs"},{"id":"CWE-502","name":"Deserialization of Untrusted Data"}],"references":[{"url":"https://github.com/FasterXML/jackson-databind/security/advisories/GHSA-j3rv-43j4-c7qm","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/FasterXML/jackson-databind/issues/5988","tags":["x_refsource_MISC"]},{"url":"https://github.com/FasterXML/jackson-databind/commit/434d6c511de7fdd9872f29157aafb6162d12d8d5","tags":["x_refsource_MISC"]}],"priority":{"score":23.8,"factors":[{"name":"EPSS percentile","points":13.11},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":5.67}]},"exploitSources":{"pocGithub":{"count":1,"skipped":1,"earliest":"2026-09-16","earliestUrl":"https://github.com/cklinisme/doris-spark-connector-cve","repos":[{"name":"cklinisme/doris-spark-connector-cve","url":"https://github.com/cklinisme/doris-spark-connector-cve","stars":0,"created":"2026-09-16"}]},"first":{"date":"2026-09-16","source":"PoC-in-GitHub","url":"https://github.com/cklinisme/doris-spark-connector-cve"},"provenance":"source"},"vendorSlug":"fasterxml","affectedVersions":[{"vendor":"FasterXML","product":"jackson-databind","versions":[">= 2.10.0, < 2.18.8",">= 2.19.0, < 2.21.4",">= 3.0.0, < 3.1.4"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-06-24T14:54:06.511108Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"com.fasterxml.jackson.core:jackson-databind","vulnerableRanges":[">=2.10.0, <2.18.8",">=3.0.0, <3.1.4",">=2.19.0, <2.21.4"],"patched":["2.18.8","3.1.4","2.21.4"],"from":["GHSA-j3rv-43j4-c7qm"],"provenance":"source"},{"ecosystem":"Maven","package":"tools.jackson.core:jackson-databind","vulnerableRanges":[">=3.0.0, <3.1.4"],"patched":["3.1.4"],"from":["GHSA-j3rv-43j4-c7qm"],"provenance":"source"}],"summary":{"text":"The jackson-databind library (FasterXML) contains a flaw in its PolymorphicTypeValidator, the component that guards polymorphic deserialization, affecting versions from 2.10.0 up to 2.18.8, 2.21.4, and 3.1.4 (fixed in 2.18.8, 2.21.4, and 3.1.4). When polymorphic typing is enabled, the validator checks only the raw container class of a type ID that includes generic parameters, so an attacker who controls the type ID can supply a denied class as a generic type argument of an allowed container and have it instantiated and populated from attacker-supplied JSON, bypassing the configured allow-list.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:35:16Z"},"euvd":{"id":"EUVD-2026-38595","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-fasterxml-jackson-databind-cve-2026-54512","children":[{"from":"CVE-2026-54512","to":"CVE-2026-110879","relation":"incomplete-fix","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"incomplete-fix","quote":"This bypasses the generic-argument validation added for CVE-2026-54512 (GHSA-j3rv-43j4-c7qm), of which this is an incomplete fix.","from":"NVD","in":"CVE-2026-110879"},{"kind":"osv-related","provenance":"source","id":"GHSA-j3rv-43j4-c7qm","via":"related"}]}]}}