Description
When asking curl to use a `.netrc` file to find credentials and at the same
time specifying a URL with a username(without a password), like
`https://user@example.com/`, curl could wrongly get and use the password for
*another* user set in the `.netrc` file for that host if such a one exists and
there is no match for the specified user.
Published: 2026-07-03
Score: 9.1 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

When cURL is instructed to retrieve credentials from a .netrc file while processing a URL that supplies a username but omits a password—such as https://user@example.com/—it may mistakenly select the password for a different user defined for that host in the .netrc file when no matching entry exists for the specified user. This flaw, classified as CWE‑289, results in unauthorized disclosure of a credential rather than code execution.

Affected Systems

The bug affects the cURL command‑line client distributed by the curl project. All releases that support .netrc parsing are potentially impacted; the advisory does not restrict the issue to specific versions or configuration flags. Any installation of cURL that is invoked with the --netrc option and processes URLs containing a username but no password is at risk.

Risk and Exploitability

The CVSS score of 9.1 indicates a high severity vulnerability. The EPSS score of less than 1 % suggests that, at the time of this analysis, exploitation is unlikely, and the flaw is not listed in the CISA KEV catalog. The likely attack vector is an attacker supplying a crafted URL that includes a username but omits a password to a local or controlled instance of cURL with the --netrc option enabled; this inference is based on the description. Because the flaw only discloses credentials, it does not allow code execution or privilege escalation, but it does compromise confidentiality whenever an attacker can influence the URL passed to cURL.

Generated by OpenCVE AI on August 1, 2026 at 20:45 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade cURL to a version that includes the CVE‑2026‑8926 fix.
  • Avoid invoking cURL with the --netrc option when the URL contains a username but no password; provide full credentials or disable netrc parsing for that request.
  • Secure the .netrc files on the system by ensuring they are accessible only to trusted users, and remove or redact entries for hosts that could be queried by untrusted URL inputs.

Generated by OpenCVE AI on August 1, 2026 at 20:45 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Ubuntu USN Ubuntu USN USN-8487-1 curl vulnerabilities
History

Tue, 07 Jul 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-289
References
Metrics threat_severity

None

threat_severity

Moderate


Mon, 06 Jul 2026 17:30:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

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

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Mon, 06 Jul 2026 01:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-200

Sun, 05 Jul 2026 05:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-200

Sat, 04 Jul 2026 12:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-200

Sat, 04 Jul 2026 05:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-200

Fri, 03 Jul 2026 21:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-200

Fri, 03 Jul 2026 10:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-200

Fri, 03 Jul 2026 08:00:00 +0000

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

Fri, 03 Jul 2026 06:45:00 +0000

Type Values Removed Values Added
Description When asking curl to use a `.netrc` file to find credentials and at the same time specifying a URL with a username(without a password), like `https://user@example.com/`, curl could wrongly get and use the password for *another* user set in the `.netrc` file for that host if such a one exists and there is no match for the specified user.
Title password leak with netrc and user in URL
References

cve-icon MITRE

Status: PUBLISHED

Assigner: curl

Published:

Updated: 2026-07-06T17:02:33.061Z

Reserved: 2026-05-19T08:11:58.393Z

Link: CVE-2026-8926

cve-icon Vulnrichment

Updated: 2026-07-06T17:02:29.139Z

cve-icon NVD

Status : Analyzed

Published: 2026-07-03T07:16:25.037

Modified: 2026-07-07T23:02:54.490

Link: CVE-2026-8926

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-07-03T06:15:45Z

Links: CVE-2026-8926 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-01T21:00:08Z

Weaknesses
  • CWE-289

    Authentication Bypass by Alternate Name

  • CWE-522

    Insufficiently Protected Credentials