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

EcosystemPackageFixed inAdvisory
Alpine:v3.20curl8.12.0-r0ALPINE-CVE-2025-0167
Alpine:v3.21curl8.12.0-r0ALPINE-CVE-2025-0167
Alpine:v3.22curl8.12.0-r0ALPINE-CVE-2025-0167
Alpine:v3.23curl8.12.0-r0ALPINE-CVE-2025-0167
Alpine:v3.24curl8.12.0-r0ALPINE-CVE-2025-0167
Debian:12curl7.88.1-10+deb12u11DEBIAN-CVE-2025-0167
Debian:13curl8.12.0+git20250209.89ed161+ds-1DEBIAN-CVE-2025-0167
Debian:14curl8.12.0+git20250209.89ed161+ds-1DEBIAN-CVE-2025-0167
Ubuntu:22.04:LTScurl7.81.0-1ubuntu1.23USN-8084-1
Ubuntu:22.04:LTScurl7.81.0-1ubuntu1.23UBUNTU-CVE-2025-0167
Ubuntu:24.04:LTScurl8.5.0-2ubuntu10.8USN-8084-1
Ubuntu:24.04:LTScurl8.5.0-2ubuntu10.8UBUNTU-CVE-2025-0167
Ubuntu:25.10curl8.14.1-2ubuntu1.2USN-8084-1

Affected products (as reported)

VendorProductVersions
curl curl 8.11.1 – through 8.11.18.11.0 – through 8.11.08.10.1 – through 8.10.18.10.0 – through 8.10.08.9.1 – through 8.9.18.9.0 – through 8.9.08.8.0 – through 8.8.08.7.1 – through 8.7.1

References