CVE-2026-8926

password leak with netrc and user in URL

Published Jul 3, 2026 CVSS 3.1 · 9.1 Critical EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

When cURL is given a URL that contains a username but no password, such as https://user@example.com/, and it is instructed to read a .netrc file, the program may mistakenly retrieve the password for a different user entry that exists for that host. This results in the unintended disclosure of a stored password to the requester. The weakness lies in the handling of credential lookups and falls under multiple categories of credential management flaws.

Affected Systems

The vulnerability impacts the command‑line client distributed by the curl project. All releases that support .netrc parsing can be affected when invoked with the --netrc option and a URL that supplies a username without a password. The advisory flags this as a security issue for every cURL installation that may use .netrc files for authentication.

Risk and Exploitability

The CVSS score of 9.1 classifies this flaw as critical, yet the EPSS score of less than 1 % indicates that, at present, exploitation is unlikely. The vulnerability is not catalogued in the CISA KEV list. Attackers would need the ability to influence the URL passed to a local or otherwise controlled cURL instance that is running with the --netrc option enabled. A crafted request can cause the program to leak a password that belongs to a different user for the same host, thereby breaching confidentiality.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to a cURL release that contains the CVE‑2026‑8926 fix.
  • Avoid using the --netrc option when the target URL contains a username but no password; instead provide a full user:password pair or disable netrc parsing for that invocation.
  • Ensure that .netrc files on the system contain only the entries that are necessary, are protected with strict permissions, and that any superfluous or potentially exploitable host entries are removed.

Generated by OpenCVE AI on September 21, 2026 at 07:45 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8487-1 curl vulnerabilities
History
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. 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.
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'}

Type Values Removed Values Added
Weaknesses CWE-200
Type Values Removed Values Added
Weaknesses CWE-200
Type Values Removed Values Added
Weaknesses CWE-200
Type Values Removed Values Added
Weaknesses CWE-200
Type Values Removed Values Added
Weaknesses CWE-200
Type Values Removed Values Added
Weaknesses CWE-200
Type Values Removed Values Added
First Time appeared Curl
Curl curl
Vendors & Products Curl
Curl curl
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
Weaknesses
  • CWE-289

    Authentication Bypass by Alternate Name

  • CWE-522

    Insufficiently Protected Credentials

Sources

Status
PUBLISHED
Assigner
curl
Published
Updated
Sep 15, 2026, 6:03 AM
Reserved
May 19, 2026, 8:11 AM
Status
Modified
Published
Jul 3, 2026, 7:16 AM
Modified
Sep 15, 2026, 7:16 AM
Severity
Moderate
Public date
Jul 3, 2026, 6:15 AM