CVE-2025-0167

netrc and default credential leak

State
Published
Severity
3.4 Low
Published
Feb 5, 2025
Updated
Oct 15, 2026
Reserved
Dec 31, 2024

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.13.4 LowCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:N/A:NCISA-ADP

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
curlcurl
  • 8.11.1 through 8.11.1Affected
  • 8.11.0 through 8.11.0Affected
  • 8.10.1 through 8.10.1Affected
  • 8.10.0 through 8.10.0Affected
  • 8.9.1 through 8.9.1Affected
  • 8.9.0 through 8.9.0Affected
  • 8.8.0 through 8.8.0Affected
  • 8.7.1 through 8.7.1Affected
  • 8.7.0 through 8.7.0Affected
  • 8.6.0 through 8.6.0Affected
  • 8.5.0 through 8.5.0Affected
  • 8.4.0 through 8.4.0Affected
  • 8.3.0 through 8.3.0Affected
  • 8.2.1 through 8.2.1Affected
  • 8.2.0 through 8.2.0Affected
  • 8.1.2 through 8.1.2Affected
  • 8.1.1 through 8.1.1Affected
  • 8.1.0 through 8.1.0Affected
  • 8.0.1 through 8.0.1Affected
  • 8.0.0 through 8.0.0Affected
  • 7.88.1 through 7.88.1Affected
  • 7.88.0 through 7.88.0Affected
  • 7.87.0 through 7.87.0Affected
  • 7.86.0 through 7.86.0Affected
  • 7.85.0 through 7.85.0Affected
  • and 12 more versions

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.