CVE-2026-8458: libcurl Negotiate Authentication Connection Reuse Flaw
libcurl contains a connection pooling flaw that can cause authenticated requests to reuse the wrong connection. When an application makes multiple requests using Negotiate authentication (a credential delegation mechanism) to the same server but with different service configurations, libcurl's connection reuse logic may incorrectly reuse a cached connection that was authenticated for a different service. This allows subsequent requests to inherit the authentication context of a previous connection, potentially enabling privilege escalation or unauthorized actions within the authenticated session.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 6.5 MEDIUM · CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
- Weaknesses (CWE)
- —
- Affected products
- 1 configuration(s)
- Published / Modified
- 2026-07-03 / 2026-07-07
NVD description (verbatim)
libcurl might in some circumstances reuse the wrong connection when asked to do Negotiate-authenticated ones, even when they are set to use different 'services'. libcurl features a pool of recent connections so that subsequent requests can reuse an existing connection to avoid overhead. When reusing a connection a range of criteria must be met. Due to a logical error in the code, a request that was issued by an application could wrongfully reuse an existing connection to the same server that was authenticated using different services.
4 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
libcurl maintains a connection pool to optimize performance by reusing TCP connections across multiple requests. The vulnerability stems from incomplete validation logic in the connection matching criteria. Specifically, when evaluating whether a cached connection is suitable for reuse in a Negotiate-authenticated request, the code fails to properly verify that the 'service' parameter matches between the new request and the cached connection. This logical error means a request could satisfy all other connection reuse criteria while being assigned to a connection authenticated with a different service principal, violating the security boundary implied by distinct service configurations.
Business impact
Organizations relying on libcurl for API integrations, automation tools, or client applications that leverage Negotiate authentication may experience unauthorized privilege escalation or data access. In environments where different services on the same server have different permission levels or represent distinct security contexts, connection reuse violations could allow a lower-privileged service authentication to be reused for operations requiring higher privileges. This is particularly concerning in Windows domain environments and Kerberos-authenticated systems where service-specific delegation is a security control.
Affected systems
haxx curl is the affected vendor and product. The vulnerability applies to any libcurl version exhibiting the flawed connection reuse logic. curl is widely embedded in open-source projects, commercial software, IoT devices, and enterprise automation platforms. Any deployment using libcurl with Negotiate authentication enabled and making requests to the same server with different service principals is potentially at risk.
Exploitability
Exploitation requires an authenticated attacker with the ability to trigger multiple HTTP requests through a libcurl-based application targeting the same server with different Negotiate service configurations. The attack is deterministic rather than probabilistic—the flaw is in the logic itself—but depends on request sequencing and the presence of cached connections from prior authenticated sessions. The CVSS scoring (6.5 MEDIUM, AV:N/AC:L/PR:L) reflects that network access and prior authentication are required, but no user interaction is needed and the impact is limited to integrity violations within the authenticated scope.
Remediation
Apply the security patch released by the curl project for CVE-2026-8458. Verify the specific patched version number against the official curl security advisory. Organizations unable to patch immediately should review their libcurl usage and consider whether Negotiate authentication is necessary for their deployment; disabling Negotiate support or using alternative authentication mechanisms reduces exposure. Additionally, review access control policies to minimize the privilege differential between services authenticated to the same server.
Patch guidance
Obtain the latest patched version of libcurl from the official curl project repository or your vendor's update channel. Verify patch version details in the curl security advisory. Test the patch in a staging environment before production deployment, particularly if libcurl is deeply integrated into custom applications or embedded systems. For software vendors who bundle libcurl, check for updated releases that incorporate the patch. Document your patching timeline for compliance and audit purposes.
Detection guidance
Monitor for suspicious patterns in HTTP request sequences where the same client connection is used for requests purporting to different service principals in Negotiate-authenticated scenarios. Review authentication logs for service principal mismatches or unexpected service-to-resource access patterns. Examine curl debug logs (curl_easy_setopt CURLOPT_VERBOSE) for connection reuse events when service configurations differ. In network monitoring, look for authentication tokens (Kerberos tickets) being reused across requests to different service SPNs on the same server, which may indicate improper connection pooling.
Why prioritize this
Although categorized as MEDIUM severity, this vulnerability warrants prompt patching in environments with strict service isolation requirements, particularly those using Windows domain authentication or Kerberos. The flaw is deterministic and does not require user interaction or race conditions; it will occur whenever the prerequisites are met. Prioritize patching in systems where service-level access control is a compliance requirement or where different services on the same server have significantly different permission models.
Risk score, explained
The CVSS 6.5 score reflects a network-accessible vulnerability requiring prior authentication (PR:L), with no requirement for user interaction (UI:N) and limited scope (S:U). The integrity impact (I:H) is significant—an attacker can modify the behavior or data of requests—but confidentiality and availability are not compromised. The complexity is low (AC:L), meaning the flaw is straightforward to trigger given the prerequisite conditions. The score appropriately captures that this is a serious authentication context violation but not a complete system compromise.
Frequently asked questions
Does this vulnerability allow remote code execution?
No. The vulnerability is limited to authentication context reuse and integrity violations. An attacker cannot execute arbitrary code, though they may be able to perform unauthorized actions within the scope of the incorrectly reused authenticated session.
Do I need to patch if I don't use Negotiate authentication in libcurl?
No. This vulnerability is specific to Negotiate authentication (SPNEGO/Kerberos) scenarios. If your curl usage does not involve Negotiate, you are not exposed. Review your curl initialization code for CURLOPT_SSLAUTH or CURLOPT_HTTPAUTH settings that include CURLAUTH_NEGOTIATE.
Can this vulnerability be exploited over the internet, or only internally?
It can be exploited over the network (CVSS AV:N), but the attacker must first be authenticated to libcurl's HTTP client and able to influence request sequencing. In most scenarios, this means internal automation, API clients, or tools running within a network boundary where the attacker has some level of access.
How does this differ from a typical authentication bypass?
This is not a bypass of authentication itself, but rather a violation of service-level authentication boundaries. The attacker is already authenticated, but their session is being applied to operations or services they should not have access to—a privilege escalation within an authenticated context.
This analysis is provided for informational purposes and reflects the known details of CVE-2026-8458 as of the publication date. Verify all patch version numbers and remediation steps against the official curl security advisory before implementation. The vulnerability's impact is context-dependent and varies by deployment architecture, authentication configuration, and service isolation practices. SEC.co makes no guarantee of exploit availability, active exploitation, or real-world impact in any specific environment. Organizations should conduct their own risk assessment based on their use of libcurl and Negotiate authentication. Source: NVD (public-domain), retrieved 2026-08-11. Analysis generated by SEC.co (claude-haiku-4-5).
Affected vendors
Related vulnerabilities
- CVE-2026-11352HIGHcurl QUIC DoS Vulnerability – Remote Client Stall
- CVE-2026-11586HIGHcurl WebSocket Memory Exhaustion Denial-of-Service
- CVE-2026-12064HIGHcurl SSH Host Verification Bypass with Schemeless URLs
- CVE-2026-8286HIGHcurl STARTTLS Connection Reuse Vulnerability (High Severity)
- CVE-2026-8932HIGHlibcurl mTLS Connection Reuse Vulnerability (CVSS 7.5)
- CVE-2026-9080HIGHlibcurl Use-After-Free in Socket Callback (CVSS 7.3)
- CVE-2026-9545HIGHlibcurl HTTP/3 SSL Session Early Data Confidentiality Leak
- CVE-2026-9546HIGHlibcurl HTTP Referer Header Leak Vulnerability