GHSA-rhc3-76jw-4f2x Denial of Service in @commercial/ammo

Not scored Published

An attacker can crash the application by sending a malformed Range HTTP header, causing an unhandled exception in the @commercial/ammo library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is GHSA-rhc3-76jw-4f2x?

GHSA-rhc3-76jw-4f2x is a denial of service vulnerability in @commercial/ammo, published on 4 Sep 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Versions of @commercial/ammo prior to 2.1.1 are vulnerable to Denial of Service. The Range HTTP header parser has a vulnerability which will cause the function to throw a system error if the header is set to an invalid value. Because hapi is not expecting the function to ever throw, the error is thrown all the way up the stack. If no unhandled exception handler is available, the application will exist, allowing an attacker to shut down services.

Recommendation

Upgrade to version 2.1.1 or later.

Which versions are affected by GHSA-rhc3-76jw-4f2x?

2 open source packages ship an affected version, including @commercial/ammo.

PackageAffectedFixed in
@commercial/ammo npmAll versions2.1.1
@commercial/ammo npmAll versions2.1.1

How do I fix GHSA-rhc3-76jw-4f2x?

Upgrade @commercial/ammo to 2.1.1 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 GHSA-rhc3-76jw-4f2x being exploited?

There is no known exploitation of GHSA-rhc3-76jw-4f2x in the wild and no public exploit code.

Sources

Is GHSA-rhc3-76jw-4f2x in your software?

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

Check your SBOMs for free