Stack-based Buffer Overflow Affecting libcurl package, versions [7.84.0,7.86.0)


Severity

Recommended
0.0
low
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.24% (48th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-CONAN-LIBCURL-10076452
  • published8 May 2025
  • disclosed26 Oct 2022
  • creditHiroki Kurosawa

Introduced: 26 Oct 2022

CVE-2022-35260  (opens in a new tab)
CWE-121  (opens in a new tab)

How to fix?

Upgrade libcurl to version 7.86.0 or higher.

Overview

Affected versions of this package are vulnerable to Stack-based Buffer Overflow when curl is instructed to parse a .netrc file for credentials. If that file ends in a line with consecutive non-white space letters and no newline, curl could read past the end of the stack-based buffer, and if the read works, it can write a zero byte beyond its boundary.

CVSS Base Scores

version 3.1