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

CVE-2018-18855

Fix: spray/spray-json#284

CVE-2018-18855 is a remote code execution vulnerability in io.spray:spray-json_2.10. O3 Security confirms whether CVE-2018-18855 is actually reachable in your code before you act, and blocks exploitation at runtime until you patch.

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.10io.spray:spray-json_2.11io.spray:spray-json_2.11.0-RC4io.spray:spray-json_2.12io.spray:spray-json_2.12.0-M3io.spray:spray-json_2.12.0-M5io.spray:spray-json_2.12.0-RC1io.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.5
Mavenio.spray:spray-json_2.11all versions1.3.5
Mavenio.spray:spray-json_2.11.0-RC4all versionsNo fix
Mavenio.spray:spray-json_2.12all versions1.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. O3's reachability analysis confirms whether the vulnerable code path is actually invoked in your application, so you act on real exposure instead of every transitive match.

  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 pinpoints whether CVE-2018-18855 is reachable in your code and exactly where to fix it, then blocks exploitation in production at runtime until the patched version is deployed.

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 detects CVE-2018-18855 across Maven dependencies and uses function-level reachability to confirm whether the vulnerable code path is actually reachable — not just present. No false positives.