CVE-2022-24863 Denial of service in http-swagger

High 7.5 Published Updated

An attacker can cause memory exhaustion and denial of service in http-swagger by exploiting improper handling of HTTP methods.

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

What is CVE-2022-24863?

CVE-2022-24863 is a high-severity denial of service vulnerability in swaggo http-swagger, published on 18 Apr 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

http-swagger is an open source wrapper to automatically generate RESTful API documentation with Swagger 2.0. In versions of http-swagger prior to 1.2.6 an attacker may perform a denial of service attack consisting of memory exhaustion on the host system. The cause of the memory exhaustion is down to improper handling of http methods. Users are advised to upgrade. Users unable to upgrade may to restrict the path prefix to the "GET" method as a workaround.

Weakness: CWE-755, CWE-400

Which versions are affected by CVE-2022-24863?

It affects 1 product.

Products include Http-Swagger Project Http-Swagger.

How do I fix CVE-2022-24863?

Upgrade to a fixed version.

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-2022-24863 being exploited?

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

Sources

Is CVE-2022-24863 in your software?

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

Check your SBOMs for free