CVE-2018-18854 Uncontrolled Resource Consumption in spray-json
Remote attackers can cause denial of service via resource consumption in spray-json due to algorithmic complexity during JSON parsing.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2018-18854?
CVE-2018-18854 is a high-severity denial of service vulnerability in n/a, published on 31 Oct 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Lightbend Spray spray-json through 1.3.4 allows remote attackers to cause a denial of service (resource consumption) because of Algorithmic Complexity during the parsing of many JSON object fields (with keys that have the same hash code).
Weakness: CWE-400
Which versions are affected by CVE-2018-18854?
6 open source packages ship an affected version, including io.spray:spray-json_2.10, io.spray:spray-json_2.11 and io.spray:spray-json_2.12. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
io.spray:spray-json_2.10 Maven | All versions | 1.3.5 |
io.spray:spray-json_2.10 Maven | All versions | 1.3.5 |
io.spray:spray-json_2.11 Maven | All versions | 1.3.5 |
io.spray:spray-json_2.11 Maven | All versions | 1.3.5 |
io.spray:spray-json_2.12 Maven | All versions | 1.3.5 |
io.spray:spray-json_2.12 Maven | All versions | 1.3.5 |
Products include Lightbend Spray-Json.
How do I fix CVE-2018-18854?
Upgrade io.spray:spray-json_2.10 to 1.3.5 or later.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2018-18854 being exploited?
There is no known exploitation of CVE-2018-18854 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as GHSA-q8xj-8xg3-w432.