What’s Vulnerable › Vulnerabilities

CVE-2025-0167: netrc and default credential leak

Description

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.

Affected products

How to fix

Upgrade to a fixed version: curl 8.12.0. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2025-0167 or the next vulnerability affects your stack