# CVE-2026-54512: jackson-databind: PolymorphicTypeValidator bypass via generic type parameters allows arbitrary class instantiation

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.1
- **CVSS:** 8.1 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 1.00% (percentile 62, 2026-11-26)
- **CWE:** CWE-184, CWE-502
- **Aliases:** GHSA-j3rv-43j4-c7qm
- **Published:** 2026-06-23T20:56:36.646Z
- **Modified:** 2026-10-28T10:56:49.472Z

## Who should check

- Projects that depend on Maven package com.fasterxml.jackson.core:jackson-databind (\>= 2.10.0, \< 2.18.8)
- Projects that depend on Maven package tools.jackson.core:jackson-databind (\>= 3.0.0, \< 3.1.4)
- Anyone running FasterXML jackson-databind \>= 2.10.0, \< 2.18.8; \>= 2.19.0, \< 2.21.4; \>= 3.0.0, \< 3.1.4

## Description

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.

## Affected and fixed versions

- Maven `com.fasterxml.jackson.core:jackson-databind`: affected \>= 2.10.0, \< 2.18.8; fixed 2.18.8, 3.1.4, 2.21.4 (osv)
- Maven `tools.jackson.core:jackson-databind`: affected \>= 3.0.0, \< 3.1.4; fixed 3.1.4 (osv)
- FasterXML jackson-databind: \>= 2.10.0, \< 2.18.8; \>= 2.19.0, \< 2.21.4; \>= 3.0.0, \< 3.1.4 (cvelist)

## Mitigation

- Upgrade com.fasterxml.jackson.core:jackson-databind to one of 2.18.8, 3.1.4, 2.21.4 (or later in the same release line).
- Upgrade tools.jackson.core:jackson-databind to 3.1.4 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-54512. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-54512.md
Affected: com.fasterxml.jackson.core:jackson-databind >= 2.10.0, < 2.18.8; tools.jackson.core:jackson-databind >= 3.0.0, < 3.1.4
Fixed in: 2.18.8, 3.1.4, 2.21.4

Steps:
1. Search this machine and project for com.fasterxml.jackson.core:jackson-databind (Maven), tools.jackson.core:jackson-databind (Maven), FasterXML jackson-databind: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-54512 being exploited?

There is no confirmed exploitation: CVE-2026-54512 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.00% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-54512?

High: CVSS 8.1 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-54512?

com.fasterxml.jackson.core:jackson-databind \>= 2.10.0, \< 2.18.8; tools.jackson.core:jackson-databind \>= 3.0.0, \< 3.1.4.

### Is there a fix for CVE-2026-54512?

Yes. Fixed in 2.18.8, 3.1.4, 2.21.4. Upgrade com.fasterxml.jackson.core:jackson-databind to one of 2.18.8, 3.1.4, 2.21.4 (or later in the same release line). Upgrade tools.jackson.core:jackson-databind to 3.1.4 or later.

### How do I check if I'm affected by CVE-2026-54512?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/FasterXML/jackson-databind/security/advisories/GHSA-j3rv-43j4-c7qm>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-54512>
- patch: <https://github.com/FasterXML/jackson-databind/issues/5988>
- patch: <https://github.com/FasterXML/jackson-databind/commit/434d6c511de7fdd9872f29157aafb6162d12d8d5>
- other: <https://github.com/FasterXML/jackson-databind>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-54512>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-j3rv-43j4-c7qm> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-54512> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-54512>
