{"id":"CVE-2022-24863","published":"2022-04-18T19:00:22Z","modified":"2025-04-23T18:34:13Z","title":"Denial of service in http-swagger","vendor":"swaggo","product":"http-swagger","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01851,"percentile":0.79636,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"references":[{"url":"https://github.com/swaggo/http-swagger/security/advisories/GHSA-xg75-q3q5-cqmv","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/swaggo/http-swagger/pull/62","tags":["x_refsource_MISC"]},{"url":"https://github.com/swaggo/http-swagger/commit/b7d83e8fba85a7a51aa7e45e8244b4173f15049e","tags":["x_refsource_MISC"]},{"url":"https://github.com/swaggo/http-swagger/releases/tag/v1.2.6","tags":["x_refsource_MISC"]}],"priority":{"score":21.2,"factors":[{"name":"EPSS percentile","points":15.93},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"swaggo","affectedVersions":[{"vendor":"swaggo","product":"http-swagger","versions":["< 1.2.6"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-04-23T15:55:32.422186Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/swaggo/http-swagger","vulnerableRanges":["<1.2.6"],"patched":["1.2.6"],"from":["GHSA-xg75-q3q5-cqmv","GO-2022-0427"],"provenance":"source"}],"summary":{"text":"The http-swagger Go wrapper for generating Swagger 2.0 API documentation, prior to version 1.2.6, mishandles HTTP methods, allowing an attacker to exhaust memory on the host system. An attacker can trigger this over the network without authentication or user interaction, as the flaw is reachable by sending requests to the documentation path prefix; users who cannot upgrade can restrict that path prefix to the GET method as a workaround.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:50:09Z"},"euvd":{"id":"EUVD-2022-1868","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-swaggo-http-swagger-cve-2022-24863","children":[{"from":"CVE-2022-24863","to":"CVE-2024-25712","relation":"related","confidence":"high","kind":"lineage","evidence":[{"kind":"osv-related","provenance":"source","id":"GHSA-xg75-q3q5-cqmv","via":"reference","url":"https://github.com/swaggo/http-swagger/security/advisories/GHSA-xg75-q3q5-cqmv"}]}]}}