CVE-2024-45258

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…

Critical · published August 25, 2024

CVSS v3.1
9.8
EPSS
1%
Percentile
53.5
In the wild
Unconfirmed
What it is

🚨 A malformed URL can trigger an unintended request with the req package in Go, leading to a critical vulnerability! 🔥 Think of this like sending a package to an address that doesn’t exist; the postal service just might deliver it to the next random location they can find, potentially exposing sensitive information. 📦 An attacker could exploit this flaw to redirect requests to unintended destinations, possibly leaking sensitive data or interacting with unauthorized services. This could result in significant breaches or data compromise, putting your whole application at risk!

Put simply

Think of this like sending a package to an address that doesn’t exist; the postal service just might deliver it to the next random location they can find, potentially exposing sensitive information. 📦 This vulnerability arises because the cleanHost function in the req package does not properly validate URL inputs, allowing a malformed URL to be processed incorrectly. Versions of the req package before 3.43.4 are affected, leaving systems vulnerable to unintended request generation.

What to do

An attacker could exploit this flaw to redirect requests to unintended destinations, possibly leaking sensitive data or interacting with unauthorized services. This could result in significant breaches or data compromise, putting your whole application at risk! Upgrade the req package to version 3.43.4 or later immediately to mitigate this vulnerability. Evaluate any existing URLs in your application to ensure they are properly sanitized before processing. 🚀 You've got this! Follow these steps and you’ll have your application secured in no time! 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00724 · 53.5th percentile
Published
2024-08-25T00:00Z
EPSS history
Timeline
  • 25 AUG 00:00Z
    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…
    cvelistv5