First published: Wed Feb 05 2025(Updated: )
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.
Credit: 2499f714-1537-4658-8207-48ae4bb9eae9
Affected Software | Affected Version | How to fix |
---|---|---|
Curl |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2025-0167 is considered a medium severity vulnerability due to the potential leakage of sensitive credentials.
To fix CVE-2025-0167, ensure that the `.netrc` file does not have a `default` entry that omits both the login and password.
CVE-2025-0167 affects users of the curl tool when configured to use a `.netrc` file for credentials while following HTTP redirects.
The consequence of CVE-2025-0167 is that passwords used for one host may be inadvertently sent to a different host during HTTP redirects.
CVE-2025-0167 was disclosed in 2025 as part of ongoing security assessments for the curl tool.