# CVE-2024-45258: req may send an unintended request when a malformed URL is provided

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.72%, higher than 55% of CVEs (2026-12-01)
- Published: 2024-08-25T00:00:00.000Z
- Modified: 2026-06-17T07:53:52.260Z
- Also known as: GHSA-cj55-gc7m-wvcq, GO-2024-3098
- Weaknesses: CWE-20, CWE-94, CWE-918
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- imroc req: before 3.43.4
- github.com/imroc/req/v3 (Go): before 3.43.4
- github.com/imroc/req (Go): before 3.43.4; all versions
- github.com/imroc/req/v2 (Go): before 3.43.4; all versions

## Every score

- CISA-ADP: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 7.2 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N`
- GitHub: CVSS:4.0 Medium `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`

## References

- <https://github.com/imroc/req/commit/04e3ece5b380ecad9da3551c449f1b8a9aa76d3d> (fix, web)
- <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)

## Sources

- CVE List: [CVE-2024-45258](https://www.cve.org/CVERecord?id=CVE-2024-45258), CVE Terms of Use, modified 2024-08-26
- GitHub Advisory Database: [GHSA-cj55-gc7m-wvcq](https://github.com/advisories/GHSA-cj55-gc7m-wvcq), CC-BY-4.0, modified 2024-11-18
- Go Vulnerability Database: [GO-2024-3098](https://pkg.go.dev/vuln/GO-2024-3098), CC-BY-4.0, modified 2024-09-13
- NVD: [CVE-2024-45258](https://nvd.nist.gov/vuln/detail/CVE-2024-45258), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-45258 · Whole record: https://cve.day/CVE-2024-45258.json · Rebuilt by cve.day 2026-11-25T22:58:44.727Z
