CVE-2019-16942 Polymorphic Typing in FasterXML jackson-databind
Attackers can execute arbitrary code via deserialization in jackson-databind when Default Typing is enabled and specific dependencies are present.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2019-16942?
CVE-2019-16942 is a critical unsafe deserialization vulnerability in Debian Debian Linux, published on 1 Oct 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
A Polymorphic Typing issue was discovered in FasterXML jackson-databind 2.0.0 through 2.9.10. When Default Typing is enabled (either globally or for a specific property) for an externally exposed JSON endpoint and the service has the commons-dbcp (1.4) jar in the classpath, and an attacker can find an RMI service endpoint to access, it is possible to make the service execute a malicious payload. This issue exists because of org.apache.commons.dbcp.datasources.SharedPoolDataSource and org.apache.commons.dbcp.datasources.PerUserPoolDataSource mishandling.
Weakness: CWE-502
Which versions are affected by CVE-2019-16942?
6 open source packages ship an affected version, including com.fasterxml.jackson.core:jackson-databind. It affects 28 products.
| Package | Affected | Fixed in |
|---|---|---|
com.fasterxml.jackson.core:jackson-databind Maven | From 2.0.0 | 2.6.7.3 |
com.fasterxml.jackson.core:jackson-databind Maven | From 2.0.0 | 2.6.7.3 |
com.fasterxml.jackson.core:jackson-databind Maven | From 2.7.0 | 2.8.11.5 |
com.fasterxml.jackson.core:jackson-databind Maven | From 2.7.0 | 2.8.11.5 |
com.fasterxml.jackson.core:jackson-databind Maven | From 2.9.0 | 2.9.10.1 |
com.fasterxml.jackson.core:jackson-databind Maven | From 2.9.0 | 2.9.10.1 |
Products include Debian Debian Linux, Fasterxml Jackson-Databind, Fedoraproject Fedora, Netapp Active Iq Unified Manager, Netapp Oncommand Api Services, Netapp Oncommand Workflow Automation and 22 more.
How do I fix CVE-2019-16942?
Upgrade com.fasterxml.jackson.core:jackson-databind to a fixed version for your release line: 2.6.7.3, 2.8.11.5 or 2.9.10.1.
Upgrade, and only deserialise data from trusted sources or with an allow-list of types. More about Unsafe deserialization.
Is CVE-2019-16942 being exploited?
There is no known exploitation of CVE-2019-16942 in the wild and no public exploit code.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as CLEANSTART-2026-BN96134, DEBIAN-CVE-2019-16942, GHSA-mx7p-6679-8g3q, ROOT-APP-MAVEN-CVE-2019-16942, UBUNTU-CVE-2019-16942.