Every CVE Search/ Get API key

CVE-2025-0167

netrc and default credential leak

3.4 LowFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
High
Privileges needed
None
User interaction
Required

What an attacker can affect

Confidentiality
Low
Integrity
None
Availability
None

Exploit likelihood

0.75%Up 0.7 points since Feb 6, 2025
90%50%10%1%

What each source reports

CVE List Score used 3.4

netrc and default credential leak

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.

Record
CVE-2025-0167
CVSS 3.1
3.4 LowCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:N/A:N
Updated
2026-11-02
EUVDEUVD-2025-1518 3.4

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.

Record
EUVD-2025-1518
CVSS 3.1
3.4 LowCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:N/A:N
Updated
2026-11-02
GitHub AdvisoriesGHSA-c42g-rmxf-64ch 3.4

When asked to use a `.netrc` file for credentials **and** to follow HTTP redirects, curl could...

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.

Record
GHSA-c42g-rmxf-64ch
CVSS 3.1
3.4 LowCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:N/A:N
Updated
2026-11-02
NVD 3.4

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.

Record
CVE-2025-0167
CVSS 3.1
3.4 LowCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:N/A:N
Updated
2026-11-02
OSVALPINE-CVE-2025-0167 3.4

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.

Record
ALPINE-CVE-2025-0167
CVSS 3.1
3.4 LowCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:N/A:N
Updated
2026-11-02
OSVBELL-CVE-2025-0167 3.4
Record
BELL-CVE-2025-0167
CVSS 3.1
3.4 LowCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:N/A:N
Updated
2026-11-02
Show 16 moreShow less
OSV 3.4

netrc and default credential leak

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.

Record
CVE-2025-0167
CVSS 3.1
3.4 LowCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:N/A:N
Updated
2026-11-02
OSVDEBIAN-CVE-2025-0167 3.4

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.

Record
DEBIAN-CVE-2025-0167
CVSS 3.1
3.4 LowCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:N/A:N
Updated
2026-11-02
OSVJLSEC-2026-420 3.4

When asked to use a `.netrc` file for credentials **and** to follow HTTP redirects, curl could leak...

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.

Record
JLSEC-2026-420
CVSS 3.1
3.4 LowCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:N/A:N
Updated
2026-11-02
OSVUBUNTU-CVE-2025-0167 3.4

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.

Record
UBUNTU-CVE-2025-0167
CVSS 3.1
3.4 LowCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:N/A:N
Updated
2026-11-02
OSVAZL-56478 No score

CVE-2025-0167 affecting package curl for versions less than 8.8.0-6

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.

Record
AZL-56478
Updated
2026-11-02
OSVAZL-56501 No score

CVE-2025-0167 affecting package curl for versions less than 8.11.1-3

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.

Record
AZL-56501
Updated
2026-11-02
OSVCLSA-2025-1764029592 No score

curl: Fix of CVE-2025-0167

  • CVE-2025-0167: fix password leakage issue when using .netrc file with no login or password in default entry and following HTTP redirects
Record
CLSA-2025-1764029592
Updated
2026-11-02
OSVCLSA-2025-1767083454 No score

curl: Fix of CVE-2025-0167

  • CVE-2025-0167: fix password leaking when the netrc file has a default entry that omits both login and password
Record
CLSA-2025-1767083454
Updated
2026-11-02
OSVCURL-CVE-2025-0167 No score

netrc and default credential leak

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.

Record
CURL-CVE-2025-0167
Updated
2026-11-02
OSVMGASA-2025-0123 No score

Updated curl packages fix security vulnerabilities

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. The fix was included previously as part of MGAA-2025-0004.

Record
MGASA-2025-0123
Updated
2026-11-02
OSVSUSE-SU-2025:0369-1 No score

Security update for curl

