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.
Published: 2026-05-13
Score: 5.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Sensitive Information Disclosure
Action: Patch Immediately
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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

Tue, 15 Sep 2026 06:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-200

Thu, 14 May 2026 14:30:00 +0000

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

Wed, 13 May 2026 14:15:00 +0000

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'}


Wed, 13 May 2026 09:15:00 +0000

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

Fri, 01 May 2026 01:45:00 +0000

Type Values Removed Values Added
First Time appeared Curl
Curl libcurl
Vendors & Products Curl
Curl libcurl

Fri, 01 May 2026 00:15:00 +0000

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


cve-icon MITRE

Status: PUBLISHED

Assigner: curl

Published:

Updated: 2026-09-15T06:03:05.855Z

Reserved: 2026-04-16T14:48:02.991Z

Link: CVE-2026-6429

cve-icon Vulnrichment

Updated: 2026-05-13T14:03:47.972Z

cve-icon NVD

Status : Modified

Published: 2026-05-13T13:01:56.930

Modified: 2026-09-15T07:16:29.557

Link: CVE-2026-6429

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-04-29T00:00:00Z

Links: CVE-2026-6429 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-09-21T08:45:12Z

Weaknesses
  • CWE-200

    Exposure of Sensitive Information to an Unauthorized Actor

  • CWE-201

    Insertion of Sensitive Information Into Sent Data

  • NVD-CWE-noinfo