CVE-2022-24863 json
Denial of service in http-swagger
published 2022-04-18 4 y ago modified 2026-06-17 4 mo ago also CVE-2024-25712 , GHSA-49w7-5r33-jm9m , GHSA-xg75-q3q5-cqmv , GO-2022-0427 , EUVD-2022-1868
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.4%
- EPSS 2.4% chance of exploitation in 30 days, percentile 84%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- go github.com/swaggo/http-swagger 1.2.6
- http-swagger_project http-swagger 1.2.6
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-24863 updated cvss 7.5
http-swagger: a denial of service attack consisting of memory exhaustion on the host system
-
Red Hat Quay 3 quay/quay-rhel8, quay/quay-operator-rhel8affected: no fix available
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 18 mo ago
Exploit prediction
2.44% chance of exploitation in the next 30 days, higher than 84% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 2.0 | 7.8 | AV:N/AC:L/Au:N/C:N/I:N/A:C |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/swaggo/http-swagger | <1.2.6 |
1.2.6 |
Affected products
- swaggo http-swagger
Classification
References
-
github.com
/swaggo/http-swagger/pull/62
web, third-party-advisory, patch
-
github.com
/swaggo/http-swagger/commit/b7d83e8fba85a7a51aa7e45e8244b4173f15049e
web, patch, third-party-advisory
-
github.com
/swaggo/http-swagger/security/advisories/GHSA-xg75-q3q5-cqmv
web, third-party-advisory
-
github.com
/swaggo/http-swagger/releases/tag/v1.2.6
web, release-notes, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-24863
advisory
-
cosmosofcyberspace.github.io
/improper_http_method_leads_to_xss/poc.html
web
-
github.com
/swaggo/http-swagger
package
-
nvd.nist.gov
/vuln/detail/CVE-2024-25712
advisory
-
github.com
/swaggo/http-swagger/issues/61
report
Sources
- CVE List CVE-2022-24863
- GitHub Advisory GHSA-xg75-q3q5-cqmv
- GitHub Advisory GHSA-49w7-5r33-jm9m
- NVD CVE-2022-24863
- OSV GO-2022-0427
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.