Vulnerabilities in pkg:maven/io.spray/spray-json_2.9.3

PACKAGE
Advisory Identifier: GHSA-ww3v-6xjf-jv28
Advisory Summary

CVE-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.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/io.spray/spray-json_2.9.3

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/io.spray/spray-json_2.9.3. 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

CVE Identifier CVE-2018-18855
GHSA Identifier GHSA-ww3v-6xjf-jv28
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-400: Uncontrolled Resource Consumption
Affected Product Spray json 2.10
Package Ecosystem Maven
Published Date
Last Updated

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.

io.spray:spray-json_2.10 fixed: 1.3.5
<dependency>
    <groupId>io.spray</groupId>
    <artifactId>spray-json_2.10</artifactId>
    <version>1.3.5</version>
</dependency>
io.spray:spray-json_2.11 fixed: 1.3.5
<dependency>
    <groupId>io.spray</groupId>
    <artifactId>spray-json_2.11</artifactId>
    <version>1.3.5</version>
</dependency>
io.spray:spray-json_2.11.0-RC4 fixed: Latest secure release
<dependency>
    <groupId>io.spray</groupId>
    <artifactId>spray-json_2.11.0-RC4</artifactId>
    <version>Latest secure release</version>
</dependency>
io.spray:spray-json_2.12 fixed: 1.3.5
<dependency>
    <groupId>io.spray</groupId>
    <artifactId>spray-json_2.12</artifactId>
    <version>1.3.5</version>
</dependency>
io.spray:spray-json_2.12.0-M3 fixed: Latest secure release
<dependency>
    <groupId>io.spray</groupId>
    <artifactId>spray-json_2.12.0-M3</artifactId>
    <version>Latest secure release</version>
</dependency>
io.spray:spray-json_2.12.0-M5 fixed: Latest secure release
<dependency>
    <groupId>io.spray</groupId>
    <artifactId>spray-json_2.12.0-M5</artifactId>
    <version>Latest secure release</version>
</dependency>
io.spray:spray-json_2.12.0-RC1 fixed: Latest secure release
<dependency>
    <groupId>io.spray</groupId>
    <artifactId>spray-json_2.12.0-RC1</artifactId>
    <version>Latest secure release</version>
</dependency>
io.spray:spray-json_2.12.0-RC2 fixed: Latest secure release
<dependency>
    <groupId>io.spray</groupId>
    <artifactId>spray-json_2.12.0-RC2</artifactId>
    <version>Latest secure release</version>
</dependency>
io.spray:spray-json_2.13.0-M2 fixed: Latest secure release
<dependency>
    <groupId>io.spray</groupId>
    <artifactId>spray-json_2.13.0-M2</artifactId>
    <version>Latest secure release</version>
</dependency>
io.spray:spray-json_2.13.0-M4 fixed: Latest secure release
<dependency>
    <groupId>io.spray</groupId>
    <artifactId>spray-json_2.13.0-M4</artifactId>
    <version>Latest secure release</version>
</dependency>
io.spray:spray-json_2.13.0-M5 fixed: 1.3.5
<dependency>
    <groupId>io.spray</groupId>
    <artifactId>spray-json_2.13.0-M5</artifactId>
    <version>1.3.5</version>
</dependency>
io.spray:spray-json_2.9.3 fixed: Latest secure release
<dependency>
    <groupId>io.spray</groupId>
    <artifactId>spray-json_2.9.3</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=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

Recursive decent parsers are susceptible too StackOverflowExceptions on too deeply nested structures as currently "open" parsing state is kept on the stack.

CVE-2018-18855 Affected Spray json 2.10 Versions

12 component(s)
Fixed Versions:
1.3.5
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?
CVE-2018-18855 is a security vulnerability in Spray json 2.10 involving Uncontrolled Resource Consumption in Spray JSON under CWE-400: Uncontrolled Resource Consumption.
Which Spray json 2.10 versions are affected?
Affected versions include releases prior to 1.3.5 across affected packages: io.spray:spray-json_2.10, io.spray:spray-json_2.11, io.spray:spray-json_2.11.0-RC4, io.spray:spray-json_2.12, io.spray:spray-json_2.12.0-M3, io.spray:spray-json_2.12.0-M5, io.spray:spray-json_2.12.0-RC1, io.spray:spray-json_2.12.0-RC2, io.spray:spray-json_2.13.0-M2, io.spray:spray-json_2.13.0-M4, io.spray:spray-json_2.13.0-M5, io.spray:spray-json_2.9.3.
What version fixes CVE-2018-18855?
Upgrading to 1.3.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is spray-json_2.10 affected?
Yes, io.spray:spray-json_2.10 is affected in releases prior to 1.3.5. Upgrade your dependency to 1.3.5 or later.
Is spray-json_2.11 affected?
Yes, io.spray:spray-json_2.11 is affected in releases prior to 1.3.5. Upgrade your dependency to 1.3.5 or later.
What CWE is associated with CVE-2018-18855?
CVE-2018-18855 is classified under CWE-400: Uncontrolled Resource Consumption (The product does not properly control the allocation and maintenance of a limited resource.).
How can I check Maven dependencies for CVE-2018-18855?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=io.spray'. 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-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
  }
}