Bug 2372474
| Summary: | CVE-2024-47081 python-pip: Requests vulnerable to .netrc credentials leak via malicious URLs [fedora-41] | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Michal Findra <mfindra> |
| Component: | python-pip | Assignee: | Lumír Balhar <lbalhar> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 41 | CC: | ksurma, lbalhar, metherid, mhroncok, python-maint, python-packagers-sig, TicoTimo, torsava |
| Target Milestone: | --- | Keywords: | Security, SecurityTracking |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | {"flaws": ["8650814a-ebe1-4a16-bf17-ff3f80bab2f3"]} | ||
| Fixed In Version: | Doc Type: | --- | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2025-07-22 15:51:35 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 2371272 | ||
|
Description
Michal Findra
2025-06-12 14:20:06 UTC
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). |