CVE-2017-15095: Jackson databind Remote Code Execution Vulnerability

CRITICAL
Advisory Identifier: GHSA-h592-38cm-4ggp
CVSS 9.8
CWE-502 CWE-184
Published
Advisory Summary

CVE-2017-15095 is a CRITICAL (CVSS 9.8) remote code execution vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Jackson databind libraries in the Maven ecosystem. The issue involves jackson-databind vulnerable to deserialization flaw leading to unauthenticated remote code execution. Remediation is available by upgrading affected packages to version 2.8.11, 2.9.4, 2.6.7.3, 2.7.9.2.

CVE-2017-15095 at a Glance

CVE Identifier CVE-2017-15095
GHSA Identifier GHSA-h592-38cm-4ggp
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-502: Deserialization of Untrusted Data
Affected Product Jackson databind
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 9.8

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

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

How to Fix CVE-2017-15095

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.8.11
<dependency>
    <groupId>com.fasterxml.jackson.core</groupId>
    <artifactId>jackson-databind</artifactId>
    <version>2.8.11</version>
</dependency>
com.fasterxml.jackson.core:jackson-databind fixed: 2.9.4
<dependency>
    <groupId>com.fasterxml.jackson.core</groupId>
    <artifactId>jackson-databind</artifactId>
    <version>2.9.4</version>
</dependency>
com.fasterxml.jackson.core:jackson-databind fixed: 2.6.7.3
<dependency>
    <groupId>com.fasterxml.jackson.core</groupId>
    <artifactId>jackson-databind</artifactId>
    <version>2.6.7.3</version>
</dependency>
com.fasterxml.jackson.core:jackson-databind fixed: 2.7.9.2
<dependency>
    <groupId>com.fasterxml.jackson.core</groupId>
    <artifactId>jackson-databind</artifactId>
    <version>2.7.9.2</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-2017-15095, 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.8.11), 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

jackson-databind in versions prior to 2.8.11 and 2.9.4 contain a deserialization flaw which allows an unauthenticated user to perform code execution by sending maliciously crafted input to the readValue method of the ObjectMapper. This issue extends the previous flaw CVE-2017-7525, blacklisting additonal vulnerable classes.

CVE-2017-15095 Affected Jackson databind Versions

4 component(s)
Fixed Versions:
2.8.112.9.42.6.7.32.7.9.2
Product / Package Ecosystem Affected Versions Fixed Version
com.fasterxml.jackson.core:jackson-databind
Maven
≥ 2.8.0
< 2.8.11
2.8.11
com.fasterxml.jackson.core:jackson-databind
Maven
≥ 2.9.0
< 2.9.4
2.9.4
com.fasterxml.jackson.core:jackson-databind
Maven
≥ 2.0.0
< 2.6.7.3
2.6.7.3
com.fasterxml.jackson.core:jackson-databind
Maven
≥ 2.7.0
< 2.7.9.2
2.7.9.2

References

