---
id: CVE-2026-8926
title: |-
  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 …
summary: |-
  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 …
severity: critical
cvss: 9.1
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N'
cwe:
  - CWE-522
  - CWE-289
vendor: haxx
product: curl
affected:
  - 'curl >= 8.11.1, < 8.21.0'
patched:
  - curl 8.21.0
published: '2026-07-03'
updated: '2026-09-15'
sourceUpdated: '2026-09-15T07:16:32.980'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-8926'
references:
  - url: 'https://curl.se/docs/CVE-2026-8926.html'
    label: 2499f714-1537-4658-8207-48ae4bb9eae9
  - url: 'https://curl.se/docs/CVE-2026-8926.json'
    label: 2499f714-1537-4658-8207-48ae4bb9eae9
  - url: 'https://hackerone.com/reports/3735184'
    label: 2499f714-1537-4658-8207-48ae4bb9eae9
  - url: 'https://hackerone.com/reports/3735184'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-8926.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-8926'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2496760'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-8926'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-8926'
  - url: 'https://access.redhat.com/errata/RHSA-2026:69125'
  - url: 'https://access.redhat.com/errata/RHSA-2026:34975'
  - url: 'https://access.redhat.com/errata/RHSA-2026:29017'
tags:
  - nvd
  - cve.org
  - exploit-available
  - csaf
  - vex
  - red-hat
  - score-dispute
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-07-06T17:01:57.524535Z'
epss: 0.00444
epssPercentile: 0.38
ingestedAt: '2026-07-04T04:55:39.443Z'
scores:
  nvd: 9.1
  vendor: 4.8
---

## Overview

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.

## Affected

- `curl >= 8.11.1, < 8.21.0`

## Remediation

Upgrade past the affected range:

- `curl 8.21.0`

## Vendor advisories

- **RHSA-2026:69125** · Red Hat · fixed in: Red Hat Enterprise Linux AppStream (v. 10), Red Hat Enterprise Linux BaseOS (v. 10) · released 2026-09-21 · [advisory](https://access.redhat.com/errata/RHSA-2026:69125)
- **RHSA-2026:34975** · Red Hat · fixed in: Red Hat Hardened Images · released 2026-07-02 · [advisory](https://access.redhat.com/errata/RHSA-2026:34975)
- **RHSA-2026:29017** · Red Hat · fixed in: Red Hat Hardened Images · released 2026-06-24 · [advisory](https://access.redhat.com/errata/RHSA-2026:29017)
- **Red Hat VEX** · Moderate · affected: Red Hat OpenShift Container Platform 4, Red Hat OpenShift Dev Spaces, Red Hat Trusted Profile Analyzer · no fix planned: Red Hat OpenShift Container Platform 4, Red Hat OpenShift Dev Spaces, Red Hat Trusted Profile Analyzer · updated 2026-09-21 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-8926.json)
