CVE-2017-3200: Granite server core GraniteDS Insecure Deserialization Vulnerability

HIGH
Advisory Identifier: GHSA-vx9j-rvmj-jc32
CVSS 8.1
CWE-502
Published
Advisory Summary

CVE-2017-3200 is a HIGH (CVSS 8.1) graniteds insecure deserialization vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Granite server core libraries in the Maven ecosystem. The issue involves graniteds insecure deserialization. Remediation is available in the latest vendor maintenance releases.

CVE-2017-3200 at a Glance

CVE Identifier CVE-2017-3200
GHSA Identifier GHSA-vx9j-rvmj-jc32
Severity HIGH
CVSS v3.1 Base Score 8.1
CWE Classification CWE-502: Deserialization of Untrusted Data
Affected Product Granite server core
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 8.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/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 None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2017-3200

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

org.graniteds:granite-server-core fixed: Latest secure release
<dependency>
    <groupId>org.graniteds</groupId>
    <artifactId>granite-server-core</artifactId>
    <version>Latest secure release</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=org.graniteds

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=org.graniteds

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

Note: The mvn dependency:tree -Dincludes=org.graniteds 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 Granite server core, 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

The Java implementation of AMF3 deserializers used in GraniteDS, version 3.1.1.GA, may allow instantiation of arbitrary classes via their public parameter-less constructor and subsequently call arbitrary Java Beans setter methods. The ability to exploit this vulnerability depends on the availability of classes in the class path that make use of deserialization. A remote attacker with the ability to spoof or control information may be able to send serialized Java objects with pre-set properties that result in arbitrary code execution when deserialized.

CVE-2017-3200 Affected Granite server core Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
org.graniteds:granite-server-core
Maven
≤ 3.1.1.GA

References

Frequently Asked Questions

What is CVE-2017-3200?
CVE-2017-3200 is a security vulnerability in Granite server core involving GraniteDS Insecure Deserialization under CWE-502: Deserialization of Untrusted Data.
Which Granite server core versions are affected?
Affected versions include releases prior to current release patches across affected packages: org.graniteds:granite-server-core.
What version fixes CVE-2017-3200?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is granite-server-core affected?
Yes, org.graniteds:granite-server-core is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2017-3200?
CVE-2017-3200 has a CVSS v3.1 base score of 8.1 (HIGH) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2017-3200?
CVE-2017-3200 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-3200?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.graniteds'. 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-vx9j-rvmj-jc32",
  "modified" : "2023-10-10T14:31:11Z",
  "published" : "2022-05-13T01:28:41Z",
  "aliases" : [ "CVE-2017-3200" ],
  "summary" : "GraniteDS Insecure Deserialization",
  "details" : "The Java implementation of AMF3 deserializers used in GraniteDS, version 3.1.1.GA, may allow instantiation of arbitrary classes via their public parameter-less constructor and subsequently call arbitrary Java Beans setter methods. The ability to exploit this vulnerability depends on the availability of classes in the class path that make use of deserialization. A remote attacker with the ability to spoof or control information may be able to send serialized Java objects with pre-set properties that result in arbitrary code execution when deserialized.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.graniteds:granite-server-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "3.1.1.GA"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2017-3200"
  }, {
    "type" : "WEB",
    "url" : "https://codewhitesec.blogspot.com/2017/04/amf.html"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/graniteds/graniteds"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20210124021547/http://www.securityfocus.com/bid/97382"
  }, {
    "type" : "WEB",
    "url" : "https://www.kb.cert.org/vuls/id/307983"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityweek.com/flaws-java-amf-libraries-allow-remote-code-execution"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-502" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-07-25T23:01:36Z",
    "nvd_published_at" : "2018-06-11T17:29:00Z"
  }
}