Improper Validation of Syntactic Correctness of Input Affecting libcurl package, versions [,7.85.0)


Severity

Recommended
0.0
low
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.08% (25th 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-10076448
  • published8 May 2025
  • disclosed31 Aug 2022
  • creditAxel Chong, Daniel Stenberg

Introduced: 31 Aug 2022

CVE-2022-35252  (opens in a new tab)
CWE-1286  (opens in a new tab)

How to fix?

Upgrade libcurl to version 7.85.0 or higher.

Overview

Affected versions of this package are vulnerable to Improper Validation of Syntactic Correctness of Input. When curl retrieves and parses cookies from an HTTP(S) server, it accepts cookies using control codes (byte values below 32). When cookies that contain such control codes are later sent back to an HTTP(S) server, it might make the server return a 400 response. Effectively allowing a "sister site" to deny service to siblings.

CVSS Base Scores

version 3.1