CVE-2022-42004: High severity fasterxml jackson-databind vulnerability
A flaw was found In FasterXML jackson-databind. This issue could allow an attacker to benefit from resource exhaustion due to the lack of a check in BeanDeserializer.deserializeFromArray to prevent the use of deeply nested arrays. An application is only vulnerable with certain customized choices for deserialization.
Other sources
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 UNWRAPSINGLEVALUEARRAYS feature is explicitly enabled.
— GitHub
In FasterXML jackson-databind 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. An application is vulnerable only with certain customized choices for deserialization.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/jackson-databindto a version that resolves this vulnerability.Fixed in 2.9.8-3+deb10u5Fixed in 2.12.1-1+deb11u1Fixed in 2.14.0-1 - Upgrade
Upgrade
redhat/jenkinsto a version that resolves this vulnerability.Fixed in 2-plugins-0:4.11.1686831822-1.el8 - Upgrade
Upgrade
redhat/jenkinsto a version that resolves this vulnerability.Fixed in 2-plugins-0:4.12.1675702407-1.el8 - Upgrade
Upgrade
redhat/eap7-jackson-databindto a version that resolves this vulnerability.Fixed in 0:2.12.7-1.redhat_00003.1.el8ea - Upgrade
Upgrade
redhat/eap7-jackson-databindto a version that resolves this vulnerability.Fixed in 0:2.12.7-1.redhat_00003.1.el9ea - Upgrade
Upgrade
redhat/eap7-jackson-databindto a version that resolves this vulnerability.Fixed in 0:2.12.7-1.redhat_00003.1.el7ea - Upgrade
Upgrade
redhat/candlepinto a version that resolves this vulnerability.Fixed in 0:4.2.13-1.el8 - Upgrade
Upgrade
redhat/rh-sso7-keycloakto a version that resolves this vulnerability.Fixed in 0:18.0.6-1.redhat_00001.1.el7 - Upgrade
Upgrade
redhat/rh-sso7-keycloakto a version that resolves this vulnerability.Fixed in 0:18.0.6-1.redhat_00001.1.el8 - Upgrade
Upgrade
redhat/rh-sso7-keycloakto a version that resolves this vulnerability.Fixed in 0:18.0.6-1.redhat_00001.1.el9 - Upgrade
Upgrade
maven/com.fasterxml.jackson.core:jackson-databindto a version that resolves this vulnerability.Fixed in 2.13.4 - Upgrade
Upgrade
maven/com.fasterxml.jackson.core:jackson-databindto a version that resolves this vulnerability.Fixed in 2.12.7.1 - Upgrade
Upgrade
FasterXML jackson-databindto a version that resolves this vulnerability.Fixed in 2.12.7.1 - Upgrade
Upgrade
FasterXML jackson-databindto a version that resolves this vulnerability.Fixed in 2.13.4 - Configuration
Ensure the UNWRAP_SINGLE_VALUE_ARRAYS feature is not explicitly enabled, since the described resource exhaustion issue can only happen when this feature is explicitly enabled.
FasterXML jackson-databind UNWRAP_SINGLE_VALUE_ARRAYS = disable
Event History
Parent advisories
This vulnerability appears in the following advisories.
- RHSA-2022:7435
- RHSA-2023:0471
- RHSA-2023:3663
- RHSA-2023:1064
- RHSA-2022:8889
- RHSA-2022:8876
- RHSA-2022:9023
- RHSA-2023:1006
- RHSA-2023:0713
- RHSA-2023:3641
- RHSA-2023:2100
- RHSA-2023:0469
- RHSA-2023:0189
- RHSA-2023:3223
- RHSA-2023:0556
- RHSA-2023:0553
- RHSA-2023:0554
- RHSA-2023:0552
- RHSA-2023:2097
- RHSA-2023:1049
- RHSA-2023:1043
- RHSA-2023:1044
- RHSA-2023:1045
- RHSA-2023:1047
- RHSA-2022:8781
- RHSA-2023:0264
- RHSA-2022:9032
- IBM-7262513
Frequently Asked Questions
What is CVE-2022-42004?
CVE-2022-42004 is a vulnerability in FasterXML jackson-databind that allows an attacker to exhaust system resources due to a lack of a check in BeanDeserializer._deserializeFromArray.
How does CVE-2022-42004 impact an application?
CVE-2022-42004 can impact an application by allowing an attacker to exploit deeply nested arrays, leading to resource exhaustion.
What is the severity of CVE-2022-42004?
CVE-2022-42004 has a severity rating of high (7 out of 10).
How can I fix CVE-2022-42004?
To fix CVE-2022-42004, upgrade to FasterXML jackson-databind version 2.13.4 or later.
Where can I find more information about CVE-2022-42004?
More information about CVE-2022-42004 can be found on the CVE website (https://www.cve.org/CVERecord?id=CVE-2022-42004) and the NVD website (https://nvd.nist.gov/vuln/detail/CVE-2022-42004).