Bug 2372475 - CVE-2024-47081 python3.6: Requests vulnerable to .netrc credentials leak via malicious URLs [fedora-41]
Summary: CVE-2024-47081 python3.6: Requests vulnerable to .netrc credentials leak via ...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: python3.6
Version: 41
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Lumír Balhar
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: {"flaws": ["8650814a-ebe1-4a16-bf17-f...
Depends On:
Blocks: CVE-2024-47081
TreeView+ depends on / blocked
 
Reported: 2025-06-12 14:20 UTC by Michal Findra
Modified: 2025-07-25 10:06 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-07-25 10:06:54 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Michal Findra 2025-06-12 14:20:11 UTC
More information about this security flaw is available in the following bug:

https://bugzilla.redhat.com/show_bug.cgi?id=2371272

Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

Comment 1 Lumír Balhar 2025-07-25 10:06:54 UTC
Requests is bundled in pip, and that is part of the ensurepip package in the Python standard library.

I've verified that there is no way to exploit the vulnerability in the bundled requests library via any calls to pip. The vulnerable function (fixed in https://github.com/psf/requests/commit/96ba401c1296ab1dda74a2365ef36d88f7d144ef) is there, but it is never used because pip has the logic for loading usernames and passwords from netrc files implemented in MultiDomainBasicAuth class (in _internal/network/auth.py or download.py in older releases of pip).


Note You need to log in before you can comment on or make changes to this bug.