Fixed GHSA-f6gg-rchx-xw8j (Mixed-case HTTPS and FTPS URLs can expose data in plaintext)
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.
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.
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 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.
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.
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.
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!
-J no-clobber guarantee bypassed with 103 early hints
-J no-clobber guarantee bypassed with 103 early hints =====================================================
Project curl Security Advisory, October 14 2026 Permalink
VULNERABILITY -------------
When invoked with --remote-header-name (-J), curl fails to preserve its documented anti-clobbering protection if an intermediate 103 Early Hints response precedes the final HTTP response, or if an ETag header is processed before Content-Disposition under --etag-save. This flaw allows an HTTP(S) server to overwrite an existing local file specified in the Content-Disposition header despite the presence of the -J non-overwrite constraint.
INFO ----
This problem is similar, but not identical, to the previous vulnerability CVE-2020-8177
The Common Vulnerabilities and Exposures (CVE) project has assigned the name CVE-2026-92390 to this issue.
CWE-73: External Control of File Name or Path
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.20.0 to and including 8.22.0 - Not affected versions: curl < 7.20.0 and >= 8.23.0 - Introduced-in: https://github.com/curl/curl/commit/80675818e0417b
curl is used by many applications, but not always advertised as such!
This flaw only affects the curl command line tool, not libcurl.
SOLUTION --------
- Fixed-in: https://github.com/curl/curl/commit/c24a69d8cd368de4e25e35
RECOMMENDATIONS ---------------
A - Upgrade curl to version 8.23.0
B - Apply the patch to your local version
C - Avoid using the -J option
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: Joshua Rogers (Aisle Research)
Thanks a lot!
server-set cookie aborts cookie jar load ========================================
Project curl Security Advisory, October 14 2026 Permalink
VULNERABILITY -------------
When writing a long cookie name and value to a Netscape cookie jar, a remote HTTP server can make curl write a record that exceeds its line-length parsing limit. Consequently, any subsequent curl invocation reading from that same cookie jar using --cookie will silently abort parsing prematurely upon encountering the oversized line, ignoring all subsequent valid cookies in the file.
INFO ----
The server cannot know or impact the relative position of this particular cookie in the cookie jar, thus this flaw may affect many, few or no other cookies when triggered.
The Common Vulnerabilities and Exposures (CVE) project has assigned the name CVE-2026-92386 to this issue.
CWE-1284: Improper Validation of Specified Quantity in Input
Severity: Low
AFFECTED VERSIONS -----------------
- Affected versions: curl 8.7.0 to and including 8.22.0 - Not affected versions: curl < 8.7.0 and >= 8.23.0 - Introduced-in: https://github.com/curl/curl/commit/142ac257b3242459b2840
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/445aa87e13f91c94bc742f5434
RECOMMENDATIONS --------------
A - Upgrade curl to version 8.23.0
B - Apply the patch to your local version
C - Do not use cookies
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!
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.
knownhost callback mismatches key as missing ============================================
Project curl Security Advisory, October 14 2026 Permalink
VULNERABILITY -------------
When libcurl uses libssh2 with a hashed knownhosts file, an unrelated initial entry can cause host key validation to report a key mismatch as a missing key to the CURLOPTSSHKEYFUNCTION callback.
INFO ----
A network attacker who controls or intercepts the reached SSH endpoint can make an already pinned host appear genuinely new to a trust-on-first-use callback. libcurl then authenticates to the hostile endpoint; in the proof, the server receives the configured SSH password and libcurl accepts attacker-controlled SFTP data. The default callback and curl command-line tool are not claimed affected.
This problem only affects libcurl built with the libssh2 backend for SFTP and SCP transfers.
The Common Vulnerabilities and Exposures (CVE) project has assigned the name CVE-2026-87865 to this issue.
CWE-295: Improper Certificate Validation
Severity: Low
AFFECTED VERSIONS -----------------
- Affected versions: curl 7.69.1 to and including 8.22.0 - Not affected versions: curl < 7.69.1 and >= 8.23.0 - Introduced-in: https://github.com/curl/curl/commit/e96fe70cabcb3a5a009821d
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/323c184b6bdf5b1988a10c0a61560
RECOMMENDATIONS --------------
A - Upgrade curl to version 8.23.0
B - Apply the patch to your local version
C - Avoid the libssh2 backend for SFTP and SCP
TIMELINE --------
This issue was reported to the curl project on August 28, 2026.
curl 8.23.0 was released on October 14, 2026, coordinated with the publication of this advisory.
CREDITS -------
- Reported-by: Bobbeh Rhino - Patched-by: Bobbeh Rhino
Thanks a lot!
IMAP APPEND plus CRLF conversion command injection ==================================================
Project curl Security Advisory, October 14 2026 Permalink
VULNERABILITY -------------
Enabling CURLOPTCRLF causes curl to advertise the raw input byte count in the IMAP APPEND {N} literal while transmitting line-ending expanded data. The server reads only $N$ bytes for the payload, causing the remaining overflow bytes to be interpreted and executed as pipelined IMAP commands within the authenticated session.
INFO ----
Combining IMAP append with CRLF conversions is probably a rare occasion.
The Common Vulnerabilities and Exposures (CVE) project has assigned the name CVE-2026-87864 to this issue.
CWE-130: Improper Handling of Length Parameter Inconsistency
Severity: Low
AFFECTED VERSIONS -----------------
- Affected versions: curl 7.30.0 to and including 8.21.0 - Not affected versions: curl < 7.30.0 and >= 8.22.0 - Introduced-in: https://github.com/curl/curl/commit/f8c8c76d39ac2fa825481ba42
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/3b547de301342b347fb3c6ea6ae797
RECOMMENDATIONS ---------------
A - Upgrade curl to version 8.22.0
B - Apply the patch to your local version
C - Avoid CURLOPTCRLF with IMAP
TIMELINE --------
This issue was reported to the curl project on August 26, 2026.
curl 8.22.0 was released on September 2, 2026. This advisory was published on October 14, 2026.
CREDITS -------
- Reported-by: Stanislav Fort (Aisle Research) - Patched-by: Stefan Eissing
Thanks a lot!
An authenticated HTTPS origin can supply an HSTS max-age value that the parser accepts, but time serialization later fails to process. On 64-bit systems, extreme max-age values compute an absolute expiry within standard time integer limits that exceeds calendar time structure bounds. During cache saves, the original HSTS file is truncated before writing a temporary replacement; when serialization fails, the temporary file is deleted, leaving an empty or partial cache. Because the save error is silently ignored during cleanup, curl exits successfully despite the data loss.
HSTS response erases persisted entries ======================================
Project curl Security Advisory, October 14 2026 Permalink
VULNERABILITY -------------
An authenticated HTTPS origin can supply an HSTS max-age value that the parser accepts, but time serialization later fails to process. On 64-bit systems, extreme max-age values compute an absolute expiry within standard time integer limits that exceeds calendar time structure bounds. During cache saves, the original HSTS file is truncated before writing a temporary replacement; when serialization fails, the temporary file is deleted, leaving an empty or partial cache. Because the save error is silently ignored during cleanup, curl exits successfully despite the data loss.
INFO ----
The Common Vulnerabilities and Exposures (CVE) project has assigned the name CVE-2026-87863 to this issue.
CWE-201: Information Exposure Through Sent Data
Severity: Low
AFFECTED VERSIONS -----------------
- Affected versions: curl 8.2.0 to and including 8.22.0 - Not affected versions: curl < 8.2.0 and >= 8.23.0 - Introduced-in: https://github.com/curl/curl/commit/0c667188e0c6cda615a036b8a
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/08d50a791b3197a3d0a4fc2f778e24
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!
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!
Negotiate credentials sent to redirected origin
Negotiate credentials sent to redirected origin ===============================================
Project curl Security Advisory, October 14 2026 Permalink
VULNERABILITY -------------
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.
INFO ----
ambient user is the term used for when curl itself does not actually know the credentials, but curl has been instructed to pass on what the kerberos system provides it. This is accomplished by providing a blank username to curl.
To trigger this flaw, the redirect needs to be done to a URL with userauth details (name and password) like https://user:pass@evil.example/. This is a rare style, unless done on purpose.
This bug also does not trigger if curl was told to disallow usernames in URLs.
The Common Vulnerabilities and Exposures (CVE) project has assigned the name CVE-2026-86413 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/8f71d0fde515aa4c68002477
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/43029e2ec37eba2354ced199ccd88
RECOMMENDATIONS --------------
A - Upgrade curl to version 8.23.0
B - Apply the patch to your local version
C - Do not a ambient user with redirects
TIMELINE --------
This issue was reported to the curl project on September 3, 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: Stefan Eissing
Thanks a lot!