Skip to content
CVE PROGRAM SOURCE RECORD3.4 Low

CVE-2025-0167

netrc and default credential leak

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

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

curl curl

Default version status: unaffected

  • 8.11.1 to ≤ 8.11.1affected
  • 8.11.0 to ≤ 8.11.0affected
  • 8.10.1 to ≤ 8.10.1affected
  • 8.10.0 to ≤ 8.10.0affected
  • 8.9.1 to ≤ 8.9.1affected
  • 8.9.0 to ≤ 8.9.0affected
  • 8.8.0 to ≤ 8.8.0affected
  • 8.7.1 to ≤ 8.7.1affected
  • 8.7.0 to ≤ 8.7.0affected
  • 8.6.0 to ≤ 8.6.0affected
  • 8.5.0 to ≤ 8.5.0affected
  • 8.4.0 to ≤ 8.4.0affected
  • 8.3.0 to ≤ 8.3.0affected
  • 8.2.1 to ≤ 8.2.1affected
  • 8.2.0 to ≤ 8.2.0affected
  • 8.1.2 to ≤ 8.1.2affected
  • 8.1.1 to ≤ 8.1.1affected
  • 8.1.0 to ≤ 8.1.0affected
  • 8.0.1 to ≤ 8.0.1affected
  • 8.0.0 to ≤ 8.0.0affected
  • 7.88.1 to ≤ 7.88.1affected
  • 7.88.0 to ≤ 7.88.0affected
  • 7.87.0 to ≤ 7.87.0affected
  • 7.86.0 to ≤ 7.86.0affected
  • 7.85.0 to ≤ 7.85.0affected
  • 7.84.0 to ≤ 7.84.0affected
  • 7.83.1 to ≤ 7.83.1affected
  • 7.83.0 to ≤ 7.83.0affected
  • 7.82.0 to ≤ 7.82.0affected
  • 7.81.0 to ≤ 7.81.0affected
  • 7.80.0 to ≤ 7.80.0affected
  • 7.79.1 to ≤ 7.79.1affected
  • 7.79.0 to ≤ 7.79.0affected
  • 7.78.0 to ≤ 7.78.0affected
  • 7.77.0 to ≤ 7.77.0affected
  • 7.76.1 to ≤ 7.76.1affected
  • 7.76.0 to ≤ 7.76.0affected

References