| { |
| "schema_version": "1.3.1", |
| "id": "GO-2022-0427", |
| "modified": "0001-01-01T00:00:00Z", |
| "published": "0001-01-01T00:00:00Z", |
| "aliases": [ |
| "CVE-2022-24863", |
| "CVE-2024-25712", |
| "GHSA-49w7-5r33-jm9m", |
| "GHSA-xg75-q3q5-cqmv" |
| ], |
| "summary": "Unprotected file upload in github.com/swaggo/http-swagger", |
| "details": "The httpSwagger package's HTTP handler provides WebDAV read/write access to an in-memory filesystem. An attacker can exploit this to cause memory exhaustion by uploading many files, XSS attacks by uploading malicious files, or other unexpected behaviors.", |
| "affected": [ |
| { |
| "package": { |
| "name": "github.com/swaggo/http-swagger", |
| "ecosystem": "Go" |
| }, |
| "ranges": [ |
| { |
| "type": "SEMVER", |
| "events": [ |
| { |
| "introduced": "0" |
| }, |
| { |
| "fixed": "1.2.6" |
| } |
| ] |
| } |
| ], |
| "ecosystem_specific": { |
| "imports": [ |
| { |
| "path": "github.com/swaggo/http-swagger" |
| } |
| ] |
| } |
| } |
| ], |
| "references": [ |
| { |
| "type": "WEB", |
| "url": "https://cosmosofcyberspace.github.io/improper_http_method_leads_to_xss/poc.html" |
| }, |
| { |
| "type": "FIX", |
| "url": "https://github.com/swaggo/http-swagger/pull/62" |
| }, |
| { |
| "type": "REPORT", |
| "url": "https://github.com/swaggo/http-swagger/issues/61" |
| } |
| ], |
| "database_specific": { |
| "url": "https://pkg.go.dev/vuln/GO-2022-0427", |
| "review_status": "REVIEWED" |
| } |
| } |