---
id: CVE-2022-35260
title: curl can be told to parse a `.netrc` file for credentials
summary: >-
  curl can be told to parse a `.netrc` file for credentials. If that file endsin
  a line with 4095 consecutive non-white space letters and no newline, curlwould
  first read past the end of the stack-based buffer, and if the readworks, write
  …
severity: medium
cvss: 6.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H'
cwe:
  - CWE-125
  - CWE-787
vendor: haxx
product: curl
affected:
  - 'curl >= 7.84.0, < 7.86.0'
  - clustered_data_ontap
  - h300s_firmware
  - h500s_firmware
  - h700s_firmware
  - h410s_firmware
  - macos < 12.6.3
  - 'universal_forwarder >= 8.2.0, < 8.2.12'
  - 'universal_forwarder >= 9.0.0, < 9.0.6'
  - universal_forwarder = 9.1.0
patched:
  - curl 7.86.0
  - macos 12.6.3
  - universal_forwarder 9.0.6
published: '2022-12-05'
updated: '2026-10-14'
sourceUpdated: '2026-10-14T18:17:00.993'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2022-35260'
references:
  - url: 'http://seclists.org/fulldisclosure/2023/Jan/19'
    label: support@hackerone.com
  - url: 'http://seclists.org/fulldisclosure/2023/Jan/20'
    label: support@hackerone.com
  - url: 'https://hackerone.com/reports/1721098'
    label: support@hackerone.com
  - url: 'https://security.gentoo.org/glsa/202212-01'
    label: support@hackerone.com
  - url: 'https://security.netapp.com/advisory/ntap-20230110-0006/'
    label: support@hackerone.com
  - url: 'https://support.apple.com/kb/HT213604'
    label: support@hackerone.com
  - url: 'https://support.apple.com/kb/HT213605'
    label: support@hackerone.com
  - url: 'http://seclists.org/fulldisclosure/2023/Jan/19'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'http://seclists.org/fulldisclosure/2023/Jan/20'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://hackerone.com/reports/1721098'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://security.gentoo.org/glsa/202212-01'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://security.netapp.com/advisory/ntap-20230110-0006/'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://support.apple.com/kb/HT213604'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://support.apple.com/kb/HT213605'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://cert-portal.siemens.com/productcert/html/ssa-398330.html'
    label: 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
  - url: 'https://cert-portal.siemens.com/productcert/html/ssa-892048.html'
    label: 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
tags:
  - nvd
epss: 0.0188
epssPercentile: 0.79032
ingestedAt: '2026-10-14T18:47:39.276Z'
---

## Overview

curl can be told to parse a `.netrc` file for credentials. If that file endsin a line with 4095 consecutive non-white space letters and no newline, curlwould first read past the end of the stack-based buffer, and if the readworks, write a zero byte beyond its boundary.This will in most cases cause a segfault or similar, but circumstances might also cause different outcomes.If a malicious user can provide a custom netrc file to an application or otherwise affect its contents, this flaw could be used as denial-of-service.

## Affected

- `curl >= 7.84.0, < 7.86.0`
- `clustered_data_ontap`
- `h300s_firmware`
- `h500s_firmware`
- `h700s_firmware`
- `h410s_firmware`
- `macos < 12.6.3`
- `universal_forwarder >= 8.2.0, < 8.2.12`
- `universal_forwarder >= 9.0.0, < 9.0.6`
- `universal_forwarder = 9.1.0`

## Remediation

Upgrade past the affected range:

- `curl 7.86.0`
- `macos 12.6.3`
- `universal_forwarder 9.0.6`
