HTTP Library Vulnerability in Requests Affects Python Applications
CVE-2024-47081

5.3MEDIUM

Key Information:

Vendor

Psf

Status
Vendor
CVE Published:
9 June 2025

Badges

📈 Score: 624📰 News Worthy

What is CVE-2024-47081?

CVE-2024-47081 is a security vulnerability found in the Requests library, a widely used HTTP library for Python applications. This vulnerability stems from a flaw in how the library parses URLs, which can lead to the unintended exposure of sensitive user credentials stored in a .netrc file. Specifically, when handling certain specially crafted URLs, the library may leak these credentials to unauthorized third parties. The potential consequences of this vulnerability are significant, as any exposed credentials could enable attackers to impersonate legitimate users, access secure resources, or perform unauthorized actions within affected Python applications. The recommended mitigation is to upgrade to Requests version 2.32.4, which addresses this issue. For users who cannot upgrade, disabling the use of the .netrc file with the option trust_env=False is advised.

Potential impact of CVE-2024-47081

  1. Credential Exposure: The primary risk involves the potential leakage of .netrc file credentials, which could give attackers access to user identities and private data. This enables unauthorized actions and compromises user trust.

  2. Increased Attack Surface: The vulnerability creates an opening for attackers to exploit applications using the affected library, increasing the overall attack surface and risk profile for organizations that rely on these applications.

  3. Compliance and Regulatory Risks: Organizations handling sensitive user data may face compliance challenges and legal repercussions if exposed credentials lead to data breaches. This adds financial and reputational risks, further escalating the impact of this vulnerability.

Affected Version(s)

requests < 2.32.4

News Articles

oss-sec: Re: CVE-2024-47081: Netrc credential leak in PSF requests library

oss-sec mailing list archives Re: CVE-2024-47081: Netrc credential leak in PSF requests library From: Demi Marie Obenour &lt;demiobenour () gmail com&gt; Date: Tue, 3 Jun 2025 20:53:15 -0400 On 6/3/25...

CVE-2024-47081 Impact, Exploitability, and Mitigation Steps | Wiz

Understand the critical aspects of CVE-2024-47081 with a detailed vulnerability assessment, exploitation potential, affected technologies, and remediation guidance.

oss-sec: CVE-2024-47081: Netrc credential leak in PSF requests library

oss-sec mailing list archives From: Alan Coopersmith &lt;alan.coopersmith () oracle com&gt; Date: Tue, 3 Jun 2025 10:09:52 -0700 [I'm not sure how the attacker is supposed to get the victim to make a...

References

CVSS V3.1

Score:
5.3
Severity:
MEDIUM
Confidentiality:
High
Integrity:
None
Availability:
High
Attack Vector:
Network
Attack Complexity:
High
Privileges Required:
None
User Interaction:
Required
Scope:
Unchanged

Timeline

  • Vulnerability published

  • 📰

    First article discovered by Seclists.org

  • Vulnerability Reserved

.
CVE-2024-47081 : HTTP Library Vulnerability in Requests Affects Python Applications