In this scenario, libcurl first uses a proper HTTP/3 server for the initial transfers, and when it makes a second transfer to the same site it has been replaced by the attacker's impostor machine - without a valid certificate.
When libcurl returns to the hostname the second time with a cached SSL session (CURLOPTSSLSESSIONIDCACHE is not disabled) and early data enabled (the CURLSSLOPTEARLYDATA bit is set in CURLOPTSSLOPTIONS), libcurl might send off the second request's bytes on that new connection before enforcing the certificate verification failure. Potentially leaking sensitive information.
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.
When using ambient user credentials, an HTTP request directed to one origin may be dispatched over a connection previously authenticated via Negotiate for a different origin, leaving the request's intended credentials unused.
libcurl's connection cache match function never considers the automatic client certificate option, so a cached, already authenticated Schannel connection can be handed to a transfer that got redirected to a different origin, even though the code explicitly switched off the auto client cert option for that transfer to prevent exactly this.
A flaw in libcurl makes it wrongly reuse an HTTP connection setup for a given hostname using Negotiate authentication, when the initial request is done using empty credentials. This can make user B's request get sent over user A's previously authenticated connection.
A flaw in the libcurl SASL negotiation for LDAP authentication allows an incomplete handshake sequence to be misinterpreted as a successful cryptographic verification. An attacker executing a Man-in-the-Middle (MITM) attack can inject a premature or shortcut response that bypasses complete peer validation.
When a libcurl-based application performs transfers via SCP:// or SFTP:// and utilizes the CURLOPTSSHKEYFUNCTION callback, it may silently accept an untrusted server. This vulnerability occurs when a server presents a host key type that does not match the specific key type already recorded for that host in the knownhosts file. Instead of rejecting the mismatch, the callback mechanism fails to properly enforce the restriction, allowing the connection to succeed without warning and risking a potential man-in-the-middle attack.
With the wolfSSL backend, when CA caching is enabled and an CURLOPTSSLCTXFUNCTION callback replaces the trust store, libcurl can silently reinstall the cached store after the callback returns. A certificate trusted by the cached store but rejected by the callback-selected store is then incorrectly accepted.
When doing SSH-based transfers using either SCP or SFTP, and setting the knownhosts file, libcurl could still mistakenly accept connecting to hosts not present in the specified file if they were added as recognized in the libssh global knownhosts file.
When doing multi-threaded LDAPS transfers (LDAP over TLS) with libcurl, changing TLS options in one thread would inadvertently change them globally and therefore possibly also affect other concurrently setup transfers.
Disabling certificate verification for a specific transfer could unintentionally disable the feature for other threads as well.
auto client cert connection reuse mixup
local interface connection reuse mixup ======================================
Project curl Security Advisory, October 14 2026 Permalink
VULNERABILITY -------------
When CURLOPTINTERFACE (or the command line tool's --interface' option) is set with one of the documented prefixes (if!, host!, ifhost!), that binding is not part of the connection reuse key, so a later transfer asking for a different source can silently reuse an existing connection and go out from the earlier transfer's source address
INFO ----
The Common Vulnerabilities and Exposures (CVE) project has assigned the name CVE-2026-107929 to this issue.
CWE-488: Exposure of Data Element to Wrong Session
Severity: Low
This bug is not considered a C mistake (likely to have been avoided had we not been using C).
AFFECTED VERSIONS -----------------
- Affected versions: curl 8.9.0 to and including 8.22.0 - Not affected versions: curl < 8.9.0 and >= 8.23.0 - Introduced-in: https://github.com/curl/curl/commit/3060557af702dd59155e
libcurl is used by many applications, but not always advertised as such!
This flaw also affects the curl command line tool.
SOLUTION --------
- Fixed-in: https://github.com/curl/curl/commit/d37d79df1e01066417aff0a9e
RECOMMENDATIONS ---------------
A - Upgrade curl to version 8.23.0
B - Apply the patch to your local version
C - Avoid CURLOPTINTERFACE and --interface
TIMELINE --------
This issue was reported to the curl project on October 9, 2026.
curl 8.23.0 was released on October 14, 2026, coordinated with the publication of this advisory.
CREDITS -------
- Reported-by: Maksim - Patched-by: Stefan Eissing
Thanks a lot!
Authorization: Negotiate sent to foreign origin ===============================================
Project curl Security Advisory, October 14 2026 Permalink
VULNERABILITY -------------
When processing an HTTP redirect to a URL containing userinfo (a username:password component), curl might erroneously retain and re-transmit the original host's HTTP Negotiate authentication state. Consequently, a malicious server can trigger a redirect containing arbitrary userinfo to force curl to send a freshly minted Kerberos ticket—generated using the ambient identity of the client process to an untrusted third-party host, effectively bypassing the domain-scoping restrictions normally enforced by the absence of --location-trusted.
INFO ----
The Common Vulnerabilities and Exposures (CVE) project has assigned the name CVE-2026-94265 to this issue.
CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Severity: low
This bug is not considered a C mistake (likely to have been avoided had we not been using C).
AFFECTED VERSIONS -----------------
- Affected versions: curl 8.21.0 to and including 8.22.0 - Not affected versions: curl < 8.21.0 and >= 8.23.0 - Introduced-in: https://github.com/curl/curl/commit/8f71d0fde515aa4c68002
libcurl is used by many applications, but not always advertised as such!
This flaw also affects the curl command line tool.
SOLUTION --------
- Fixed-in: https://github.com/curl/curl/commit/557a52f21e37a626725a9e708c
RECOMMENDATIONS ---------------
A - Upgrade curl to version 8.23.0
B - Apply the patch to your local version
C - Do not follow directs when using Negotiate
TIMELINE --------
This issue was reported to the curl project on September 18, 2026.
curl 8.23.0 was released on October 14, 2026, coordinated with the publication of this advisory.
CREDITS -------
- Reported-by: Joshua Rogers (Aisle Research) - Patched-by: Joshua Rogers (Aisle Research)
Thanks a lot!
curlmimefree stack overflow by recursion ==========================================
Project curl Security Advisory, October 14 2026 Permalink
VULNERABILITY -------------
A deeply nested multipart MIME structure constructed via the public API causes a stack overflow in libcurl during normal cleanup operations. An excessive recursion depth within curlmimefree leads to unbounded stack frame allocation during structure traversal, ultimately crashing the host process.
INFO ----
Normal mime setups typically contain a few parts up to extreme cases of hundreds. This flaw needs thousands to trigger, the exact amount depending on your system and configuration.
The Common Vulnerabilities and Exposures (CVE) project has assigned the name CVE-2026-92391 to this issue.
CWE-674: Uncontrolled Recursion
Severity: Low
AFFECTED VERSIONS -----------------
- Affected versions: curl 7.56.0 to and including 8.22.0 - Not affected versions: curl < 7.56.0 and >= 8.23.0 - Introduced-in: https://github.com/curl/curl/commit/ce0881edee3c78609eae49
libcurl is used by many applications, but not always advertised as such!
This flaw does not affect the curl command line tool.
SOLUTION --------
- Fixed-in: https://github.com/curl/curl/commit/d7546809d5bd548b69ec49fca2
RECOMMENDATIONS ---------------
A - Upgrade curl to version 8.23.0
B - Apply the patch to your local version
C - Avoid the MIME API
TIMELINE --------
This issue was reported to the curl project on September 12, 2026.
curl 8.23.0 was released on October 14, 2026, coordinated with the publication of this advisory.
CREDITS -------
- Reported-by: Joshua Rogers (Aisle Research) - Patched-by: Daniel Stenberg
Thanks a lot!
TFTP direction confusion ========================
Project curl Security Advisory, October 14 2026 Permalink
VULNERABILITY -------------
libcurl's TFTP state machine fails to validate state transitions against the requested transfer direction, accepting opening server responses for both reads and writes interchangeably. A malicious TFTP server can respond to a download request in a way that forces the client into transmit mode, prompting libcurl to consume and transmit data from the handle's persistent CURLOPTREADDATA pointer - including data remaining from unrelated prior operations, such as an HTTP POST request executed on a reused handle.
INFO ----
The Common Vulnerabilities and Exposures (CVE) project has assigned the name CVE-2026-92389 to this issue.
CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Severity: Low
AFFECTED VERSIONS -----------------
- Affected versions: curl 7.15.0 to and including 8.22.0 - Not affected versions: curl < 7.15.0 and >= 8.23.0 - Introduced-in: https://github.com/curl/curl/commit/56d9624b566ac15ffb4b4
libcurl is used by many applications, but not always advertised as such!
This flaw does not affect the curl command line tool.
SOLUTION --------
- Fixed-in: https://github.com/curl/curl/commit/63dd390fab905a239a97e270
RECOMMENDATIONS ---------------
A - Upgrade curl to version 8.23.0
B - Apply the patch to your local version
C - Use fresh easy handles for TFTP
TIMELINE --------
This issue was reported to the curl project on September 11, 2026.
curl 8.23.0 was released on October 14, 2026, coordinated with the publication of this advisory.
CREDITS -------
- Reported-by: Joshua Rogers (Aisle Research) - Patched-by: Daniel Stenberg
Thanks a lot!
FTP wildcard write callback mixup =================================
Project curl Security Advisory, October 14 2026 Permalink
VULNERABILITY -------------
When an FTP wildcard LIST operation fails, libcurl omits the restoration path meant for successful listings, leaving the write callback set to the internal listing parser and the write callback data pointing directly to the easy handle. Subsequent reuse of this handle triggers an immediate crash, and cloning it via curleasyduphandle() copies this corrupted state into the duplicate. If the original handle is subsequently freed, executing a transfer on the cloned handle causes a heap use-after-free read against the dangling handle reference; alternatively, reusing the original or cloned handle while reconfiguring only CURLOPTWRITEDATA (and omitting CURLOPTWRITEFUNCTION) results in type confusion, forcing the internal parser to interpret incoming server response bytes into memory at the application-supplied write data pointer.
INFO ----
This flaw needs CURLOPTFTPWILDCARD enabled to trigger.
The Common Vulnerabilities and Exposures (CVE) project has assigned the name CVE-2026-92388 to this issue.
CWE-416: Use After Free
Severity: Low
This bug is considered a C mistake (likely to have been avoided had we not been using C).
AFFECTED VERSIONS -----------------
- Affected versions: curl 7.21.0 to and including 8.22.0 - Not affected versions: curl < 7.21.0 and >= 8.23.0 - Introduced-in: https://github.com/curl/curl/commit/0825cd80a62c21725fb
libcurl is used by many applications, but not always advertised as such!
This flaw does not affect the curl command line tool.
SOLUTION --------
- Fixed-in: https://github.com/curl/curl/commit/ba8f8a7f27a5c5e19e4ef212 and https://github.com/curl/curl/commit/b85acacec9b38442741bb019bc9
RECOMMENDATIONS ---------------
A - Upgrade curl to version 8.23.0
B - Apply the patch to your local version
C - Never reuse easy handles for or after FTP wildcard matches
TIMELINE --------
This issue was reported to the curl project on September 11, 2026.
curl 8.23.0 was released on October 14, 2026, coordinated with the publication of this advisory.
CREDITS -------
- Reported-by: Joshua Rogers (Aisle Research) - Patched-by: Daniel Stenberg
Thanks a lot!
never-ending loop via server response omission ==============================================
Project curl Security Advisory, October 14 2026 Permalink
VULNERABILITY -------------
By permanently omitting the final control-response line, a malicious FTP, IMAP, POP3, or SMTP server can exploit libcurl and completely bypass its configured transfer timeout mechanism, indefinetly blocking all concurrent transfers bound to the same multi-handle.
INFO ----
To keep libcurl "locked" in this loop, it requires that the server can feed the data to the client at read speed, meaning a very high network speed or an unusually slow client.
The Common Vulnerabilities and Exposures (CVE) project has assigned the name CVE-2026-92387 to this issue.
CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop')
Severity: Low
AFFECTED VERSIONS -----------------
- Affected versions: curl 8.10.0 to and including 8.22.0 - Not affected versions: curl < 8.10.0 and >= 8.23.0 - Introduced-in: https://github.com/curl/curl/commit/a5598b6fcb9ec6b57a77
libcurl is used by many applications, but not always advertised as such!
This flaw does not affect the curl command line tool.
SOLUTION --------
- Fixed-in: https://github.com/curl/curl/commit/753735af87f5c30cb6f60a7
RECOMMENDATIONS ---------------
A - Upgrade curl to version 8.23.0
B - Apply the patch to your local version
C - Avoid using the pingpong protocols
TIMELINE --------
This issue was reported to the curl project on September 11, 2026.
curl 8.23.0 was released on October 14, 2026, coordinated with the publication of this advisory.
CREDITS -------
- Reported-by: Joshua Rogers (Aisle Research) - Patched-by: Daniel Stenberg
Thanks a lot!
wolfSSL public-key pinning bypass =================================
Project curl Security Advisory, October 14 2026 Permalink
VULNERABILITY -------------
When built with wolfSSL, curl can successfully validate a pinned public key hash against a key the TLS peer does not possess. During the TLS handshake, wolfSSL validates the connection, but curl's subsequent re-parsing of the same certificate - tricked by a manipulated validity length field - extracts and matches a different embedded key, incorrectly authorizing the pinned public key.
INFO ----
This flaw only exists when curl was built to use wolfSSL. This flaw also relies on a wolfSSL bug accepting this malformed certificate.
The Common Vulnerabilities and Exposures (CVE) project has assigned the name CVE-2026-87866 to this issue.
CWE-295: Improper Certificate Validation
Severity: Low
AFFECTED VERSIONS -----------------
- Affected versions: curl 7.43.0 to and including 8.22.0 - Not affected versions: curl < 7.43.0 and >= 8.23.0 - Introduced-in: https://github.com/curl/curl/commit/0675abbc7572ff6d711a1f3
libcurl is used by many applications, but not always advertised as such!
This flaw does not affect the curl command line tool.
SOLUTION --------
- Fixed-in: https://github.com/curl/curl/commit/ed131747c1a3dc7f816d26724c44
RECOMMENDATIONS ---------------
A - Upgrade curl to version 8.23.0
B - Apply the patch to your local version
C - Avoid key pinning or use another TLS backend
TIMELINE --------
This issue was reported to the curl project on September 2, 2026.
curl 8.23.0 was released on October 14, 2026, coordinated with the publication of this advisory.
CREDITS -------
- Reported-by: Muhamad Arga Reksapati - Patched-by: Stefan Eissing
Thanks a lot!
HSTS cache import drops longer-lived child ==========================================
Project curl Security Advisory, October 14 2026 Permalink
VULNERABILITY -------------
Importing a includeSubDomains parent HSTS entry before a longer-lived child entry, silently drops the child. Consequently, when the parent expires, the child's valid HSTS policy is lost, causing curl to issue unencrypted HTTP requests rather than upgrading to HTTPS.
INFO ----
The Common Vulnerabilities and Exposures (CVE) project has assigned the name CVE-2026-87862 to this issue.
CWE-201: Information Exposure Through Sent Data
Severity: Low
AFFECTED VERSIONS -----------------
- Affected versions: curl 8.11.0 to and including 8.22.0 - Not affected versions: curl < 8.11.0 and >= 8.23.0 - Introduced-in: https://github.com/curl/curl/commit/a94973805df96269bf3f3bf0a2
libcurl is used by many applications, but not always advertised as such!
This flaw also affects the curl command line tool.
SOLUTION ------------
- Fixed-in: https://github.com/curl/curl/commit/a1614c3bcf1593eb524b37792124357
RECOMMENDATIONS --------------
A - Upgrade curl to version 8.23.0
B - Apply the patch to your local version
C - Do not rely on HSTS
TIMELINE --------
This issue was reported to the curl project on August 26, 2026.
curl 8.23.0 was released on October 14, 2026, coordinated with the publication of this advisory.
CREDITS -------
- Reported-by: Stanislav Fort (Aisle Research) - Patched-by: Daniel Stenberg
Thanks a lot!
cross-origin reuse of a Negotiate connection ============================================
Project curl Security Advisory, October 14 2026 Permalink
VULNERABILITY -------------
When using ambient user credentials, an HTTP request directed to one origin may be dispatched over a connection previously authenticated via Negotiate for a different origin, leaving the request's intended credentials unutilized.
INFO ----
An ambient user means that a blank user name is provided and the real identity and credentials are handled under curl's radar.
The Common Vulnerabilities and Exposures (CVE) project has assigned the name CVE-2026-87861 to this issue.
CWE-201: Information Exposure Through Sent Data
Severity: Low
AFFECTED VERSIONS -----------------
- Affected versions: curl 8.21.0 to and including 8.22.0 - Not affected versions: curl < 8.21.0 and >= 8.23.0 - Introduced-in: https://github.com/curl/curl/commit/bd10924b47c8bf94127eaee
libcurl is used by many applications, but not always advertised as such!
This flaw also affects the curl command line tool.
SOLUTION ------------
- Fixed-in: https://github.com/curl/curl/commit/7c11f1a1bd53e2cd983fe153e4599
RECOMMENDATIONS --------------
A - Upgrade curl to version 8.23.0
B - Apply the patch to your local version
C - Avoid using ambient users for authentication
TIMELINE --------
This issue was reported to the curl project on August 26, 2026.
curl 8.23.0 was released on October 14, 2026, coordinated with the publication of this advisory.
CREDITS -------
- Reported-by: Axel Mierczuk - Patched-by: Stefan Eissing
Thanks a lot!
An ftp:// transfer configured with CURLUSESSLNONE can reuse a pooled FTP control connection that a previous easy handle upgraded with STARTTLS and authenticated using a client certificate. The second handle performs neither a new TLS handshake nor a new FTP login, so the server continues to authorize it under the first handle's certificate identity.
When CURLOPTPINNEDPUBLICKEY is configured alongside options that disable standard peer verification (CURLOPTSSLVERIFYPEER = 0 and CURLOPTSSLVERIFYHOST = 0), libcurl fails to enforce public key pinning on connections established without a presented server certificate. Bypassing the pinning check under these disabled-verification conditions allows unauthenticated connections to succeed when they should be rejected.
When libpsl support is enabled, libcurl fails to enforce the Public Suffix List boundary check when processing a Set-Cookie header where the Domain attribute explicitly matches an origin host that is itself a public suffix (e.g., Domain=co.uk set by co.uk).
Instead of coercing it into a strict host-only cookie, libcurl saves the cookie with wildcard domain scope (.co.uk). Consequently, the cookie is inappropriately included in subsequent outbound requests or HTTP redirects to arbitrary sibling subdomains under the same public suffix (e.g., attacker.co.uk).
A flaw in libcurl makes it wrongly reuse an existing HTTPS connection setup for a given hostname even when using a different Native CA Store setting (CURLSSLOPTNATIVECA) than when the connection was created.
When performing transfers via libcurl’s multi interface, pooled TLS connections can outlive their originating easy handles. In OpenSSL 3 provider configurations, libcurl attaches an allocated library context to the easy handle's state and passes it to OpenSSL without acquiring an ownership reference; destroying the easy handle prematurely frees this context while the active connection retains a dangling pointer, leading to a heap-use-after-free upon subsequent I/O or post-handshake operations.
A flaw in the libcurl SASL negotiation for LDAP authentication allows an incomplete handshake sequence to be misinterpreted as a successful cryptographic verification. An attacker executing a Man-in-the-Middle (MITM) attack can inject a premature or shortcut response that bypasses complete peer validation.
A flaw in libcurl's handling of HTTP/2 Server Push streams, when the parent handle is set to share connections with other handles, can lead to use-after-free in the cleanup process.
A flaw in libcurl makes it wrongly reuse an HTTP connection setup for a given hostname using Negotiate authentication, when the initial request is done using empty credentials. This can make user B's request get sent over user A's previously authenticated connection.
When libpsl support is enabled, libcurl fails to enforce the Public Suffix List boundary check when processing a Set-Cookie header where the Domain attribute explicitly matches an origin host that is itself a public suffix (e.g., Domain=co.uk set by co.uk).
Instead of coercing it into a strict host-only cookie, libcurl saves the cookie with wildcard domain scope (.co.uk). Consequently, the cookie is inappropriately included in subsequent outbound requests or HTTP redirects to arbitrary sibling subdomains under the same public suffix (e.g., attacker.co.uk).