CVE-2022-42004 — Uncontrolled Resource Consumption in jackson-databind
Uncontrolled Resource Consumption in FasterXML jackson-databind
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (3.41%). Schedule for your next planned update.
Does your project use an affected com.fasterxml.jackson.core:jackson-databind version?
Paste your pom.xml to check it for CVE-2022-42004 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
In FasterXML jackson-databind before 2.12.7.1 and in 2.13.x before 2.13.4, resource exhaustion can occur because of a lack of a check in BeanDeserializer._deserializeFromArray to prevent use of deeply nested arrays. This issue can only happen when the UNWRAP_SINGLE_VALUE_ARRAYS feature is explicitly enabled.
Advisory Timeline
- First published October 3, 2022 (1515 days ago).
- Last revised September 10, 2026 — 1438 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
<!-- Update pom.xml dependency version to 2.13.4 for com.fasterxml.jackson.core:jackson-databind -->
<!-- Update pom.xml dependency version to 2.12.7.1 for com.fasterxml.jackson.core:jackson-databind -->
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (2)
Affects 1 ecosystem: Maven (1).
| Package | Fixed In |
|---|---|
| com.fasterxml.jackson.core:jackson-databind Maven · Affected: 2.13.0, 2.13.1, 2.13.2, 2.13.2.1 (+2 more) | 2.13.4 |
| com.fasterxml.jackson.core:jackson-databind Maven · Affected: 2.10.0, 2.10.0.pr1, 2.10.0.pr2, 2.10.0.pr3 (+130 more) | 2.12.7.1 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 7.5 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-42004ADVISORY
- https://github.com/FasterXML/jackson-databind/issues/3582WEB
- https://github.com/FasterXML/jackson-databind/commit/063183589218fec19a9293ed2f17ec53ea80ba88WEB
- https://github.com/FasterXML/jackson-databind/commit/0e37a39502439ecbaa1a5b5188387c01bf7f7fa1WEB
- https://github.com/FasterXML/jackson-databind/commit/35de19e7144c4df8ab178b800ba86e80c3d84252WEB
- https://github.com/FasterXML/jackson-databind/commit/cd090979b7ea78c75e4de8a4aed04f7e9fa8deeaWEB
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=50490WEB
- https://github.com/FasterXML/jackson-databindPACKAGE
- https://lists.debian.org/debian-lts-announce/2022/11/msg00035.htmlWEB
- https://security.gentoo.org/glsa/202210-21WEB
- https://security.netapp.com/advisory/ntap-20221118-0008WEB
- https://www.debian.org/security/2022/dsa-5283WEB
Frequently Asked Questions
- What is CVE-2022-42004?
- Uncontrolled Resource Consumption in FasterXML jackson-databind. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.5/10).
- How do I check if my project is affected by CVE-2022-42004?
- CVE-2022-42004 affects com.fasterxml.jackson.core:jackson-databind. It has a 3.4% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2022-42004 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This places it in the top quartile of EPSS-scored vulnerabilities — 89.7% of tracked vulnerabilities score at or below it, so it is more likely to be exploited than most of the tracked corpus.
Also Known As
Related CVEs
- CVE-2019-16335CRITICAL
Polymorphic Typing issue in FasterXML jackson-databind
- CVE-2020-10969HIGH
jackson-databind mishandles the interaction between serialization gadgets and typing
- CVE-2020-36182HIGH
Unsafe Deserialization in jackson-databind
- CVE-2020-36180HIGH
Unsafe Deserialization in jackson-databind
- CVE-2022-42003HIGH
Uncontrolled Resource Consumption in Jackson-databind
- CVE-2020-36184HIGH
Unsafe Deserialization in jackson-databind
- CVE-2020-14195HIGH
Deserialization of untrusted data in Jackson Databind
- CVE-2019-12384MEDIUM
Deserialization of Untrusted Data in FasterXML jackson-databind