CVE-2018-12022: Jackson databind Jackson-databind Deserialization Of Untrusted Data Vulnerability

HIGH
Advisory Identifier: GHSA-cjjf-94ff-43w7
CVSS 7.5
CWE-502
Published
Advisory Summary

CVE-2018-12022 is a HIGH (CVSS 7.5) jackson-databind deserialization of untrusted data vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Jackson databind libraries in the Maven ecosystem. The issue involves jackson-databind deserialization of untrusted data vulnerability. Remediation is available by upgrading affected packages to version 2.7.9.4, 2.8.11.2, 2.9.6.

CVE-2018-12022 at a Glance

CVE Identifier CVE-2018-12022
GHSA Identifier GHSA-cjjf-94ff-43w7
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-502: Deserialization of Untrusted Data
Affected Product Jackson databind
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2018-12022

To remediate this vulnerability, upgrade all affected Jackson databind dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

com.fasterxml.jackson.core:jackson-databind fixed: 2.7.9.4
<dependency>
    <groupId>com.fasterxml.jackson.core</groupId>
    <artifactId>jackson-databind</artifactId>
    <version>2.7.9.4</version>
</dependency>
com.fasterxml.jackson.core:jackson-databind fixed: 2.8.11.2
<dependency>
    <groupId>com.fasterxml.jackson.core</groupId>
    <artifactId>jackson-databind</artifactId>
    <version>2.8.11.2</version>
</dependency>
com.fasterxml.jackson.core:jackson-databind fixed: 2.9.6
<dependency>
    <groupId>com.fasterxml.jackson.core</groupId>
    <artifactId>jackson-databind</artifactId>
    <version>2.9.6</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=com.fasterxml.jackson.core

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2018-12022, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=com.fasterxml.jackson.core

Analyze the terminal output to locate any version of Jackson databind in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.7.9.4), your application is affected.

Note: The mvn dependency:tree -Dincludes=com.fasterxml.jackson.core command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-502: Deserialization of Untrusted Data, where the product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid. In Jackson databind, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

An issue was discovered in FasterXML jackson-databind prior to 2.7.9.4, 2.8.11.2, and 2.9.6. When Default Typing is enabled (either globally or for a specific property), the service has the Jodd-db jar (for database access for the Jodd framework) in the classpath, and an attacker can provide an LDAP service to access, it is possible to make the service execute a malicious payload.

CVE-2018-12022 Affected Jackson databind Versions

3 component(s)
Fixed Versions:
2.7.9.42.8.11.22.9.6
Product / Package Ecosystem Affected Versions Fixed Version
com.fasterxml.jackson.core:jackson-databind
Maven
< 2.7.9.4
2.7.9.4
com.fasterxml.jackson.core:jackson-databind
Maven
≥ 2.8.0
< 2.8.11.2
2.8.11.2
com.fasterxml.jackson.core:jackson-databind
Maven
≥ 2.9.0
< 2.9.6
2.9.6

References