NVD — CVE-2017-15095 NVD
https://nvd.nist.gov/vuln/detail/CVE-2017-15095
Jackson databind Source Repository REPOSITORY
https://github.com/FasterXML/jackson-databind/issues/1680
Jackson databind Source Repository REPOSITORY
https://github.com/FasterXML/jackson-databind/issues/1737
Security Fix Commit FIX COMMIT
https://github.com/FasterXML/jackson-databind/commit/a054585e2175ad0882f07bcafedecfac86230f1b
Security Fix Commit FIX COMMIT
https://github.com/FasterXML/jackson-databind/commit/a3939d36edcc755c8af55bdc1969e0fa8438f9db
Security Fix Commit FIX COMMIT
https://github.com/FasterXML/jackson-databind/commit/ddfddfba6414adbecaff99684ef66eebd3a92e92
Security Fix Commit FIX COMMIT
https://github.com/FasterXML/jackson-databind/commit/e865a7a4464da63ded9f4b1a2328ad85c9ded78b
Security Fix Commit FIX COMMIT
https://github.com/FasterXML/jackson-databind/commit/e8f043d1aac9b82eee907e0f0c3abbdea723a935
Security Fix Commit FIX COMMIT
https://github.com/tolbertam/jackson-databind/commit/80566a0f96b2003863f9d8f9ccc3b562001e147b
access.redhat.com/errata/rhsa-2017:31... WEB
https://access.redhat.com/errata/RHSA-2017:3189
lists.apache.org/thread.html/f095a79... WEB
https://lists.apache.org/thread.html/f095a791bda6c0595f691eddd0febb2d396987eec5cbd29120d8c629@%3Csolr-user.lucene.apache.org%3E
lists.debian.org/debian-lts-announce... WEB
https://lists.debian.org/debian-lts-announce/2020/01/msg00037.html
Jackson databind Security Information SECURITY
https://security.netapp.com/advisory/ntap-20171214-0003
Jackson databind Security Information SECURITY
https://web.archive.org/web/20200401000000*/http://www.securityfocus.com/bid/103880
Jackson databind Security Information SECURITY
https://web.archive.org/web/20201221192044/http://www.securitytracker.com/id/1039769
Jackson databind Security Information SECURITY
https://www.debian.org/security/2017/dsa-4037
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/cpujan2019-5072801.html
Jackson databind Security Information SECURITY
https://www.oracle.com/technetwork/security-advisory/cpujul2019-5072835.html
access.redhat.com/errata/rhsa-2017:31... WEB
https://access.redhat.com/errata/RHSA-2017:3190
access.redhat.com/errata/rhsa-2018:03... WEB
https://access.redhat.com/errata/RHSA-2018:0342
access.redhat.com/errata/rhsa-2018:04... WEB
https://access.redhat.com/errata/RHSA-2018:0478
access.redhat.com/errata/rhsa-2018:04... WEB
https://access.redhat.com/errata/RHSA-2018:0479
access.redhat.com/errata/rhsa-2018:04... WEB
https://access.redhat.com/errata/RHSA-2018:0480
access.redhat.com/errata/rhsa-2018:04... WEB
https://access.redhat.com/errata/RHSA-2018:0481
access.redhat.com/errata/rhsa-2018:05... WEB
https://access.redhat.com/errata/RHSA-2018:0576
access.redhat.com/errata/rhsa-2018:05... WEB
https://access.redhat.com/errata/RHSA-2018:0577
access.redhat.com/errata/rhsa-2018:14... WEB
https://access.redhat.com/errata/RHSA-2018:1447
access.redhat.com/errata/rhsa-2018:14... WEB
https://access.redhat.com/errata/RHSA-2018:1448
access.redhat.com/errata/rhsa-2018:14... WEB
https://access.redhat.com/errata/RHSA-2018:1449
access.redhat.com/errata/rhsa-2018:14... WEB
https://access.redhat.com/errata/RHSA-2018:1450
access.redhat.com/errata/rhsa-2018:14... WEB
https://access.redhat.com/errata/RHSA-2018:1451
access.redhat.com/errata/rhsa-2018:29... WEB
https://access.redhat.com/errata/RHSA-2018:2927
access.redhat.com/errata/rhsa-2019:28... WEB
https://access.redhat.com/errata/RHSA-2019:2858
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
Jackson databind Source Repository REPOSITORY
https://github.com/FasterXML/jackson-databind
Jackson databind Security Information SECURITY
http://www.oracle.com/technetwork/security-advisory/cpuapr2018-3678067.html
Jackson databind Security Information SECURITY
http://www.oracle.com/technetwork/security-advisory/cpujul2018-4258247.html
Jackson databind Security Information SECURITY
http://www.oracle.com/technetwork/security-advisory/cpuoct2018-4428296.html

Frequently Asked Questions

