Live threats

All CVEs / Http-swagger Project

CVE-2022-24863Http-swagger Project Http-swagger

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
1.9%
probability of exploitation in 30 days · percentile 80
Auth required
No
Published
Apr 18, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-400, CWE-755
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Http-swagger.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go github.com/swaggo/http-swagger < 1.2.6 1.2.6 go get github.com/swaggo/http-swagger@v1.2.6
Go github.com/swaggo/http-swagger < 1.2.6 1.2.6 go get github.com/swaggo/http-swagger@v1.2.6
Go github.com/swaggo/http-swagger < 1.2.6 1.2.6 go get github.com/swaggo/http-swagger@v1.2.6

Per OSV / GitHub Advisories (GHSA-49w7-5r33-jm9m, GHSA-xg75-q3q5-cqmv, GO-2022-0427). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
http-swagger_projecthttp-swagger< 1.2.6

Official sources

References

Links published by the sources. Open them with care.