---
id: CVE-2025-0167
title: |-
  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 f…
summary: |-
  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 f…
severity: low
cvss: 3.4
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:N/A:N'
vendor: haxx
product: curl
affected:
  - 'curl >= 7.76.0, < 8.12.0'
  - h700s_firmware
  - h615c_firmware
  - h610s_firmware
  - h610c_firmware
  - h500s_firmware
  - h410s_firmware
  - h410c_firmware
  - h300s_firmware
  - bootstrap_os
  - element_software
  - ontap = 9
  - ontap_select_deploy_administration_utility
  - ontap_tools = 9
  - solidfire_&_hci_management_node
  - solidfire_&_hci_storage_node
patched:
  - curl 8.12.0
published: '2025-02-05'
updated: '2026-10-15'
sourceUpdated: '2026-10-15T02:17:21.680'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-0167'
references:
  - url: 'https://curl.se/docs/CVE-2025-0167.html'
    label: 2499f714-1537-4658-8207-48ae4bb9eae9
  - url: 'https://curl.se/docs/CVE-2025-0167.json'
    label: 2499f714-1537-4658-8207-48ae4bb9eae9
  - url: 'https://hackerone.com/reports/2917232'
    label: 2499f714-1537-4658-8207-48ae4bb9eae9
  - url: 'https://security.netapp.com/advisory/ntap-20250306-0008/'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://cert-portal.siemens.com/productcert/html/ssa-089022.html'
    label: 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
  - url: 'https://cert-portal.siemens.com/productcert/html/ssa-398330.html'
    label: 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
  - url: 'https://curl.se/docs/CVE-2025-0167.html'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
tags:
  - nvd
  - cve.org
  - exploit-available
epss: 0.00688
epssPercentile: 0.5162
ingestedAt: '2026-10-15T03:30:12.781Z'
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2025-02-05T15:52:41.551530Z'
cwe:
  - CWE-200
---

## Overview

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

- `curl >= 7.76.0, < 8.12.0`
- `h700s_firmware`
- `h615c_firmware`
- `h610s_firmware`
- `h610c_firmware`
- `h500s_firmware`
- `h410s_firmware`
- `h410c_firmware`
- `h300s_firmware`
- `bootstrap_os`
- `element_software`
- `ontap = 9`
- `ontap_select_deploy_administration_utility`
- `ontap_tools = 9`
- `solidfire_&_hci_management_node`
- `solidfire_&_hci_storage_node`

## Remediation

Upgrade past the affected range:

- `curl 8.12.0`
