CVE-2020-35491: High severity fasterxml jackson-databind vulnerability
A flaw was found in jackson-databind. FasterXML mishandles the interaction between serialization gadgets and typing. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability.
Other sources
FasterXML jackson-databind 2.x before 2.9.10.8 mishandles the interaction between serialization gadgets and typing, related to org.apache.commons.dbcp2.datasources.SharedPoolDataSource.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
maven/com.fasterxml.jackson.core:jackson-databindto a version that resolves this vulnerability.Fixed in 2.9.10.8 - Upgrade
Upgrade
redhat/jackson-databindto a version that resolves this vulnerability.Fixed in 2.9.10.8 - Upgrade
Upgrade
com.fasterxml.jackson.core:jackson-databindto a version that resolves this vulnerability.Fixed in 2.9.10.8 - Configuration
Avoid configurations that use @JsonTypeInfo with id.CLASS or id.MINIMAL_CLASS.
Jackson Databind @JsonTypeInfo use of type id.CLASS or id.MINIMAL_CLASS = Do not use id.CLASS or id.MINIMAL_CLASS - Configuration
Do not enableDefaultTyping(); avoid this setting to reduce the risk described.
Jackson Databind enableDefaultTyping() = Disabled - Compensating control
Avoid using org.apache.commons.dbcp2.datasources.PerUserPoolDataSource and org.apache.commons.dbcp2.datasources.SharedPoolDataSource in the classpath.
Event History
Parent advisories
This vulnerability appears in the following advisories.
Frequently Asked Questions
What is CVE-2020-35491?
CVE-2020-35491 is a vulnerability in FasterXML jackson-databind that allows a remote attacker to execute arbitrary code on the system.
How does CVE-2020-35491 work?
CVE-2020-35491 is caused by an unsafe deserialization between gadgets and typing, specifically related to org.apache.commons.dbcp2.datasources.SharedPoolDataSource.
What is the severity of CVE-2020-35491?
The severity of CVE-2020-35491 is high, with a severity value of 8.1.
How can CVE-2020-35491 be exploited?
CVE-2020-35491 can be exploited by sending specially-crafted input to the vulnerable system.
How can I fix CVE-2020-35491?
To fix CVE-2020-35491, you should update FasterXML jackson-databind to version 2.9.10.8 or later.