CVE-2024-47081: Requests vulnerable to .netrc credentials leak via malicious URLs

Published Jun 3, 2025
·
Updated

### Impact Due to a URL parsing issue, Requests releases prior to 2.32.4 may leak .netrc credentials to third parties for specific maliciously-crafted URLs. ### Workarounds For older versions of Requests, use of the .netrc file can be disabled with `trust_env=False` on your Requests Session ([docs](https://requests.readthedocs.io/en/latest/api/#requests.Session.trust_env)). ### References https://github.com/psf/requests/pull/6965 https://seclists.org/fulldisclosure/2025/Jun/2

Affected Software

2 affected componentsFixes available
pip/requests<2.32.4
2.32.4
IBM Knowledge Catalog Standard Cartridge<=5.0.0, 5.0.1, 5.0.2, 5.0.3, 5.1, 5.1.1, 5,1.2, 5.1.3, 5.2.0, 5.2.1

Event History

Jun 9, 2025
CVE Published
via MITRE·05:57 PM
Data Sourced
via MITRE·05:57 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·06:15 PM
DescriptionSeverityWeakness
Data Sourced
via Red Hat·07:01 PM
DescriptionSeverityAffected Software
Advisory Published
via GitHub·07:06 PM
Data Sourced
via GitHub·07:06 PM
DescriptionSeverityWeaknessAffected Software
Mar 25, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-47081?

CVE-2024-47081 is characterized as a moderate severity vulnerability due to the potential leakage of .netrc credentials.

2

How do I fix CVE-2024-47081?

To resolve CVE-2024-47081, update the Requests library to version 2.32.4 or higher.

3

What issue does CVE-2024-47081 address?

CVE-2024-47081 addresses a URL parsing issue that may allow .netrc credentials to be leaked to third parties via specially crafted URLs.

4

Which versions of Requests are affected by CVE-2024-47081?

Requests versions prior to 2.32.4 are affected by CVE-2024-47081.

5

Is there a workaround for CVE-2024-47081 if I cannot update?

Yes, you can disable the use of the .netrc file by setting `trust_env=False` in your Requests.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203