CVE-2024-45258
CRITICAL 9.8CVSS 3.1req may send an unintended request when a malformed URL is provided
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.
- Published
- 25 Aug 2024
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Deferred
- Weakness
- CWE-20CWE-918CWE-94
- Also known as
- GHSA-cj55-gc7m-wvcqGO-2024-3098
- Sources
- NVDJSONOSV GHSA-cj55-gc7m-wvcqJSONOSV GO-2024-3098JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N | |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Go | github.com/imroc/req/v3 | < 3.43.4 | 3.43.4 |
| OSV | Go | github.com/imroc/req | < 3.43.4 | 3.43.4 |
| OSV | Go | github.com/imroc/req/v2 | < 3.43.4 | 3.43.4 |
| OSV | Go | github.com/imroc/req | all versions | |
| OSV | Go | github.com/imroc/req/v2 | all versions |
References
- https://github.com/imroc/req/commit/04e3ece5b380ecad9da3551c449f1b8a9aa76d3d · WEB, FIX
- https://github.com/imroc/req/compare/v3.43.3...v3.43.4 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-45258 · ADVISORY
- https://github.com/imroc/req · PACKAGE
- https://pkg.go.dev/vuln/GO-2024-3098 · WEB
- https://github.com/advisories/GHSA-cj55-gc7m-wvcq · ADVISORY
History
- 25 Nov 2026 20:56 UTC · NVD: first stored (published 25 Aug 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 13 Sep 2024)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 26 Aug 2024)