# CVE-2018-18855: Uncontrolled Resource Consumption in Spray JSON

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **CWE:** CWE-400
- **Aliases:** GHSA-ww3v-6xjf-jv28
- **Published:** 2022-06-28T23:23:20.000Z
- **Modified:** 2025-09-30T19:18:45.945Z

## Who should check

- Projects that depend on Maven package io.spray:spray-json\_2.10 (\< 1.3.5)
- Projects that depend on Maven package io.spray:spray-json\_2.11 (\< 1.3.5)
- Projects that depend on Maven package io.spray:spray-json\_2.11.0-RC4 (1.2.6)
- Projects that depend on Maven package io.spray:spray-json\_2.12 (\< 1.3.5)
- Projects that depend on Maven package io.spray:spray-json\_2.12.0-M3 (1.3.2)
- Projects that depend on Maven package io.spray:spray-json\_2.12.0-M5 (1.3.2)
- Projects that depend on Maven package io.spray:spray-json\_2.12.0-RC1 (1.3.2)
- Projects that depend on Maven package io.spray:spray-json\_2.12.0-RC2 (1.3.2)

## Description

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

## Affected and fixed versions

- Maven `io.spray:spray-json_2.10`: affected \< 1.3.5; fixed 1.3.5 (osv)
- Maven `io.spray:spray-json_2.11`: affected \< 1.3.5; fixed 1.3.5 (osv)
- Maven `io.spray:spray-json_2.11.0-RC4`: affected 1.2.6; fixed no fix listed yet (osv)
- Maven `io.spray:spray-json_2.12`: affected \< 1.3.5; fixed 1.3.5 (osv)
- Maven `io.spray:spray-json_2.12.0-M3`: affected 1.3.2; fixed no fix listed yet (osv)
- Maven `io.spray:spray-json_2.12.0-M5`: affected 1.3.2; fixed no fix listed yet (osv)
- Maven `io.spray:spray-json_2.12.0-RC1`: affected 1.3.2; fixed no fix listed yet (osv)
- Maven `io.spray:spray-json_2.12.0-RC2`: affected 1.3.2; fixed no fix listed yet (osv)
- Maven `io.spray:spray-json_2.13.0-M2`: affected 1.3.4; fixed no fix listed yet (osv)
- Maven `io.spray:spray-json_2.13.0-M4`: affected 1.3.4; fixed no fix listed yet (osv)
- Maven `io.spray:spray-json_2.13.0-M5`: affected \< 1.3.5; fixed 1.3.5 (osv)
- Maven `io.spray:spray-json_2.9.3`: affected 1.2.5, 1.2.6; fixed no fix listed yet (osv)

## Mitigation

- Upgrade io.spray:spray-json\_2.10 to 1.3.5 or later.
- Upgrade io.spray:spray-json\_2.11 to 1.3.5 or later.
- Upgrade io.spray:spray-json\_2.12 to 1.3.5 or later.
- Upgrade io.spray:spray-json\_2.13.0-M5 to 1.3.5 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2018-18855. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2018-18855.md
Affected: io.spray:spray-json_2.10 < 1.3.5; io.spray:spray-json_2.11 < 1.3.5; io.spray:spray-json_2.11.0-RC4 1.2.6; io.spray:spray-json_2.12 < 1.3.5; io.spray:spray-json_2.12.0-M3 1.3.2; io.spray:spray-json_2.12.0-M5 1.3.2; io.spray:spray-json_2.12.0-RC1 1.3.2; io.spray:spray-json_2.12.0-RC2 1.3.2; io.spray:…
Fixed in: 1.3.5

Steps:
1. Search this machine and project for io.spray:spray-json_2.10 (Maven), io.spray:spray-json_2.11 (Maven), io.spray:spray-json_2.11.0-RC4 (Maven), io.spray:spray-json_2.12 (Maven), io.spray:spray-json_2.12.0-M3 (Maven), io.spray:spray-json_2.12.0-M5 (Maven): dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2018-18855 being exploited?

There is no confirmed exploitation: CVE-2018-18855 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2018-18855?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2018-18855?

io.spray:spray-json\_2.10 \< 1.3.5; io.spray:spray-json\_2.11 \< 1.3.5; io.spray:spray-json\_2.11.0-RC4 1.2.6; io.spray:spray-json\_2.12 \< 1.3.5; io.spray:spray-json\_2.12.0-M3 1.3.2; io.spray:spray-json\_2.12.0-M5 1.3.2; io.spray:spray-json\_2.12.0-RC1 1.3.2; io.spray:spray-json\_2.12.0-RC2 1.3.2; io.spray:spray-json\_2.13.0-M2 1.3.4; io.spray:spray-json\_2.13.0-M4 1.3.4; io.spray:spray-json\_2.13.0-M5 \< 1.3.5; io.spray:spray-json\_2.9.3 1.2.5, 1.2.6.

### Is there a fix for CVE-2018-18855?

Yes. Fixed in 1.3.5. Upgrade io.spray:spray-json\_2.10 to 1.3.5 or later. Upgrade io.spray:spray-json\_2.11 to 1.3.5 or later. Upgrade io.spray:spray-json\_2.12 to 1.3.5 or later. Upgrade io.spray:spray-json\_2.13.0-M5 to 1.3.5 or later.

### How do I check if I'm affected by CVE-2018-18855?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://github.com/spray/spray-json/pull/284>
- other: <https://github.com/spray/spray-json>
- other: <https://security.snyk.io/vuln/SNYK-JAVA-IOSPRAY-72601>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-ww3v-6xjf-jv28> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2018-18855> · JSON: <https://flawdb.com/api/v1/entries/CVE-2018-18855>
