CVE-2018-18853 Uncontrolled Resource Consumption in spray-json when parsing decimal digit fields

High 7.5 Published Updated

Remote attackers can cause denial of service via resource consumption in spray-json due to algorithmic complexity during decimal 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-18853?

CVE-2018-18853 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 a field composed of many decimal digits.

Weakness: CWE-400

Which versions are affected by CVE-2018-18853?

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.

PackageAffectedFixed in
io.spray:spray-json_2.10 MavenAll versions1.3.5
io.spray:spray-json_2.10 MavenAll versions1.3.5
io.spray:spray-json_2.11 MavenAll versions1.3.5
io.spray:spray-json_2.11 MavenAll versions1.3.5
io.spray:spray-json_2.12 MavenAll versions1.3.5
io.spray:spray-json_2.12 MavenAll versions1.3.5

Products include Lightbend Spray-Json.

How do I fix CVE-2018-18853?

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-18853 being exploited?

There is no known exploitation of CVE-2018-18853 in the wild and no public exploit code.

Sources

Also known as GHSA-f94m-mqhr-mc29.

Is CVE-2018-18853 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free