CVE-2025-0167 netrc and default credential leak
Attackers can steal credentials from netrc files when curl follows redirects under specific default entry conditions.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2025-0167?
CVE-2025-0167 is a low-severity vulnerability in Haxx Curl, published on 5 Feb 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official 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.
Which versions are affected by CVE-2025-0167?
It affects 16 products.
Products include Haxx Curl, Netapp Bootstrap Os, Netapp Element Software, Netapp H300s Firmware, Netapp H410c Firmware, Netapp H410s Firmware and 10 more.
How do I fix CVE-2025-0167?
Upgrade to a fixed version.
Is CVE-2025-0167 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-0167 exists.
Other vulnerabilities in Haxx Curl
Sources
Also known as ALPINE-CVE-2025-0167, AZL-56478, AZL-56501, BELL-CVE-2025-0167, CLEANSTART-2026-GE06685, CLSA-2025-1764029592 and 7 more.