CVE-2018-18855
Uncontrolled Resource Consumption in Spray JSON
Also known as GHSA-ww3v-6xjf-jv28
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.
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)
Vulnerability facts
- 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: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
- Fixed in
- 1.3.5
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Unknown
- CVSS
- Not scored yet
- CWE
- CWE-400
- Modified
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
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Maven io.spray:spray-json_2.10 | < 1.3.5 | 1.3.5 | osv |
| Maven io.spray:spray-json_2.11 | < 1.3.5 | 1.3.5 | osv |
| Maven io.spray:spray-json_2.11.0-RC4 | 1.2.6 | — | osv |
| Maven io.spray:spray-json_2.12 | < 1.3.5 | 1.3.5 | osv |
| Maven io.spray:spray-json_2.12.0-M3 | 1.3.2 | — | osv |
| Maven io.spray:spray-json_2.12.0-M5 | 1.3.2 | — | osv |
| Maven io.spray:spray-json_2.12.0-RC1 | 1.3.2 | — | osv |
| Maven io.spray:spray-json_2.12.0-RC2 | 1.3.2 | — | osv |
| Maven io.spray:spray-json_2.13.0-M2 | 1.3.4 | — | osv |
| Maven io.spray:spray-json_2.13.0-M4 | 1.3.4 | — | osv |
| Maven io.spray:spray-json_2.13.0-M5 | < 1.3.5 | 1.3.5 | osv |
| Maven io.spray:spray-json_2.9.3 | 1.2.5, 1.2.6 | — | osv |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
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.
References
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.