CVE-2017-3199: Granite core GraniteDS Insecure Deserialization Vulnerability
HIGHCVE-2017-3199 is a HIGH (CVSS 8.1) graniteds insecure deserialization vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Granite core libraries in the Maven ecosystem. The issue involves graniteds insecure deserialization. Remediation is available in the latest vendor maintenance releases.
CVE-2017-3199 at a Glance
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).
How to Fix CVE-2017-3199
To remediate this vulnerability, upgrade all affected Granite 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.
<dependency>
<groupId>org.graniteds</groupId>
<artifactId>granite-core</artifactId>
<version>Latest secure release</version>
</dependency>
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-3199, 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 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 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
CVE-2017-3199 Affected Granite core Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.graniteds:granite-core
|
Maven |
≤ 3.1.1.GA
|
|
References
Frequently Asked Questions
What is CVE-2017-3199?
Which Granite core versions are affected?
What version fixes CVE-2017-3199?
Is granite-core affected?
What is the CVSS score of CVE-2017-3199?
What CWE is associated with CVE-2017-3199?
How can I check Maven dependencies for CVE-2017-3199?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-8m35-r25c-qr56",
"modified" : "2023-10-06T21:21:34Z",
"published" : "2022-05-13T01:28:41Z",
"aliases" : [ "CVE-2017-3199" ],
"summary" : "GraniteDS Insecure Deserialization",
"details" : "The Java implementation of GraniteDS, version 3.1.1.GA, AMF3 deserializers derives class instances from java.io.Externalizable rather than the AMF3 specification's recommendation of flash.utils.IExternalizable. A remote attacker with the ability to spoof or control an RMI server connection may be able to send serialized Java objects that execute arbitrary code 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-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-3199"
}, {
"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:03:24Z",
"nvd_published_at" : "2018-06-11T17:29:00Z"
}
}