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 asked to use a .netrc file to find credentials and a URL includes a username but no password, such as https://user@example.com/, cURL may incorrectly use the password for another user defined for that host. If multiple users are defined for that host, the password for a different user may be used, resulting in credential disclosure. This flaw is a credential‑handling problem (CWE‑289).

Affected Systems

The vulnerability affects the cURL command‑line client distributed by the curl project. All releases that support .netrc parsing are potentially impacted, as the advisory does not limit the scope to specific versions or configuration flags. Any installation of cURL invoked with the --netrc option and processing URLs that include a username without a password is at risk.

Risk and Exploitability

With the high CVSS score of 9.1 the vulnerability is still rated severe, though the EPSS score remains very low. The issue is not listed in the CISA KEV catalog. The updated description confirms that an attacker would need to supply a crafted URL containing a username without a password to a local or controlled instance of cURL. The flaw does not provide code execution or privileged escalation; it only impairs confidentiality by exposing stored credentials. The overall risk is high for environments that store sensitive credentials in .netrc files and allow untrusted input to influence cURL calls.

Generated by OpenCVE AI on July 21, 2026 at 10:13 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the cURL client to the latest version that includes the fix for CVE‑2026‑8926.
  • Avoid providing URLs that contain a username but omit a password when the --netrc option is active; supply the full credentials or avoid netrc parsing for that request.
  • Secure or remove .netrc files from the system, ensuring that only trusted users have access and that entries for hosts that may be queried with usernames lacking passwords do not exist.

Generated by OpenCVE AI on July 21, 2026 at 10:13 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

No data.

cve-icon Redhat

Severity : Moderate

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

Links: CVE-2026-8926 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-07-21T10:15:02Z

Weaknesses
  • CWE-289

    Authentication Bypass by Alternate Name