CVE-2022-42003: 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 when the UNWRAPSINGLEVALUEARRAYS feature is enabled due to unchecked primitive value deserializers to avoid deep wrapper array nesting.
Other sources
In FasterXML jackson-databind 2.4.0-rc1 until 2.12.7.1 and in 2.13.x before 2.13.4.2 resource exhaustion can occur because of a lack of a check in primitive value deserializers to avoid deep wrapper array nesting, when the UNWRAPSINGLEVALUEARRAYS feature is enabled. This was patched in 2.12.7.1, 2.13.4.2, and 2.14.0.
Commits that introduced vulnerable code are https://github.com/FasterXML/jackson-databind/commit/d499f2e7bbc5ebd63af11e1f5cf1989fa323aa45, https://github.com/FasterXML/jackson-databind/commit/0e37a39502439ecbaa1a5b5188387c01bf7f7fa1, and https://github.com/FasterXML/jackson-databind/commit/7ba9ac5b87a9d6ac0d2815158ecbeb315ad4dcdc.
Fix commits are https://github.com/FasterXML/jackson-databind/commit/cd090979b7ea78c75e4de8a4aed04f7e9fa8deea and https://github.com/FasterXML/jackson-databind/commit/d78d00ee7b5245b93103fef3187f70543d67ca33.
The 2.13.4.1 release does fix this issue, however it also references a non-existent jackson-bom which causes build failures for gradle users. See https://github.com/FasterXML/jackson-databind/issues/3627#issuecomment-1277957548 for details. This is fixed in 2.13.4.2 which is listed in the advisory metadata so that users are not subjected to unnecessary build failures
— GitHub
In FasterXML jackson-databind before 2.14.0-rc1, resource exhaustion can occur because of a lack of a check in primitive value deserializers to avoid deep wrapper array nesting, when the UNWRAPSINGLEVALUEARRAYS feature is enabled. Additional fix version in 2.13.4.1 and 2.12.17.1
In FasterXML jackson-databind before versions 2.13.4.1 and 2.12.17.1, resource exhaustion can occur because of a lack of a check in primitive value deserializers to avoid deep wrapper array nesting, when the UNWRAPSINGLEVALUEARRAYS feature is enabled.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- 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.1.19-1.el7 - Upgrade
Upgrade
redhat/foremanto a version that resolves this vulnerability.Fixed in 0:3.1.1.26-1.el7 - Upgrade
Upgrade
redhat/satelliteto a version that resolves this vulnerability.Fixed in 0:6.11.5-1.el7 - Upgrade
Upgrade
redhat/satellite-cloneto a version that resolves this vulnerability.Fixed in 0:3.1.1-2.el7 - Upgrade
Upgrade
redhat/tfm-pulpcore-python-nayato a version that resolves this vulnerability.Fixed in 0:1.1.1-1.1.el7 - Upgrade
Upgrade
redhat/tfm-pulpcore-python-pulp-containerto a version that resolves this vulnerability.Fixed in 0:2.9.9-1.el7 - Upgrade
Upgrade
redhat/tfm-pulpcore-python-pulpcoreto a version that resolves this vulnerability.Fixed in 0:3.16.15-1.el7 - Upgrade
Upgrade
redhat/tfm-rubygem-actioncableto a version that resolves this vulnerability.Fixed in 0:6.0.6-2.el7 - Upgrade
Upgrade
redhat/tfm-rubygem-actionmailboxto a version that resolves this vulnerability.Fixed in 0:6.0.6-2.el7 - Upgrade
Upgrade
redhat/tfm-rubygem-actionmailerto a version that resolves this vulnerability.Fixed in 0:6.0.6-2.el7 - Upgrade
Upgrade
redhat/tfm-rubygem-actionpackto a version that resolves this vulnerability.Fixed in 0:6.0.6-2.el7 - Upgrade
Upgrade
redhat/tfm-rubygem-actiontextto a version that resolves this vulnerability.Fixed in 0:6.0.6-2.el7 - Upgrade
Upgrade
redhat/tfm-rubygem-actionviewto a version that resolves this vulnerability.Fixed in 0:6.0.6-2.el7 - Upgrade
Upgrade
redhat/tfm-rubygem-activejobto a version that resolves this vulnerability.Fixed in 0:6.0.6-2.el7 - Upgrade
Upgrade
redhat/tfm-rubygem-activemodelto a version that resolves this vulnerability.Fixed in 0:6.0.6-2.el7 - Upgrade
Upgrade
redhat/tfm-rubygem-activerecordto a version that resolves this vulnerability.Fixed in 0:6.0.6-2.el7 - Upgrade
Upgrade
redhat/tfm-rubygem-activestorageto a version that resolves this vulnerability.Fixed in 0:6.0.6-2.el7 - Upgrade
Upgrade
redhat/tfm-rubygem-activesupportto a version that resolves this vulnerability.Fixed in 0:6.0.6-1.el7 - Upgrade
Upgrade
redhat/tfm-rubygem-katelloto a version that resolves this vulnerability.Fixed in 0:4.3.0.52-1.el7 - Upgrade
Upgrade
redhat/tfm-rubygem-railsto a version that resolves this vulnerability.Fixed in 0:6.0.6-2.el7 - Upgrade
Upgrade
redhat/tfm-rubygem-railtiesto a version that resolves this vulnerability.Fixed in 0:6.0.6-2.el7 - Upgrade
Upgrade
redhat/candlepinto a version that resolves this vulnerability.Fixed in 0:4.1.19-1.el8 - Upgrade
Upgrade
redhat/foremanto a version that resolves this vulnerability.Fixed in 0:3.1.1.26-1.el8 - Upgrade
Upgrade
redhat/python-nayato a version that resolves this vulnerability.Fixed in 0:1.1.1-1.1.el8 - Upgrade
Upgrade
redhat/python-pulp-containerto a version that resolves this vulnerability.Fixed in 0:2.9.9-1.el8 - Upgrade
Upgrade
redhat/python-pulpcoreto a version that resolves this vulnerability.Fixed in 0:3.16.15-1.el8 - Upgrade
Upgrade
redhat/rubygem-actioncableto a version that resolves this vulnerability.Fixed in 0:6.0.6-2.el8 - Upgrade
Upgrade
redhat/rubygem-actionmailboxto a version that resolves this vulnerability.Fixed in 0:6.0.6-2.el8 - Upgrade
Upgrade
redhat/rubygem-actionmailerto a version that resolves this vulnerability.Fixed in 0:6.0.6-2.el8 - Upgrade
Upgrade
redhat/rubygem-actionpackto a version that resolves this vulnerability.Fixed in 0:6.0.6-2.el8 - Upgrade
Upgrade
redhat/rubygem-actiontextto a version that resolves this vulnerability.Fixed in 0:6.0.6-2.el8 - Upgrade
Upgrade
redhat/rubygem-actionviewto a version that resolves this vulnerability.Fixed in 0:6.0.6-2.el8 - Upgrade
Upgrade
redhat/rubygem-activejobto a version that resolves this vulnerability.Fixed in 0:6.0.6-2.el8 - Upgrade
Upgrade
redhat/rubygem-activemodelto a version that resolves this vulnerability.Fixed in 0:6.0.6-2.el8 - Upgrade
Upgrade
redhat/rubygem-activerecordto a version that resolves this vulnerability.Fixed in 0:6.0.6-2.el8 - Upgrade
Upgrade
redhat/rubygem-activestorageto a version that resolves this vulnerability.Fixed in 0:6.0.6-2.el8 - Upgrade
Upgrade
redhat/rubygem-activesupportto a version that resolves this vulnerability.Fixed in 0:6.0.6-1.el8 - Upgrade
Upgrade
redhat/rubygem-katelloto a version that resolves this vulnerability.Fixed in 0:4.3.0.52-1.el8 - Upgrade
Upgrade
redhat/rubygem-railsto a version that resolves this vulnerability.Fixed in 0:6.0.6-2.el8 - Upgrade
Upgrade
redhat/rubygem-railtiesto a version that resolves this vulnerability.Fixed in 0:6.0.6-2.el8 - Upgrade
Upgrade
redhat/satelliteto a version that resolves this vulnerability.Fixed in 0:6.11.5-1.el8 - Upgrade
Upgrade
redhat/satellite-cloneto a version that resolves this vulnerability.Fixed in 0:3.1.1-2.el8 - Upgrade
Upgrade
redhat/candlepinto a version that resolves this vulnerability.Fixed in 0:4.1.18-1.el8 - Upgrade
Upgrade
redhat/foremanto a version that resolves this vulnerability.Fixed in 0:3.3.0.18-1.el8 - Upgrade
Upgrade
redhat/python-pulp-containerto a version that resolves this vulnerability.Fixed in 0:2.10.10-1.el8 - Upgrade
Upgrade
redhat/python-pulpcoreto a version that resolves this vulnerability.Fixed in 0:3.18.11-1.el8 - Upgrade
Upgrade
redhat/python-pulp-rpmto a version that resolves this vulnerability.Fixed in 0:3.18.9-1.el8 - Upgrade
Upgrade
redhat/rubygem-katelloto a version that resolves this vulnerability.Fixed in 0:4.5.0.22-1.el8 - Upgrade
Upgrade
redhat/satelliteto a version that resolves this vulnerability.Fixed in 0:6.12.1-1.el8 - Upgrade
Upgrade
redhat/satellite-cloneto a version that resolves this vulnerability.Fixed in 0:3.2.0-2.el8 - 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
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
maven/com.fasterxml.jackson.core:jackson-databindto a version that resolves this vulnerability.Fixed in 2.13.4.2 - 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.17.1 - Upgrade
Upgrade
FasterXML jackson-databindto a version that resolves this vulnerability.Fixed in 2.13.4.2 - Upgrade
Upgrade
FasterXML jackson-databindto a version that resolves this vulnerability.Fixed in 2.14.0 - Configuration
Disable UNWRAP_SINGLE_VALUE_ARRAYS to prevent resource exhaustion in primitive value deserializers when deep wrapper array nesting occurs.
FasterXML jackson-databind UNWRAP_SINGLE_VALUE_ARRAYS feature = 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:1151
- RHSA-2023:0261
- 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 the severity of CVE-2022-42003?
CVE-2022-42003 has been assigned a medium severity rating due to its potential for resource exhaustion.
How do I fix CVE-2022-42003?
To fix CVE-2022-42003, update to the recommended patched versions of the affected packages.
Which versions are affected by CVE-2022-42003?
CVE-2022-42003 affects various versions of FasterXML jackson-databind and other dependent packages up until certain versions.
What causes CVE-2022-42003?
CVE-2022-42003 is caused by unchecked primitive value deserializers when the UNWRAP_SINGLE_VALUE_ARRAYS feature is enabled.
Is there a workaround for CVE-2022-42003?
Disabling the UNWRAP_SINGLE_VALUE_ARRAYS feature in your application can serve as a temporary workaround for CVE-2022-42003.