CVE-2024-45258imroc req
Critical 9.8 No auth needed
Follow: this CVE · imroc · imroc req We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 1.0% probability of exploitation in 30 days · percentile 61
- Auth required
- No
- Published
- Aug 25, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-20
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for req.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/imroc/req |
< 3.43.4 |
3.43.4 |
go get github.com/imroc/req@v3.43.4 |
| Go | github.com/imroc/req |
all |
no fixed version | — |
| Go | github.com/imroc/req/v2 |
< 3.43.4 |
3.43.4 |
go get github.com/imroc/req/v2@v3.43.4 |
| Go | github.com/imroc/req/v2 |
all |
no fixed version | — |
| Go | github.com/imroc/req/v3 |
< 3.43.4 |
3.43.4 |
go get github.com/imroc/req/v3@v3.43.4 |
| Go | github.com/imroc/req/v3 |
< 3.43.4 |
3.43.4 |
go get github.com/imroc/req/v3@v3.43.4 |
Per OSV / GitHub Advisories (GHSA-cj55-gc7m-wvcq, GO-2024-3098). Check the version in your lockfile before upgrading.
Affected products
- imroc · req
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.