CVE-2025-0167: netrc and default credential leak
netrc and default credential leak
Other sources
When asked to use a .netrc file for credentials and to follow HTTP redirects, curl could leak the password used for the first host to the followed-to host under certain circumstances.
This flaw only manifests itself if the netrc file has a default entry that omits both login and password. A rare circumstance.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 8.8.0-6 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 8.11.1-3
Event History
Frequently Asked Questions
What is the severity of CVE-2025-0167?
CVE-2025-0167 is considered a medium severity vulnerability due to the potential leakage of sensitive credentials.
How do I fix CVE-2025-0167?
To fix CVE-2025-0167, ensure that the `.netrc` file does not have a `default` entry that omits both the login and password.
Who is affected by CVE-2025-0167?
CVE-2025-0167 affects users of the curl tool when configured to use a `.netrc` file for credentials while following HTTP redirects.
What are the consequences of CVE-2025-0167?
The consequence of CVE-2025-0167 is that passwords used for one host may be inadvertently sent to a different host during HTTP redirects.
When was CVE-2025-0167 disclosed?
CVE-2025-0167 was disclosed in 2025 as part of ongoing security assessments for the curl tool.