Skip to content
Fencer Vulns
critical 9.8

CVE-2024-45258 json

req may send an unintended request when a malformed URL is provided

published 2024-08-25 2 y ago modified 2026-06-17 4 mo ago also GHSA-cj55-gc7m-wvcq , GO-2024-3098 , EUVD-2024-2561

cvss
9.8
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.7%
EPSS 0.7% chance of exploitation in 30 days, percentile 54%
public exploits
0
none known

Summary

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.

Patch / fix

  • go github.com/imroc/req/v3 3.43.4
  • go github.com/imroc/req 3.43.4
  • go github.com/imroc/req/v2 3.43.4
  • imroc req 3.43.4

CISA SSVC

Exploitation
Proof of concept is public
Automatable
yes
Technical impact
total
Assessed
2 y ago

Exploit prediction

0.72% chance of exploitation in the next 30 days, higher than 54% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CISA ADP 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CNA 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHub 3.1 7.2 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N

Affected packages

ecosystem package affected fixed in
go github.com/imroc/req/v3
<3.43.4
3.43.4
go github.com/imroc/req
<3.43.4
all versions
3.43.4
go github.com/imroc/req/v2
<3.43.4
all versions
3.43.4

Affected products

  • imroc req

Classification

Weakness
  • CWE-20 Improper Input Validation
  • CWE-918 Server-Side Request Forgery
  • CWE-94 Improper Control of Generation of Code

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.