Vulnerabilities in pkg:maven/io.spray/spray-json_2.12.0-M3
PACKAGECVE-2018-18855 is a MODERATE remote code execution vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Spray json 2.10 libraries in the Maven ecosystem. The issue involves uncontrolled resource consumption in spray json. Remediation is available by upgrading affected packages to version 1.3.5.
pkg:maven/io.spray/spray-json_2.12.0-M3
Vulnerability advisories affecting package pkg:maven/io.spray/spray-json_2.12.0-M3. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-ww3v-6xjf-jv28 | CVE-2018-18855 | MODERATE | Uncontrolled Resource Consumption in Spray JSON |
CVE-2018-18855 at a Glance
How to Fix CVE-2018-18855
To remediate this vulnerability, upgrade all affected Spray json 2.10 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>io.spray</groupId>
<artifactId>spray-json_2.10</artifactId>
<version>1.3.5</version>
</dependency>
<dependency>
<groupId>io.spray</groupId>
<artifactId>spray-json_2.11</artifactId>
<version>1.3.5</version>
</dependency>
<dependency>
<groupId>io.spray</groupId>
<artifactId>spray-json_2.11.0-RC4</artifactId>
<version>Latest secure release</version>
</dependency>
<dependency>
<groupId>io.spray</groupId>
<artifactId>spray-json_2.12</artifactId>
<version>1.3.5</version>
</dependency>
<dependency>
<groupId>io.spray</groupId>
<artifactId>spray-json_2.12.0-M3</artifactId>
<version>Latest secure release</version>
</dependency>
<dependency>
<groupId>io.spray</groupId>
<artifactId>spray-json_2.12.0-M5</artifactId>
<version>Latest secure release</version>
</dependency>
<dependency>
<groupId>io.spray</groupId>
<artifactId>spray-json_2.12.0-RC1</artifactId>
<version>Latest secure release</version>
</dependency>
<dependency>
<groupId>io.spray</groupId>
<artifactId>spray-json_2.12.0-RC2</artifactId>
<version>Latest secure release</version>
</dependency>
<dependency>
<groupId>io.spray</groupId>
<artifactId>spray-json_2.13.0-M2</artifactId>
<version>Latest secure release</version>
</dependency>
<dependency>
<groupId>io.spray</groupId>
<artifactId>spray-json_2.13.0-M4</artifactId>
<version>Latest secure release</version>
</dependency>
<dependency>
<groupId>io.spray</groupId>
<artifactId>spray-json_2.13.0-M5</artifactId>
<version>1.3.5</version>
</dependency>
<dependency>
<groupId>io.spray</groupId>
<artifactId>spray-json_2.9.3</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=io.spray
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2018-18855, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=io.spray
Analyze the terminal output to locate any version of Spray json 2.10 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.3.5), your application is affected.
Note: The mvn dependency:tree -Dincludes=io.spray 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-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Spray json 2.10, 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-2018-18855 Affected Spray json 2.10 Versions
12 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
io.spray:spray-json_2.10
|
Maven |
< 1.3.5
|
1.3.5
|
|
io.spray:spray-json_2.11
|
Maven |
< 1.3.5
|
1.3.5
|
|
io.spray:spray-json_2.11.0-RC4
|
Maven |
|
|
|
io.spray:spray-json_2.12
|
Maven |
< 1.3.5
|
1.3.5
|
|
io.spray:spray-json_2.12.0-M3
|
Maven |
|
|
|
io.spray:spray-json_2.12.0-M5
|
Maven |
|
|
|
io.spray:spray-json_2.12.0-RC1
|
Maven |
|
|
|
io.spray:spray-json_2.12.0-RC2
|
Maven |
|
|
|
io.spray:spray-json_2.13.0-M2
|
Maven |
|
|
|
io.spray:spray-json_2.13.0-M4
|
Maven |
|
|
|
io.spray:spray-json_2.13.0-M5
|
Maven |
< 1.3.5
|
1.3.5
|
|
io.spray:spray-json_2.9.3
|
Maven |
|
|
References
Frequently Asked Questions
What is CVE-2018-18855?
Which Spray json 2.10 versions are affected?
What version fixes CVE-2018-18855?
Is spray-json_2.10 affected?
Is spray-json_2.11 affected?
What CWE is associated with CVE-2018-18855?
How can I check Maven dependencies for CVE-2018-18855?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-ww3v-6xjf-jv28",
"modified" : "2025-09-30T19:11:48Z",
"published" : "2022-06-28T23:23:20Z",
"aliases" : [ "CVE-2018-18855" ],
"summary" : "Uncontrolled Resource Consumption in Spray JSON",
"details" : "Recursive decent parsers are susceptible too StackOverflowExceptions on too deeply nested structures as currently \"open\" parsing state is kept on the stack.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "io.spray:spray-json_2.10"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.3.5"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "io.spray:spray-json_2.11"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.3.5"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "io.spray:spray-json_2.11.0-RC4"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "< 1.3.5"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "io.spray:spray-json_2.12"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.3.5"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "io.spray:spray-json_2.12.0-M3"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "< 1.3.5"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "io.spray:spray-json_2.12.0-M5"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "< 1.3.5"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "io.spray:spray-json_2.12.0-RC1"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "< 1.3.5"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "io.spray:spray-json_2.12.0-RC2"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "< 1.3.5"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "io.spray:spray-json_2.13.0-M2"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "< 1.3.5"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "io.spray:spray-json_2.13.0-M4"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "< 1.3.5"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "io.spray:spray-json_2.13.0-M5"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.3.5"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "io.spray:spray-json_2.9.3"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "< 1.3.5"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/spray/spray-json/pull/284"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/spray/spray-json"
}, {
"type" : "WEB",
"url" : "https://security.snyk.io/vuln/SNYK-JAVA-IOSPRAY-72601"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-400" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2022-06-28T23:23:20Z",
"nvd_published_at" : null
}
}