Vulnerability · Published Aug 25, 2024 · Assigned by mitre
CVE-2024-45258
Critical 9.8
In plain English
A critical-severity improper input validation in the github.com/imroc/req package (Go). Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 54% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)9.8Critical
Exploit odds (30 days)0.7%top 45.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known
Official description
The req package before 3.43.4 for Go may send an unintended request when a malformed URL is provided, because cleanHost in http.go intentionally uses a "garbage in, garbage out" design.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/imroc/req | 3.43.4 | GHSA-cj55-gc7m-wvcq |
| Go | github.com/imroc/req | no fix listed | GO-2024-3098 |
| Go | github.com/imroc/req/v2 | 3.43.4 | GHSA-cj55-gc7m-wvcq |
| Go | github.com/imroc/req/v2 | no fix listed | GO-2024-3098 |
| Go | github.com/imroc/req/v3 | 3.43.4 | GHSA-cj55-gc7m-wvcq |
| Go | github.com/imroc/req/v3 | 3.43.4 | GO-2024-3098 |
Affected products (as reported)
Weakness: CWE-20 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H