NVD — CVE-2018-12022 NVD
https://nvd.nist.gov/vuln/detail/CVE-2018-12022
Jackson databind Source Repository REPOSITORY
https://github.com/FasterXML/jackson-databind/issues/2052
Security Fix Commit FIX COMMIT
https://github.com/FasterXML/jackson-databind/commit/28badf7ef60ac3e7ef151cd8e8ec010b8479226a
Security Fix Commit FIX COMMIT
https://github.com/FasterXML/jackson-databind/commit/7487cf7eb14be2f65a1eb108e8629c07ef45e0a
GitHub Advisory / Wiki ADVISORY
https://github.com/advisories/GHSA-cjjf-94ff-43w7
Security Fix Commit FIX COMMIT
https://github.com/FasterXML/jackson-databind/commit/bf261d404c2f79fd3406237710d40ebb03c99d84
lists.apache.org/thread.html/519eb0f... WEB
https://lists.apache.org/thread.html/519eb0fd45642dcecd9ff74cb3e71c20a4753f7d82e2f07864b5108f@%3Cdev.drill.apache.org%3E
lists.apache.org/thread.html/7fcf88a... WEB
https://lists.apache.org/thread.html/7fcf88aff0d1deaa5c3c7be8d58c05ad7ad5da94b59065d8e7c50c5d@%3Cissues.lucene.apache.org%3E
lists.apache.org/thread.html/b0656d3... WEB
https://lists.apache.org/thread.html/b0656d359c7d40ec9f39c8cc61bca66802ef9a2a12ee199f5b0c1442@%3Cdev.drill.apache.org%3E
lists.apache.org/thread.html/f9bc3e5... WEB
https://lists.apache.org/thread.html/f9bc3e55f4e28d1dcd1a69aae6d53e609a758e34d2869b4d798e13cc@%3Cissues.drill.apache.org%3E
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZEDLDUYBSTDY4GWDBUXGJNS2RFYTFVRC
medium.com/@cowtowncoder/on-ja... WEB
https://medium.com/@cowtowncoder/on-jackson-cves-dont-panic-here-is-what-you-need-to-know-54cd0d6e8062
seclists.org/bugtraq/2019/may/68 WEB
https://seclists.org/bugtraq/2019/May/68
Jackson databind Security Information SECURITY
https://security.netapp.com/advisory/ntap-20190530-0003
www.blackhat.com/docs/us-16/material... WEB
https://www.blackhat.com/docs/us-16/materials/us-16-Munoz-A-Journey-From-JNDI-LDAP-Manipulation-To-RCE.pdf
Jackson databind Security Information SECURITY
https://www.debian.org/security/2019/dsa-4452
Jackson databind Security Information SECURITY
https://www.oracle.com/security-alerts/cpuapr2020.html
Jackson databind Security Information SECURITY
https://www.oracle.com/security-alerts/cpuoct2020.html
Jackson databind Security Information SECURITY
https://www.oracle.com/technetwork/security-advisory/cpuapr2019-5072813.html
Jackson databind Security Information SECURITY
https://www.oracle.com/technetwork/security-advisory/cpujul2019-5072835.html
access.redhat.com/errata/rhba-2019:09... WEB
https://access.redhat.com/errata/RHBA-2019:0959
access.redhat.com/errata/rhsa-2019:07... WEB
https://access.redhat.com/errata/RHSA-2019:0782
access.redhat.com/errata/rhsa-2019:08... WEB
https://access.redhat.com/errata/RHSA-2019:0877
access.redhat.com/errata/rhsa-2019:11... WEB
https://access.redhat.com/errata/RHSA-2019:1106
access.redhat.com/errata/rhsa-2019:11... WEB
https://access.redhat.com/errata/RHSA-2019:1107
access.redhat.com/errata/rhsa-2019:11... WEB
https://access.redhat.com/errata/RHSA-2019:1108
access.redhat.com/errata/rhsa-2019:11... WEB
https://access.redhat.com/errata/RHSA-2019:1140
access.redhat.com/errata/rhsa-2019:17... WEB
https://access.redhat.com/errata/RHSA-2019:1782
access.redhat.com/errata/rhsa-2019:17... WEB
https://access.redhat.com/errata/RHSA-2019:1797
access.redhat.com/errata/rhsa-2019:18... WEB
https://access.redhat.com/errata/RHSA-2019:1822
access.redhat.com/errata/rhsa-2019:18... WEB
https://access.redhat.com/errata/RHSA-2019:1823
access.redhat.com/errata/rhsa-2019:28... WEB
https://access.redhat.com/errata/RHSA-2019:2804
access.redhat.com/errata/rhsa-2019:28... WEB
https://access.redhat.com/errata/RHSA-2019:2858
access.redhat.com/errata/rhsa-2019:30... WEB
https://access.redhat.com/errata/RHSA-2019:3002
access.redhat.com/errata/rhsa-2019:31... WEB
https://access.redhat.com/errata/RHSA-2019:3140
access.redhat.com/errata/rhsa-2019:31... WEB
https://access.redhat.com/errata/RHSA-2019:3149
access.redhat.com/errata/rhsa-2019:38... WEB
https://access.redhat.com/errata/RHSA-2019:3892
access.redhat.com/errata/rhsa-2019:40... WEB
https://access.redhat.com/errata/RHSA-2019:4037
bugzilla.redhat.com/show_bug.cgi WEB
https://bugzilla.redhat.com/show_bug.cgi?id=1671098
Jackson databind Source Repository REPOSITORY
https://github.com/FasterXML/jackson-databind
Jackson databind Security Information SECURITY
http://www.securityfocus.com/bid/107585

Frequently Asked Questions

