VYPR
Unrated severityNVD Advisory· Published Dec 5, 2022· Updated Nov 19, 2024

CVE-2022-35260

CVE-2022-35260

Description

Curl's netrc parser has a stack buffer overread and off-by-one write when processing a line with 4095 consecutive non-whitespace characters and no newline, leading to denial of service.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Curl's netrc parser has a stack buffer overread and off-by-one write when processing a line with 4095 consecutive non-whitespace characters and no newline, leading to denial of service.

Vulnerability

Curl's .netrc file parser contains a stack-based buffer overread and off-by-one write vulnerability. When a .netrc file ends with a line containing exactly 4095 consecutive non-whitespace characters and no trailing newline, the parser reads past the end of the allocated stack buffer and, if the read succeeds, writes a zero byte beyond the buffer boundary. This affects curl versions prior to 7.86.0 [3].

Exploitation

An attacker must be able to supply a crafted .netrc file to an application that uses curl with netrc parsing enabled. The attacker creates a file whose last line consists of 4095 non-whitespace characters (e.g., letters) without a terminating newline. When curl processes this file, the flawed parsing logic triggers the buffer overread and off-by-one write, typically resulting in a segmentation fault.

Impact

Successful exploitation causes a denial of service (crash) in the curl process. The description notes that in most cases a segfault occurs, but under specific circumstances other outcomes may be possible. The Gentoo advisory lists this among multiple curl vulnerabilities, but the primary impact described for this CVE is denial of service.

Mitigation

The vulnerability is fixed in curl version 7.86.0 [3]. Users should upgrade to this version or later. No workaround is known at this time [3].

AI Insight generated on May 25, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected products

3

Patches

0

No patches discovered yet.

Vulnerability mechanics

No source-code context for this CVE — mechanics is only generated when we can read the actual fix diff. Without that, the four sections (root cause, attack vector, affected code, fix) would be speculation rather than analysis.

References

7

News mentions

0

No linked articles in our index yet.