CVE-2019-16942 Polymorphic Typing in FasterXML jackson-databind

Critical 9.8 Published Updated

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.

PackageAffectedFixed in
com.fasterxml.jackson.core:jackson-databind MavenFrom 2.0.02.6.7.3
com.fasterxml.jackson.core:jackson-databind MavenFrom 2.0.02.6.7.3
com.fasterxml.jackson.core:jackson-databind MavenFrom 2.7.02.8.11.5
com.fasterxml.jackson.core:jackson-databind MavenFrom 2.7.02.8.11.5
com.fasterxml.jackson.core:jackson-databind MavenFrom 2.9.02.9.10.1
com.fasterxml.jackson.core:jackson-databind MavenFrom 2.9.02.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.

All Debian Debian Linux vulnerabilities

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.

Is CVE-2019-16942 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free