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

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.44%, higher than 84% of CVEs (2026-12-01)
- Published: 2022-04-18T19:00:22.000Z
- Modified: 2026-06-17T04:32:41.120Z
- Also known as: GHSA-49w7-5r33-jm9m, GHSA-xg75-q3q5-cqmv, GO-2022-0427
- Related: CVE-2024-25712
- Weaknesses: CWE-79, CWE-400, CWE-755
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- swaggo http-swagger: < 1.2.6
- github.com/swaggo/http-swagger (Go): before 1.2.6
- http-swagger_project http-swagger: before 1.2.6

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 7.8 High `AV:N/AC:L/Au:N/C:N/I:N/A:C`

## References

- <https://github.com/swaggo/http-swagger/security/advisories/GHSA-xg75-q3q5-cqmv> (third-party-advisory, web)
- <https://github.com/swaggo/http-swagger/pull/62> (fix, third-party-advisory, web)
- <https://github.com/swaggo/http-swagger/commit/b7d83e8fba85a7a51aa7e45e8244b4173f15049e> (patch, third-party-advisory, web)
- <https://github.com/swaggo/http-swagger/releases/tag/v1.2.6> (release-notes, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-25712> (advisory)
- <https://cosmosofcyberspace.github.io/improper_http_method_leads_to_xss/poc.html> (web)
- <https://github.com/swaggo/http-swagger> (package)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-24863> (advisory)
- <https://github.com/swaggo/http-swagger/issues/61> (report)

## Sources

- CVE List: [CVE-2022-24863](https://www.cve.org/CVERecord?id=CVE-2022-24863), CVE Terms of Use, modified 2025-04-23
- GitHub Advisory Database: [GHSA-49w7-5r33-jm9m](https://github.com/advisories/GHSA-49w7-5r33-jm9m), CC-BY-4.0, modified 2025-01-16
- GitHub Advisory Database: [GHSA-xg75-q3q5-cqmv](https://github.com/advisories/GHSA-xg75-q3q5-cqmv), CC-BY-4.0, modified 2024-03-04
- Go Vulnerability Database: [GO-2022-0427](https://pkg.go.dev/vuln/GO-2022-0427), CC-BY-4.0, modified 2024-05-20
- NVD: [CVE-2022-24863](https://nvd.nist.gov/vuln/detail/CVE-2022-24863), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-24863 · Whole record: https://cve.day/CVE-2022-24863.json · Rebuilt by cve.day 2026-11-25T22:58:10.821Z
