CVE-2018-18854: Uncontrolled Resource Consumption in spray-json

io.spray:spray-json_2.12 Updated 02 Oct 2025

Summary

09/11/2018
Yes i
High
7.5

CVE-2018-18854: Uncontrolled Resource Consumption in spray-json. Affects io.spray:spray-json_2.12 versions < 1.3.5. Fixed in 1.3.5. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The package under scrutiny is Lightbend Spray spray-json, which is a JSON library for Scala. It provides a simple and efficient way to parse, manipulate, and serialize JSON data. This vulnerability affects versions up to 1.3.4 of the library. The vulnerability arises due to Algorithmic Complexity during the parsing of JSON object fields with keys that have the same hash code.

Vulnerability Detail

The vulnerability allows remote attackers to cause a denial of service (resource consumption) by exploiting the algorithmic complexity issue in the parsing of JSON object fields. This can lead to excessive resource usage, potentially impacting the availability and performance of the affected system. The vulnerability has a CVSSv3 score of 7.5, indicating a high severity level.

How To Fix

Latest published version: 1.3.6 as of 23 Oct 2026

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.3.5

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no specific workaround mentioned for this vulnerability.

Conclusion

In conclusion, the CVE-2018-18854 vulnerability in the spray-json library allows remote attackers to cause a denial of service by exploiting an algorithmic complexity issue during the parsing of JSON object fields. It is crucial to upgrade to version 1.3.5 or later to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for io.spray:spray-json_2.12 →

Share this vulnerability

FAQ

The vulnerability can be exploited by remote attackers to cause a denial of service by consuming excessive resources during the parsing of JSON object fields.

The CVSSv3 score for this vulnerability is 7.5, indicating a high severity level.

Versions up to 1.3.4 of the spray-json library are affected by this vulnerability.

To fix this vulnerability, it is recommended to upgrade to version 1.3.5 or later of the spray-json library.

No specific workaround has been mentioned for this vulnerability.

Related vulnerabilities

Recent vulnerabilities recorded for io.spray:spray-json_2.12.

How To Fix

Latest published version: 1.3.6 as of 23 Oct 2026

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.3.5

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback