CVE-2026-6429

netrc credential leak with reused proxy connection

Published May 13, 2026 CVSS 3.1 · 5.3 Medium EPSS < 1% KEV · Not listed
Description
When asked to both use a `.netrc` file for credentials and to follow HTTP
redirects, libcurl could leak the password used for the first host to the
followed-to host under certain circumstances.

Analysis

AI-generated

Technical impact

libcurl can leak the password stored in a .netrc file when a request that uses that file is redirected to a different host. The leak occurs under certain circumstances that are not fully detailed in the advisory. Based on the description, it is inferred that these circumstances may involve the reuse of a single HTTP proxy connection for the original and the redirected request, thereby exposing the credentials to the second host. The flaw exposes sensitive authentication information and is classified as exposure of data and information disclosure (CWE‑200, CWE‑201).

Affected Systems

The vulnerability affects the libcurl library in the curl project. Any application that links against libcurl and is configured to use a .netrc file for authentication while also following HTTP redirects is potentially at risk. No specific version numbers are supplied by the CNA, so all builds that support .netrc usage and do not isolate proxy connections before the fix should be considered at risk.

Risk and Exploitability

The CVSS score of 5.3 indicates a moderate severity. The EPSS score of <1 % suggests a very low probability of exploitation, and the vulnerability is not listed in CISA's KEV catalog. Based on the description and CVE details, it is inferred that the attacker would need to intercept or control the cleartext traffic sent through the HTTP proxy that the client reuses for the initial and redirected requests. Once the proxy traffic is observable, the leaked credentials can be captured, leading to credential theft. Because exploitation requires specific proxy conditions and a network position that sees both requests, it is inferred that the overall risk is moderate but routine remediation is recommended.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade libcurl to the latest release that includes the fix for the .netrc reuse issue.
  • Disable use of .netrc files or enforce HTTPS for all redirected requests in the application configuration.
  • Prevent proxy reuse for redirects by configuring libcurl to create a new connection for each redirected request.

Generated by OpenCVE AI on September 21, 2026 at 08:44 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8227-1 curl vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-200
Type Values Removed Values Added
First Time appeared Haxx
Haxx curl
Weaknesses NVD-CWE-noinfo
CPEs cpe:2.3:a:haxx:curl:*:*:*:*:*:*:*:*
Vendors & Products Haxx
Haxx curl
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N'}

Type Values Removed Values Added
Description A flaw was found in libcurl. When configured to use a .netrc file for credentials and follow HTTP redirects, libcurl can inadvertently send the password from the initial connection to the redirected host. This sensitive information disclosure occurs when both the original and redirect URLs use clear text HTTP, are performed over the same HTTP proxy, and the same connection is reused. This vulnerability, categorized as an Exposure of Sensitive Information to an Unauthorized Actor (CWE-200), could allow an attacker to obtain user credentials. When asked to both use a `.netrc` file for credentials and to follow HTTP redirects, libcurl could leak the password used for the first host to the followed-to host under certain circumstances.
Title curl: libcurl: Credential leak via reused proxy connection during HTTP redirects netrc credential leak with reused proxy connection
References
Type Values Removed Values Added
First Time appeared Curl
Curl libcurl
Vendors & Products Curl
Curl libcurl
Type Values Removed Values Added
Description A flaw was found in libcurl. When configured to use a .netrc file for credentials and follow HTTP redirects, libcurl can inadvertently send the password from the initial connection to the redirected host. This sensitive information disclosure occurs when both the original and redirect URLs use clear text HTTP, are performed over the same HTTP proxy, and the same connection is reused. This vulnerability, categorized as an Exposure of Sensitive Information to an Unauthorized Actor (CWE-200), could allow an attacker to obtain user credentials.
Title curl: libcurl: Credential leak via reused proxy connection during HTTP redirects
Weaknesses CWE-201
References
Metrics threat_severity

None

cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N'}

threat_severity

Moderate

Weaknesses
  • CWE-200

    Exposure of Sensitive Information to an Unauthorized Actor

  • CWE-201

    Insertion of Sensitive Information Into Sent Data

  • NVD-CWE-noinfo

Sources

Status
PUBLISHED
Assigner
curl
Published
Updated
Sep 15, 2026, 6:03 AM
Reserved
Apr 16, 2026, 2:48 PM
Status
Modified
Published
May 13, 2026, 1:01 PM
Modified
Nov 11, 2026, 8:10 PM
Severity
Moderate
Public date
Apr 29, 2026, 12:00 AM