CVE-2019-16942 — Polymorphic Typing in jackson-databind — CVE Details
Polymorphic Typing in FasterXML jackson-databind
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (5.73%). Schedule for your next planned update.
Does your project use an affected com.fasterxml.jackson.core:jackson-databind version?
Paste your pom.xml to check it for CVE-2019-16942 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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.
Advisory Timeline
- First published October 28, 2019 (2586 days ago).
- Last revised March 15, 2024 — 1599 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
<!-- Update pom.xml dependency version to 2.6.7.3 for com.fasterxml.jackson.core:jackson-databind -->
<!-- Update pom.xml dependency version to 2.8.11.5 for com.fasterxml.jackson.core:jackson-databind -->
<!-- Update pom.xml dependency version to 2.9.10.1 for com.fasterxml.jackson.core:jackson-databind -->
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (3)
Affects 1 ecosystem: Maven (1).
| Package | Fixed In |
|---|---|
| com.fasterxml.jackson.core:jackson-databind Maven · Affected: 2.0.0, 2.0.1, 2.0.2, 2.0.4 (+57 more) | 2.6.7.3 |
| com.fasterxml.jackson.core:jackson-databind Maven · Affected: 2.7.0, 2.7.1, 2.7.1-1, 2.7.2 (+33 more) | 2.8.11.5 |
| com.fasterxml.jackson.core:jackson-databind Maven · Affected: 2.9.0, 2.9.0.pr1, 2.9.0.pr2, 2.9.0.pr3 (+14 more) | 2.9.10.1 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-502Deserialization of Untrusted DataMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://nvd.nist.gov/vuln/detail/CVE-2019-16942ADVISORY
- https://github.com/FasterXML/jackson-databind/issues/2478WEB
- https://github.com/FasterXML/jackson-databind/commit/328a0f833daf6baa443ac3b37c818a0204714b0bWEB
- https://github.com/FasterXML/jackson-databind/commit/54aa38d87dcffa5ccc23e64922e9536c82c1b9c8WEB
- https://github.com/FasterXML/jackson-databind/commit/9593e16cf5a3d289a9c584f7123639655de9ddacWEB
- https://github.com/FasterXML/jackson-databind/commit/bc67eb11a7cf57561f861ff16f879f1fceb5779fWEB
- https://lists.apache.org/thread.html/rf1bbc0ea4a9f014cf94df9a12a6477d24a27f52741dbc87f2fd52ff2@%3Cissues.geode.apache.org%3EWEB
- https://lists.debian.org/debian-lts-announce/2019/10/msg00001.htmlWEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/Q7CANA7KV53JROZDX5Z5P26UG5VN2K43WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TH5VFUN4P7CCIP7KSEXYA5MUTFCUDUJTWEB
- https://medium.com/@cowtowncoder/on-jackson-cves-dont-panic-here-is-what-you-need-to-know-54cd0d6e8062WEB
- https://seclists.org/bugtraq/2019/Oct/6WEB
- https://security.netapp.com/advisory/ntap-20191017-0006WEB
- https://www.debian.org/security/2019/dsa-4542WEB
- https://www.oracle.com//security-alerts/cpujul2021.htmlWEB
- https://www.oracle.com/security-alerts/cpuApr2021.htmlWEB
- https://www.oracle.com/security-alerts/cpuapr2020.htmlWEB
- https://www.oracle.com/security-alerts/cpujan2020.htmlWEB
- https://www.oracle.com/security-alerts/cpujul2020.htmlWEB
- https://www.oracle.com/security-alerts/cpuoct2020.htmlWEB
- https://lists.apache.org/thread.html/r1b103833cb5bc8466e24ff0ecc5e75b45a705334ab6a444e64e840a0@%3Cissues.bookkeeper.apache.org%3EWEB
- https://lists.apache.org/thread.html/f9bc3e55f4e28d1dcd1a69aae6d53e609a758e34d2869b4d798e13cc@%3Cissues.drill.apache.org%3EWEB
- https://lists.apache.org/thread.html/b2e23c94f9dfef53e04c492e5d02e5c75201734be7adc73a49ef2370@%3Cissues.geode.apache.org%3EWEB
- https://lists.apache.org/thread.html/b0656d359c7d40ec9f39c8cc61bca66802ef9a2a12ee199f5b0c1442@%3Cdev.drill.apache.org%3EWEB
- https://lists.apache.org/thread.html/a430dbc9be874c41314cc69e697384567a9a24025e819d9485547954@%3Cissues.geode.apache.org%3EWEB
- https://lists.apache.org/thread.html/7782a937c9259a58337ee36b2961f00e2d744feafc13084e176d0df5@%3Cissues.geode.apache.org%3EWEB
- https://lists.apache.org/thread.html/519eb0fd45642dcecd9ff74cb3e71c20a4753f7d82e2f07864b5108f@%3Cdev.drill.apache.org%3EWEB
- https://issues.apache.org/jira/browse/GEODE-7255WEB
- https://github.com/FasterXML/jackson-databindPACKAGE
- https://access.redhat.com/errata/RHSA-2020:0445WEB
- https://access.redhat.com/errata/RHSA-2020:0164WEB
- https://access.redhat.com/errata/RHSA-2020:0161WEB
- https://access.redhat.com/errata/RHSA-2020:0160WEB
- https://access.redhat.com/errata/RHSA-2020:0159WEB
- https://access.redhat.com/errata/RHSA-2019:3901WEB
Frequently Asked Questions
- What is CVE-2019-16942?
- Polymorphic Typing in FasterXML jackson-databind. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
- How do I check if my project is affected by CVE-2019-16942?
- CVE-2019-16942 affects com.fasterxml.jackson.core:jackson-databind. It has a 5.7% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2019-16942 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This places it in the top 10% of EPSS-scored vulnerabilities — 93.8% of tracked vulnerabilities score at or below it, so it is substantially more likely to be exploited than most tracked vulnerabilities.
Also Known As
Related CVEs
- CVE-2019-16335CRITICAL
Polymorphic Typing issue in FasterXML jackson-databind
- CVE-2020-10969HIGH
jackson-databind mishandles the interaction between serialization gadgets and typing
- CVE-2020-36182HIGH
Unsafe Deserialization in jackson-databind
- CVE-2020-36180HIGH
Unsafe Deserialization in jackson-databind
- CVE-2022-42003HIGH
Uncontrolled Resource Consumption in Jackson-databind
- CVE-2020-36184HIGH
Unsafe Deserialization in jackson-databind
- CVE-2020-14195HIGH
Deserialization of untrusted data in Jackson Databind
- CVE-2019-12384MEDIUM
Deserialization of Untrusted Data in FasterXML jackson-databind