CVEfocus › CVE database › CVE-2025-0167

CVE-2025-0167netrc and default credential leak

CVSS 3.4 LowEPSS 0.7% (higher than 55% of CVEs)Published 2025-02-05Updated 2026-10-15Assigner: curl

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.

What to do

Fixed builds are available from Alpine, Debian, Ubuntu: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

12Fixed
1Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 25.10curlNot affected
vulnerable_code_not_present
Ubuntu 24.04curlFixed8.5.0-2ubuntu10.8UBUNTU-CVE-2025-0167
Ubuntu 22.04curlFixed7.81.0-1ubuntu1.23UBUNTU-CVE-2025-0167
Debian 14curlFixed8.12.0+git20250209.89ed161+ds-1DEBIAN-CVE-2025-0167
Debian 13curlFixed8.12.0+git20250209.89ed161+ds-1DEBIAN-CVE-2025-0167
Debian 12curlFixed7.88.1-10+deb12u11DEBIAN-CVE-2025-0167
Alpine Linux 3.24curlFixed8.12.0-r0ALPINE-CVE-2025-0167
Alpine Linux 3.23curlFixed8.12.0-r0ALPINE-CVE-2025-0167
Alpine Linux 3.22curlFixed8.12.0-r0ALPINE-CVE-2025-0167
Alpine Linux 3.21curlFixed8.12.0-r0ALPINE-CVE-2025-0167
Alpine Linux 3.20curlFixed8.12.0-r0ALPINE-CVE-2025-0167
Alpine Linux 3.19curlFixed8.12.0-r0ALPINE-CVE-2025-0167
Alpine Linux 3.18curlFixed8.12.0-r0ALPINE-CVE-2025-0167

What the vendor says

As published in the CVE record by curl, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.