CVE-2022-35260: curl can be told to parse a `.netrc` file for credentials.

CVE-2022-35260 affects 112 listed versions of Apple macOS in the Dawnsentry catalogue.

6.5CVSS medium
Proof of concept publicexploitation
3%EPSS (next 30 days)
5 December 2022published

Affected products and versions

The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.

Apple macOS

112 of 250 listed versions are affected. Fixed in 12.6.3. The newest release, 27.2.1, is not affected.

12.6.2 12.6.1 12.6 12.5.1 12.5 12.4 12.3.1 12.3 12.2.1 12.2 12.1 12.0.1 12.0.0 12.0 11.7.11 11.7.10 11.7.9 11.7.8 11.7.7 11.7.6 11.7.5 11.7.4 11.7.3 11.7.2 11.7.1 11.7 11.6.8 11.6.7 11.6.6 11.6.5 11.6.4 11.6.3 11.6.2 11.6.1 11.6 11.5.2 11.5.1 11.5 11.4 11.3.1 11.3 11.2.6 11.2.3 11.2.2 11.2.1 11.2.0 11.2 11.1.0 11.1 11.0.1 11.0 10.15.8 10.15.7-security_update_2022-004 10.15.7 10.15.6 10.15.5 10.15.4 10.15.3 10.15.2 10.15.1 and 52 more

What it is

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.

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H (NVD)

Published by Hackerone on 5 December 2022. Last changed 14 October 2026.

Sources

Check one version you run: look CVE-2022-35260 up, or pick a product and version in the quick lookup.

Updated 2 December 2026.