GHSA-mg85-8mv5-ffjr Denial of Service in ammo

Not scored Published

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

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

What is GHSA-mg85-8mv5-ffjr?

GHSA-mg85-8mv5-ffjr is a denial of service vulnerability in ammo, published on 3 Sep 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

All versions of ammo 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

This package is deprecated and is now maintained as @hapi/ammo. Please update your dependencies to use @hapi/ammo.

Which versions are affected by GHSA-mg85-8mv5-ffjr?

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

PackageAffectedFixed in
ammo npmFrom 0.0.0None
ammo npmFrom 0.0.0None

How do I fix GHSA-mg85-8mv5-ffjr?

No fix has been published for GHSA-mg85-8mv5-ffjr yet. Limit exposure of the affected software until one is available.

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-mg85-8mv5-ffjr being exploited?

There is no known exploitation of GHSA-mg85-8mv5-ffjr in the wild and no public exploit code.

Sources

Is GHSA-mg85-8mv5-ffjr in your software?

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

Check your SBOMs for free