All CVEs / Http-swagger Project
CVE-2022-24863Http-swagger Project Http-swagger
High 7.5 No auth needed
Follow: this CVE · Http-swagger Project · Http-swagger Project Http-swagger We alert you by email or Slack (account required).
- 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
- 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.
What to do
- Apply the vendor's security update for Http-swagger.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| http-swagger_project | http-swagger | < 1.2.6 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Third Party Advisory
- github.com Release Notes Third Party Advisory
- github.com Third Party Advisory