What is CVE-2017-15095?
CVE-2017-15095 is a security vulnerability in Jackson databind involving jackson-databind vulnerable to deserialization flaw leading to unauthenticated remote code execution under CWE-502: Deserialization of Untrusted Data.
Which Jackson databind versions are affected?
Affected versions include releases prior to 2.8.11, 2.9.4, 2.6.7.3, 2.7.9.2 across affected packages: com.fasterxml.jackson.core:jackson-databind.
What version fixes CVE-2017-15095?
Upgrading to 2.8.11, 2.9.4, 2.6.7.3, 2.7.9.2 (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.8.11, 2.9.4, 2.6.7.3, 2.7.9.2. Upgrade your dependency to 2.8.11, 2.9.4, 2.6.7.3, 2.7.9.2 or later.
What is the CVSS score of CVE-2017-15095?
CVE-2017-15095 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2017-15095?
CVE-2017-15095 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-2017-15095?
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-h592-38cm-4ggp",
  "modified" : "2024-03-15T01:13:58Z",
  "published" : "2018-10-18T17:42:34Z",
  "aliases" : [ "CVE-2017-15095" ],
  "summary" : "jackson-databind vulnerable to deserialization flaw leading to unauthenticated remote code execution",
  "details" : "jackson-databind in versions prior to 2.8.11 and 2.9.4 contain a deserialization flaw which allows an unauthenticated user to perform code execution by sending maliciously crafted input to the readValue method of the ObjectMapper. This issue extends the previous flaw CVE-2017-7525, blacklisting additonal vulnerable classes.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "com.fasterxml.jackson.core:jackson-databind"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.8.0"
      }, {
        "fixed" : "2.8.11"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "com.fasterxml.jackson.core:jackson-databind"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.9.0"
      }, {
        "fixed" : "2.9.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "com.fasterxml.jackson.core:jackson-databind"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.0"
      }, {
        "fixed" : "2.6.7.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "com.fasterxml.jackson.core:jackson-databind"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.7.0"
      }, {
        "fixed" : "2.7.9.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2017-15095"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FasterXML/jackson-databind/issues/1680"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FasterXML/jackson-databind/issues/1737"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FasterXML/jackson-databind/commit/a054585e2175ad0882f07bcafedecfac86230f1b"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FasterXML/jackson-databind/commit/a3939d36edcc755c8af55bdc1969e0fa8438f9db"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FasterXML/jackson-databind/commit/ddfddfba6414adbecaff99684ef66eebd3a92e92"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FasterXML/jackson-databind/commit/e865a7a4464da63ded9f4b1a2328ad85c9ded78b"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FasterXML/jackson-databind/commit/e8f043d1aac9b82eee907e0f0c3abbdea723a935"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/tolbertam/jackson-databind/commit/80566a0f96b2003863f9d8f9ccc3b562001e147b"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2017:3189"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/f095a791bda6c0595f691eddd0febb2d396987eec5cbd29120d8c629@%3Csolr-user.lucene.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.debian.org/debian-lts-announce/2020/01/msg00037.html"
  }, {
    "type" : "WEB",
    "url" : "https://security.netapp.com/advisory/ntap-20171214-0003"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20200401000000*/http://www.securityfocus.com/bid/103880"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20201221192044/http://www.securitytracker.com/id/1039769"
  }, {
    "type" : "WEB",
    "url" : "https://www.debian.org/security/2017/dsa-4037"
  }, {
    "type" : "WEB",
    "url" : "https://www.oracle.com/security-alerts/cpuoct2020.html"
  }, {
    "type" : "WEB",
    "url" : "https://www.oracle.com/technetwork/security-advisory/cpujan2019-5072801.html"
  }, {
    "type" : "WEB",
    "url" : "https://www.oracle.com/technetwork/security-advisory/cpujul2019-5072835.html"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2017:3190"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2018:0342"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2018:0478"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2018:0479"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2018:0480"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2018:0481"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2018:0576"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2018:0577"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2018:1447"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2018:1448"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2018:1449"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2018:1450"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2018:1451"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2018:2927"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2019:2858"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2019:3149"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2019:3892"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/FasterXML/jackson-databind"
  }, {
    "type" : "WEB",
    "url" : "http://www.oracle.com/technetwork/security-advisory/cpuapr2018-3678067.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.oracle.com/technetwork/security-advisory/cpujul2018-4258247.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.oracle.com/technetwork/security-advisory/cpuoct2018-4428296.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-184", "CWE-502" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T21:38:56Z",
    "nvd_published_at" : "2018-02-06T15:29:00Z"
  }
}