Vulnerability · Published Feb 5, 2025 · Assigned by curl
CVE-2025-0167netrc and default credential leak
Low 3.4
In plain English
A low-severity security flaw in curl from curl. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 55% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)3.4Low
Exploit odds (30 days)0.7%top 44.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | curl | 8.12.0-r0 | ALPINE-CVE-2025-0167 |
| Alpine:v3.21 | curl | 8.12.0-r0 | ALPINE-CVE-2025-0167 |
| Alpine:v3.22 | curl | 8.12.0-r0 | ALPINE-CVE-2025-0167 |
| Alpine:v3.23 | curl | 8.12.0-r0 | ALPINE-CVE-2025-0167 |
| Alpine:v3.24 | curl | 8.12.0-r0 | ALPINE-CVE-2025-0167 |
| Debian:12 | curl | 7.88.1-10+deb12u11 | DEBIAN-CVE-2025-0167 |
| Debian:13 | curl | 8.12.0+git20250209.89ed161+ds-1 | DEBIAN-CVE-2025-0167 |
| Debian:14 | curl | 8.12.0+git20250209.89ed161+ds-1 | DEBIAN-CVE-2025-0167 |
| Ubuntu:22.04:LTS | curl | 7.81.0-1ubuntu1.23 | USN-8084-1 |
| Ubuntu:22.04:LTS | curl | 7.81.0-1ubuntu1.23 | UBUNTU-CVE-2025-0167 |
| Ubuntu:24.04:LTS | curl | 8.5.0-2ubuntu10.8 | USN-8084-1 |
| Ubuntu:24.04:LTS | curl | 8.5.0-2ubuntu10.8 | UBUNTU-CVE-2025-0167 |
| Ubuntu:25.10 | curl | 8.14.1-2ubuntu1.2 | USN-8084-1 |