Authentication Bypass by Primary Weakness Affecting libcurl package, versions [7.76.0,8.20.0)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (13th 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-16340567
  • published2 May 2026
  • disclosed29 Apr 2026
  • creditQuac Tran, Ngoc Hieu

Introduced: 29 Apr 2026

NewCVE-2026-5545  (opens in a new tab)
CWE-305  (opens in a new tab)

How to fix?

Upgrade libcurl to version 8.20.0 or higher.

Overview

Affected versions of this package are vulnerable to Authentication Bypass by Primary Weakness via the reuse of HTTP Negotiate authenticated connections. An attacker can gain unauthorized access or perform actions with unintended credentials by making an authenticated HTTP(S) request after a Negotiate-authenticated one to the same host, causing the request to be sent over a connection authenticated with different credentials.

Workaround

This vulnerability can be mitigated by disabling connection reuse using the following libcurl options: set CURLOPT_FRESH_CONNECT to force a new connection for each request, limit the total number of open connections with CURLOPT_MAXCONNECTS, or limit connections per host with CURLMOPT_MAX_HOST_CONNECTIONS when using the curl_multi API.

CVSS Base Scores

version 4.0
version 3.1