Skip to content
OpenAdvisories
Low · 3.4 CVE-2025-0167 EUVD-2025-1518GHSA-c42g-rmxf-64ch

netrc and default credential leak

Published Feb 5, 2025 · Updated Oct 15, 2026 · Assigned by curl

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

VendorProductAffectedFixed
curl curl 8.11.1 – ≤ 8.11.1, 8.11.0 – ≤ 8.11.0, 8.10.1 – ≤ 8.10.1, 8.10.0 – ≤ 8.10.0, 8.9.1 – ≤ 8.9.1, 8.9.0 – ≤ 8.9.0, 8.8.0 – ≤ 8.8.0, 8.7.1 – ≤ 8.7.1, 8.7.0 – ≤ 8.7.0, 8.6.0 – ≤ 8.6.0, 8.5.0 – ≤ 8.5.0, 8.4.0 – ≤ 8.4.0, 8.3.0 – ≤ 8.3.0, 8.2.1 – ≤ 8.2.1, 8.2.0 – ≤ 8.2.0, 8.1.2 – ≤ 8.1.2, 8.1.1 – ≤ 8.1.1, 8.… —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 curl 8.12.0+git20250209.89ed161+ds-1 —
Debian 13 curl 8.12.0+git20250209.89ed161+ds-1 —
Debian 12 curl 7.88.1-10+deb12u11 —
ReleasePackageFixed inAdvisory
Ubuntu 25.10 curl 8.14.1-2ubuntu1.2 USN-8084-1
Ubuntu 24.04 LTS curl 8.5.0-2ubuntu10.8 USN-8084-1
Ubuntu 22.04 LTS curl 7.81.0-1ubuntu1.23 USN-8084-1
ReleasePackageFixed inAdvisory
SLES 15 SP6 curl 8.6.0-150600.4.21.1 SUSE-SU-2025:0369-1
SLES 15 SP5 curl 8.0.1-150400.5.62.1 SUSE-SU-2025:0370-1
SLES 15 SP4 curl 8.0.1-150400.5.62.1 SUSE-SU-2025:0370-1
SLES 15 SP3 curl 7.66.0-150200.4.84.1 SUSE-SU-2025:0372-1
SLES 12 SP5 curl 8.0.1-11.105.1 SUSE-SU-2025:0371-1
Show 14 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP3 curl 7.66.0-150200.4.84.1 SUSE-SU-2025:0372-1
SLE Micro 6.0 curl 8.6.0-6.1 SUSE-SU-2025:20144-1
SLE Micro 5.5 curl 8.0.1-150400.5.62.1 SUSE-SU-2025:0370-1
SLE Micro 5.4 curl 8.0.1-150400.5.62.1 SUSE-SU-2025:0370-1
SLE Micro 5.3 curl 8.0.1-150400.5.62.1 SUSE-SU-2025:0370-1
SLE Micro 5.2 curl 7.66.0-150200.4.84.1 SUSE-SU-2025:0372-1
SLE Micro 5.1 curl 7.66.0-150200.4.84.1 SUSE-SU-2025:0372-1
SLE HPC 15 SP5 curl 8.0.1-150400.5.62.1 SUSE-SU-2025:0370-1
SLE HPC 15 SP4 curl 8.0.1-150400.5.62.1 SUSE-SU-2025:0370-1
SLE HPC 15 SP3 curl 7.66.0-150200.4.84.1 SUSE-SU-2025:0372-1
SUSE Manager Server 4.3 curl 8.0.1-150400.5.62.1 SUSE-SU-2025:0370-1
SUSE Linux Enterprise Installer Updates 15 SP5 curl 8.0.1-150400.5.62.1 SUSE-SU-2025:0370-1
SUSE Linux Enterprise Installer Updates 15 SP4 curl 8.0.1-150400.5.62.1 SUSE-SU-2025:0370-1
SUSE Enterprise Storage 7.1 curl 7.66.0-150200.4.84.1 SUSE-SU-2025:0372-1
ReleasePackageFixed inAdvisory
openSUSE Leap 15.6 curl 8.6.0-150600.4.21.1 SUSE-SU-2025:0369-1
ReleasePackageFixed inAdvisory
Alpine v3.24 curl 8.12.0-r0 —
Alpine v3.23 curl 8.12.0-r0 —
Alpine v3.22 curl 8.12.0-r0 —
Alpine v3.21 curl 8.12.0-r0 —
Alpine v3.20 curl 8.12.0-r0 —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 curl 8.12.0-r0 —
Alpine v3.18 curl 8.12.0-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 curl +4 8.15.0-4.amzn2023.0.1 ALAS2023-2025-1351

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 curl 8.11.1-3 —
Azure Linux 2 (CBL-Mariner) curl 8.8.0-6 —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling curl 8.12.0-r0 —

Advisories 13

References