Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
☕ Maven
Not in CISA KEV

CVE-2018-18855 — spray-json_2.10

Fix: spray/spray-json#284

CVE-2018-18855 is a remote code execution vulnerability in io.spray:spray-json_2.10. A fix is available for io.spray:spray-json_2.10 — see the affected versions and patch details below.

Uncontrolled Resource Consumption in Spray JSON

Published
Jun 28, 2022
Updated
Sep 30, 2025
Affected
12 pkgs
Patched
4 / 12
Exploits
None indexed
Exploitation data as of Sep 30, 2025 · OSV.dev, FIRST.org (EPSS)

Real-World Exposure

12 pkgs affected
☕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+4 more

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.

Description

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

Affected Packages

12 total 4 fixed
EcosystemPackageVulnerable rangeFix
☕Mavenio.spray:spray-json_2.10all versions1.3.5io.spray:spray-json_2.10:1.3.5
☕Mavenio.spray:spray-json_2.11all versions1.3.5io.spray:spray-json_2.11:1.3.5
☕Mavenio.spray:spray-json_2.11.0-RC4all versionsNo fix
☕Mavenio.spray:spray-json_2.12all versions1.3.5io.spray:spray-json_2.12:1.3.5
☕Mavenio.spray:spray-json_2.12.0-M3all versionsNo fix
☕Mavenio.spray:spray-json_2.12.0-M5all versionsNo fix

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for io.spray:spray-json_2.10, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update io.spray:spray-json_2.10 to 1.3.5 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2018-18855 is resolved across your whole dependency graph.

  3. Workarounds

    If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.

  4. How O3 protects you

    O3 Security's impact-aware SCA analyses which vulnerable code paths your application actually calls, so a match like CVE-2018-18855 can be triaged on real exposure rather than presence alone.

Tailored to CVE-2018-18855. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.

Frequently Asked Questions

Recursive decent parsers are susceptible too StackOverflowExceptions on too deeply nested structures as currently "open" parsing state is kept on the stack.
O3 Security · Impact-Aware SCA

Is CVE-2018-18855 in your dependencies?

O3 Security finds CVE-2018-18855 across Maven dependencies, including transitive ones, and its impact-aware SCA ranks findings by whether your code actually calls the vulnerable path.

CVE-2018-18855: spray-json_2.10 | O3 Security