See how curl compares to other vendors in security performance
Fixed GHSA-f6gg-rchx-xw8j (Mixed-case HTTPS and FTPS URLs can expose data in plaintext)
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.
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.
When curl is told to use the Certificate Status Request TLS extension, often referred to as OCSP stapling, to verify that the server certificate is valid, it fails to detect OCSP problems and instead wrongly consider the response as fine.
The curl logic that works with SASL authentication could end up cleaning up the GSASL context twice without clearing the pointer in between, making it free() the same pointer twice.
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.
When using an ambient user in a first transfer doing Negotiate authentication and asked to follow redirects, curl could pass on its credential details to an unrelated second origin when asked to redirect there.
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 curl is built with GnuTLS, a malicious WebSocket server can make curl send memory past its send buffer. This is due to an out of bounds read following when gnutlsrecordsend() returns a number of bytes sent greater than the number of bytes it was given to send. GnuTLS does that after a blocked send.
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.
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.
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 asked to do public key authentication, curl would wrongly still ask and authenticate using a locally running SSH agent.
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.
curl's code for managing SSH connections when SFTP was done using the wolfSSH powered backend was flawed and missed host verification mechanisms.
This prevents curl from detecting MITM attackers and more.
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
A flaw in the curl command line tool's logic makes it only set SSH host verification options when interacting directly using SFTP or SCP, and not as a result of following a redirect.
Hello,
Today the curl project publishes a set of twenty-four separate vulnerabilities in association with the release of curl 8.23.0.
All vulnerabilities have their fixes mentioned in text and link to the corresponding commit that fixes the problem.
Detailed information about all vulnerabilities are available on https://curl.se/docs/security.html
One vulnerability is considered severity HIGH:
CVE-2026-92392: HTTP/2 upload Use-After-Free
The other vulnerabilities are considered severity LOW:
CVE-2026-107929: local interface connection reuse mixup CVE-2026-107928: info leak uploading over WebSockets with GnuTLS CVE-2026-94266: password leak in CURLINFOEFFECTIVEURL CVE-2026-94265: Authorization: Negotiate sent to foreign origin CVE-2026-92391: curlmimefree stack overflow by recursion CVE-2026-92390: -J no-clobber guarantee bypassed with 103 early hints CVE-2026-92389: TFTP direction confusion CVE-2026-92388: FTP wildcard write callback mixup CVE-2026-92387: never-ending loop via server response omission CVE-2026-92386: server-set cookie aborts cookie jar load CVE-2026-87866: wolfSSL public-key pinning bypass CVE-2026-87865: knownhost callback mismatches key as missing CVE-2026-87864: IMAP APPEND plus CRLF conversion command injection CVE-2026-87863: HSTS response erases persisted entries CVE-2026-87862: HSTS cache import drops longer-lived child CVE-2026-87861: cross-origin reuse of a Negotiate connection CVE-2026-86415: auto client cert connection reuse mixup CVE-2026-86414: leaking host credentials to HTTP proxy CVE-2026-86413: Negotiate credentials sent to redirected origin CVE-2026-86412: server-set cookie erases cookie jar CVE-2026-86411: FTP connection reuse inherits client-certificate CVE-2026-86410: redirect to SFTP or SCP bypasses host verification CVE-2026-86409: stale SigV4 headers sent unintended
--
/ daniel.haxx.se || https://rock-solid.curl.dev
local interface 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!
info leak uploading over WebSockets with GnuTLS
info leak uploading over WebSockets with GnuTLS ===============================================
Project curl Security Advisory, October 14 2026 Permalink
VULNERABILITY -------------
When curl is built with GnuTLS, a malicious WebSocket server can make curl send memory past its send buffer. This is due to an out of bounds read following when gnutlsrecordsend() returns a number of bytes sent greater than the number of bytes it was given to send. GnuTLS does that after a blocked send.
INFO ----
The problem triggers when a send over TLS first reaches an EAGAIN situation and is followed by an automated WebSocket PONG response.
This problem only triggers when curl uses the GnuTLS backend.
In the worst case, this bug sends data from a neighboring heap buffer to the server in a subsequent send call, but it also likely to just crash.
The Common Vulnerabilities and Exposures (CVE) project has assigned the name CVE-2026-107928 to this issue.
CWE-126: Buffer Over-read
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.86.0 to and including 8.22.0 - Not affected versions: curl < 7.86.0 and >= 8.23.0 - Introduced-in: https://github.com/curl/curl/commit/664249d095275ec532f5
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/64fb3e7a7b116f6909660
RECOMMENDATIONS ---------------
A - Upgrade curl to version 8.23.0
B - Apply the patch to your local version
C - using another TLS backend when doing WebSocket
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: Luna with Claude, Anthropic - Patched-by: Stefan Eissing
Thanks a lot!
password leak in CURLINFOEFFECTIVEURL =======================================
Project curl Security Advisory, October 14 2026 Permalink
VULNERABILITY -------------
libcurl could accidentaly return a URL for curleasygetinfo's CURLINFOEFFECTIVEURL option containing credentials, even though neither the URL provided to libcurl nor the redirected URL did not.
INFO ----
The curl tool exposes the same information using the command line option:
--write-out '%{urleffective}'
This credential leak can happen when curl retrieves credentials from a .netrc file.
The Common Vulnerabilities and Exposures (CVE) project has assigned the name CVE-2026-94266 to this issue.
CWE-522: Insufficiently Protected Credentials
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 7.62.0 to and including 8.22.0 - Not affected versions: curl < 7.62.0 and >= 8.23.0 - Introduced-in: https://github.com/curl/curl/commit/46e164069d1a5230e4e64
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/7a6bd027d0de2b6857472d35d
RECOMMENDATIONS ---------------
A - Upgrade curl to version 8.23.0
B - Apply the patch to your local version
C - Do not use CURLINFOEFFECTIVEURL.
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: Daniel Stenberg
Thanks a lot!
Authorization: Negotiate sent to foreign origin
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!