FasterXML jackson-databind
jackson-databind: Array subtype allowlist bypass in BasicPolymorphicTypeValidator (allowIfSubTypeIsArray)
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, BasicPolymorphicTypeValidator.Builder.allowIfSubTypeIsArray() allowlists any array type based only on clazz.isArray(), without validating the array's component (element) type against the configured allowlist. A PTV built with allowIfSubTypeIsArray() plus an explicit concrete-type allowlist therefore still permits EvilType[] even though EvilType is not allowlisted. When Jackson deserializes the elements and no per-element type IDs are present, it instantiates the component type directly with no further PTV check, bypassing the allowlist. This vulnerability is fixed in 2.18.8, 2.21.4, and 3.1.4.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 2.10.0, < 2.18.8
- >= 2.19.0, < 2.21.4
- >= 3.0.0, < 3.1.4
Fixed in 2.18.8, 2.21.4, 3.1.4
Mitigation
Upgrade jackson-databind to 2.18.8 or 2.21.4 or 3.1.4 or later.
References
- Vendor advisory github.com/FasterXML/jackson-databind/security…
- Patch github.com/FasterXML/jackson-databind/pull/598…
- Patch github.com/FasterXML/jackson-databind/commit/0…
1 more
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.