What is CVE-2018-12022?
CVE-2018-12022 is a security vulnerability in Jackson databind involving jackson-databind Deserialization of Untrusted Data vulnerability under CWE-502: Deserialization of Untrusted Data.
Which Jackson databind versions are affected?
Affected versions include releases prior to 2.7.9.4, 2.8.11.2, 2.9.6 across affected packages: com.fasterxml.jackson.core:jackson-databind.
What version fixes CVE-2018-12022?
Upgrading to 2.7.9.4, 2.8.11.2, 2.9.6 (or the latest patched release for your respective branch) resolves the vulnerability.
Is jackson-databind affected?
Yes, com.fasterxml.jackson.core:jackson-databind is affected in releases prior to 2.7.9.4, 2.8.11.2, 2.9.6. Upgrade your dependency to 2.7.9.4, 2.8.11.2, 2.9.6 or later.
What is the CVSS score of CVE-2018-12022?
CVE-2018-12022 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2018-12022?
CVE-2018-12022 is classified under CWE-502: Deserialization of Untrusted Data (The product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid.).
How can I check Maven dependencies for CVE-2018-12022?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=com.fasterxml.jackson.core'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-cjjf-94ff-43w7",
  "modified" : "2024-03-01T21:49:04Z",
  "published" : "2019-03-25T18:03:09Z",
  "aliases" : [ "CVE-2018-12022" ],
  "summary" : "jackson-databind Deserialization of Untrusted Data vulnerability",
  "details" : "An issue was discovered in FasterXML jackson-databind prior to 2.7.9.4, 2.8.11.2, and 2.9.6. When Default Typing is enabled (either globally or for a specific property), the service has the Jodd-db jar (for database access for the Jodd framework) in the classpath, and an attacker can provide an LDAP service to access, it is possible to make the service execute a malicious payload.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "com.fasterxml.jackson.core:jackson-databind"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.7.9.4"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 2.7.9.3"
    }
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "com.fasterxml.jackson.core:jackson-databind"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.8.0"
      }, {
        "fixed" : "2.8.11.2"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 2.8.11.1"
    }
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "com.fasterxml.jackson.core:jackson-databind"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.9.0"
      }, {
        "fixed" : "2.9.6"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-12022"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FasterXML/jackson-databind/issues/2052"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FasterXML/jackson-databind/commit/28badf7ef60ac3e7ef151cd8e8ec010b8479226a"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FasterXML/jackson-databind/commit/7487cf7eb14be2f65a1eb108e8629c07ef45e0a"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FasterXML/jackson-databind/commit/bf261d404c2f79fd3406237710d40ebb03c99d84"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-cjjf-94ff-43w7"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/519eb0fd45642dcecd9ff74cb3e71c20a4753f7d82e2f07864b5108f@%3Cdev.drill.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/7fcf88aff0d1deaa5c3c7be8d58c05ad7ad5da94b59065d8e7c50c5d@%3Cissues.lucene.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/b0656d359c7d40ec9f39c8cc61bca66802ef9a2a12ee199f5b0c1442@%3Cdev.drill.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/f9bc3e55f4e28d1dcd1a69aae6d53e609a758e34d2869b4d798e13cc@%3Cissues.drill.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZEDLDUYBSTDY4GWDBUXGJNS2RFYTFVRC"
  }, {
    "type" : "WEB",
    "url" : "https://medium.com/@cowtowncoder/on-jackson-cves-dont-panic-here-is-what-you-need-to-know-54cd0d6e8062"
  }, {
    "type" : "WEB",
    "url" : "https://seclists.org/bugtraq/2019/May/68"
  }, {
    "type" : "WEB",
    "url" : "https://security.netapp.com/advisory/ntap-20190530-0003"
  }, {
    "type" : "WEB",
    "url" : "https://www.blackhat.com/docs/us-16/materials/us-16-Munoz-A-Journey-From-JNDI-LDAP-Manipulation-To-RCE.pdf"
  }, {
    "type" : "WEB",
    "url" : "https://www.debian.org/security/2019/dsa-4452"
  }, {
    "type" : "WEB",
    "url" : "https://www.oracle.com/security-alerts/cpuapr2020.html"
  }, {
    "type" : "WEB",
    "url" : "https://www.oracle.com/security-alerts/cpuoct2020.html"
  }, {
    "type" : "WEB",
    "url" : "https://www.oracle.com/technetwork/security-advisory/cpuapr2019-5072813.html"
  }, {
    "type" : "WEB",
    "url" : "https://www.oracle.com/technetwork/security-advisory/cpujul2019-5072835.html"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHBA-2019:0959"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2019:0782"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2019:0877"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2019:1106"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2019:1107"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2019:1108"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2019:1140"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2019:1782"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2019:1797"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2019:1822"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2019:1823"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2019:2804"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2019:2858"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2019:3002"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2019:3140"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2019:3149"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2019:3892"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2019:4037"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1671098"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/FasterXML/jackson-databind"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/bid/107585"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-502" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T20:42:00Z",
    "nvd_published_at" : "2019-03-21T16:00:12Z"
  }
}