This update for curl fixes the following issues:

  • CVE-2025-0725: Fixed gzip integer overflow (bsc#1236590)
  • CVE-2025-0167: Fixed netrc and default credential leak (bsc#1236588)
Record
SUSE-SU-2025:0369-1
Updated
2026-11-02
OSVSUSE-SU-2025:0370-1 No score

Security update for curl

This update for curl fixes the following issues:

  • CVE-2025-0725: Fixed gzip integer overflow (bsc#1236590)
  • CVE-2025-0167: Fixed netrc and default credential leak (bsc#1236588)
Record
SUSE-SU-2025:0370-1
Updated
2026-11-02
OSVSUSE-SU-2025:0371-1 No score

Security update for curl

This update for curl fixes the following issues:

  • CVE-2025-0725: Fixed gzip integer overflow (bsc#1236590)
  • CVE-2025-0167: Fixed netrc and default credential leak (bsc#1236588)
Record
SUSE-SU-2025:0371-1
Updated
2026-11-02
OSVSUSE-SU-2025:0372-1 No score

Security update for curl

This update for curl fixes the following issues:

  • CVE-2025-0725: Fixed gzip integer overflow (bsc#1236590)
  • CVE-2025-0167: Fixed netrc and default credential leak (bsc#1236588)
Record
SUSE-SU-2025:0372-1
Updated
2026-11-02
OSVSUSE-SU-2025:20144-1 No score

Security update for curl

This update for curl fixes the following issues:

Security issues fixed:

  • CVE-2025-0725: Fixed gzip integer overflow (bsc#1236590)
  • CVE-2025-0167: Fixed netrc and default credential leak (bsc#1236588)

Other issues fixed:

  • Make sure the TLS handshake after a successful STARTTLS command is fully done before further sending/receiving on the connection. (bsc#1235151)
Record
SUSE-SU-2025:20144-1
Updated
2026-11-02
OSVUSN-8084-1 No score

curl vulnerabilities

Zhicheng Chen discovered that curl could incorrectly reuse the wrong connection for Negotiate-authenticated HTTP or HTTPS requests. This could result in the use of credentials from a different connection, contrary to expectations. (CVE-2026-1965)

It was discovered that curl incorrectly leaked OAuth2 bearer tokens when following a redirect. This could result in tokens being sent to the wrong host, contrary to expectations. (CVE-2026-3783)

Muhamad Arga Reksapati discovered that curl incorrectly reused existing HTTP proxy connections even if the request used different credentials. This could result in the use of incorrect credentials, contrary to expectations. (CVE-2026-3784)

Daniel Wade discovered that curl incorrectly handled certain memory operations when doing a second SMB request to the same host. An attacker could use this issue to cause curl to crash, resulting in a denial of service, or possibly execute arbitrary code. This issue only affected Ubuntu 25.10. (CVE-2026-3805)

Yihang Zhou discovered that curl incorrectly reused .netrc file credentials when following redirects. This could result in the use of credentials for a different host, contrary to expectations. This issue only affected Ubuntu 22.04 LTS and Ubuntu 24.04 LTS. (CVE-2025-0167)

Record
USN-8084-1
Updated
2026-11-02

Affected products

Show 24 moreShow less

Affected packages

Affected packages
PackageAffectedFixed
curl
Alpine:v3.18
7.76.0 up to 8.12.0-r0
8.12.0-r0
curl
Alpine:v3.19
7.76.0 up to 8.12.0-r0
8.12.0-r0
curl
Alpine:v3.20
7.76.0 up to 8.12.0-r0
8.12.0-r0
curl
Alpine:v3.21
7.76.0 up to 8.12.0-r0
8.12.0-r0
curl
Alpine:v3.22
7.76.0 up to 8.12.0-r0
8.12.0-r0
curl
Alpine:v3.23
7.76.0 up to 8.12.0-r0
8.12.0-r0
curl
Alpine:v3.24
7.76.0 up to 8.12.0-r0
8.12.0-r0
curl
Azure Linux:2
before 8.8.0-6
8.8.0-6
curl
Azure Linux:3
before 8.11.1-3
8.11.1-3
curl
Alpaquita:23
8.1.0-r2 up to 8.9.1-r2
8.9.1-r2
Show 44 moreShow less
Affected packages
PackageAffectedFixed
curl
Alpaquita:stream
8.1.2-r0 up to 8.12.0-r0
8.12.0-r0
curl
BellSoft Hardened Containers:stream
8.1.2-r0 up to 8.12.0-r0
8.12.0-r0
curl
TuxCare:AlmaLinux:9.2
before 7.76.1-23.el9_2.4.tuxcare.els4
7.76.1-23.el9_2.4.tuxcare.els4
curl-minimal
TuxCare:AlmaLinux:9.2
before 7.76.1-23.el9_2.4.tuxcare.els4
7.76.1-23.el9_2.4.tuxcare.els4
libcurl
TuxCare:AlmaLinux:9.2
before 7.76.1-23.el9_2.4.tuxcare.els4
7.76.1-23.el9_2.4.tuxcare.els4
libcurl-devel
TuxCare:AlmaLinux:9.2
before 7.76.1-23.el9_2.4.tuxcare.els4
7.76.1-23.el9_2.4.tuxcare.els4
libcurl-minimal
TuxCare:AlmaLinux:9.2
before 7.76.1-23.el9_2.4.tuxcare.els4
7.76.1-23.el9_2.4.tuxcare.els4
curl
TuxCare:AlmaLinux:9.6
before 7.76.1-31.el9_6.1.tuxcare.els1
7.76.1-31.el9_6.1.tuxcare.els1
curl-minimal
TuxCare:AlmaLinux:9.6
before 7.76.1-31.el9_6.1.tuxcare.els1
7.76.1-31.el9_6.1.tuxcare.els1
libcurl
TuxCare:AlmaLinux:9.6
before 7.76.1-31.el9_6.1.tuxcare.els1
7.76.1-31.el9_6.1.tuxcare.els1
libcurl-devel
TuxCare:AlmaLinux:9.6
before 7.76.1-31.el9_6.1.tuxcare.els1
7.76.1-31.el9_6.1.tuxcare.els1
libcurl-minimal
TuxCare:AlmaLinux:9.6
before 7.76.1-31.el9_6.1.tuxcare.els1
7.76.1-31.el9_6.1.tuxcare.els1
curl
Debian:12
before 7.88.1-10+deb12u11, plus listed versions
7.88.1-107.88.1-10+deb12u17.88.1-10+deb12u1~bpo11+17.88.1-10+deb12u27.88.1-10+deb12u3
Show 9 moreShow less
7.88.1-10+deb12u3~bpo11+17.88.1-10+deb12u47.88.1-10+deb12u57.88.1-10+deb12u5~bpo11+17.88.1-10+deb12u67.88.1-10+deb12u6~bpo11+17.88.1-10+deb12u77.88.1-10+deb12u87.88.1-10+deb12u9
7.88.1-10+deb12u11
curl
Debian:13
before 8.12.0+git20250209.89ed161+ds-1
8.12.0+git20250209.89ed161+ds-1
curl
Debian:14
before 8.12.0+git20250209.89ed161+ds-1
8.12.0+git20250209.89ed161+ds-1
CURL_jll
Julia
before 8.13.0+0
8.13.0+0
LibCURL_jll
Julia
7.81.0+0 up to 8.12.0+0
8.12.0+0
curl
Mageia:9
before 7.88.1-4.6.mga9
7.88.1-4.6.mga9
curl
SUSE:Linux Enterprise Module for Basesystem 15 SP6
before 8.6.0-150600.4.21.1
8.6.0-150600.4.21.1
curl
openSUSE:Leap 15.6
before 8.6.0-150600.4.21.1
8.6.0-150600.4.21.1
curl
SUSE:Linux Enterprise Installer Updates 15 SP4
before 8.0.1-150400.5.62.1
8.0.1-150400.5.62.1
curl
SUSE:Linux Enterprise Installer Updates 15 SP5
before 8.0.1-150400.5.62.1
8.0.1-150400.5.62.1
curl
SUSE:Linux Enterprise Micro 5.3
before 8.0.1-150400.5.62.1
8.0.1-150400.5.62.1
curl
SUSE:Linux Enterprise Micro 5.4
before 8.0.1-150400.5.62.1
8.0.1-150400.5.62.1
curl
SUSE:Linux Enterprise Micro 5.5
before 8.0.1-150400.5.62.1
8.0.1-150400.5.62.1
curl
SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS
before 8.0.1-150400.5.62.1
8.0.1-150400.5.62.1
curl
SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS
before 8.0.1-150400.5.62.1
8.0.1-150400.5.62.1
curl
SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS
before 8.0.1-150400.5.62.1
8.0.1-150400.5.62.1
curl
SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS
before 8.0.1-150400.5.62.1
8.0.1-150400.5.62.1
curl
SUSE:Linux Enterprise Server 15 SP4-LTSS
before 8.0.1-150400.5.62.1
8.0.1-150400.5.62.1
curl
SUSE:Linux Enterprise Server 15 SP5-LTSS
before 8.0.1-150400.5.62.1
8.0.1-150400.5.62.1
curl
SUSE:Manager Server 4.3
before 8.0.1-150400.5.62.1
8.0.1-150400.5.62.1
curl
SUSE:Linux Enterprise Server 12 SP5-LTSS
before 8.0.1-11.105.1
8.0.1-11.105.1
curl
SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5
before 8.0.1-11.105.1
8.0.1-11.105.1
curl
SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS
before 7.66.0-150200.4.84.1
7.66.0-150200.4.84.1
curl
SUSE:Linux Enterprise Server 15 SP3-LTSS
before 7.66.0-150200.4.84.1
7.66.0-150200.4.84.1
curl
SUSE:Linux Enterprise Server for SAP Applications 15 SP3
before 7.66.0-150200.4.84.1
7.66.0-150200.4.84.1
curl
SUSE:Linux Enterprise Micro 5.1
before 7.66.0-150200.4.84.1
7.66.0-150200.4.84.1
curl
SUSE:Linux Enterprise Micro 5.2
before 7.66.0-150200.4.84.1
7.66.0-150200.4.84.1
curl
SUSE:Enterprise Storage 7.1
before 7.66.0-150200.4.84.1
7.66.0-150200.4.84.1
curl
SUSE:Linux Micro 6.0
before 8.6.0-6.1
8.6.0-6.1
curl
Ubuntu:22.04:LTS
before 7.81.0-1ubuntu1.23, plus listed versions
7.74.0-1.3ubuntu27.74.0-1.3ubuntu37.80.0-37.81.0-17.81.0-1ubuntu1.1
Show 18 moreShow less
7.81.0-1ubuntu1.27.81.0-1ubuntu1.37.81.0-1ubuntu1.47.81.0-1ubuntu1.67.81.0-1ubuntu1.77.81.0-1ubuntu1.87.81.0-1ubuntu1.107.81.0-1ubuntu1.117.81.0-1ubuntu1.137.81.0-1ubuntu1.147.81.0-1ubuntu1.157.81.0-1ubuntu1.167.81.0-1ubuntu1.177.81.0-1ubuntu1.187.81.0-1ubuntu1.197.81.0-1ubuntu1.207.81.0-1ubuntu1.217.81.0-1ubuntu1.22
7.81.0-1ubuntu1.23
curl
Ubuntu:24.04:LTS
before 8.5.0-2ubuntu10.8, plus listed versions
8.2.1-1ubuntu38.2.1-1ubuntu3.18.4.0-2ubuntu18.5.0-2ubuntu18.5.0-2ubuntu2
Show 10 moreShow less
8.5.0-2ubuntu88.5.0-2ubuntu98.5.0-2ubuntu108.5.0-2ubuntu10.18.5.0-2ubuntu10.28.5.0-2ubuntu10.38.5.0-2ubuntu10.48.5.0-2ubuntu10.58.5.0-2ubuntu10.68.5.0-2ubuntu10.7
8.5.0-2ubuntu10.8
curl
Ubuntu:25.10
before 8.14.1-2ubuntu1.2, plus listed versions
8.12.1-3ubuntu18.13.0-5ubuntu18.14.1-1ubuntu28.14.1-1ubuntu38.14.1-2ubuntu18.14.1-2ubuntu1.1
8.14.1-2ubuntu1.2

History

History
RecordedChangedSources
first indexedCVE List, EUVD, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2025-0167 is a low vulnerability (CVSS 3.4) in Curl, published February 5, 2025. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.75%, the 54th percentile. Fixed in curl 8.12.0-r0.

References

Show 29 moreShow less
MoveEnter Open