The report describes six issues in curl/libcurl's URL parsing, including a buffer over-read in Curl_urldecode when a caller passes a length larger than the buffer, double percent-decoding of hostnames, credential leakage via .netrc during redirects, path traversal through encoded dot segments, inconsistent backslash handling in ports, and Alt-Svc protocol-id parsing flaws. An attacker could potentially leak credentials, bypass hostname validation, read out-of-bounds memory, or traverse paths, depending on how applications use libcurl.
curl_easy_reset() does not clear the internal pointer to the CURLOPT_RESOLVE list, so after an application frees its list the next transfer reads freed memory while parsing resolve entries. This causes a heap-use-after-free read that crashes the process in a native build.
A malformed empty custom Host header caused libcurl to store a cookie with an empty domain, which was then sent to a different numerical IP address. An attacker could potentially disclose cookies across distinct IP origins when a shared cookie store is used.
curl's SSH connection reuse logic compares only the private and public key file names, so a second SFTP transfer on the same handle skips its own host-key pin and reuses the first connection. An attacker who controls the server for the first accepted transfer could receive or supply data that the later transfer's pin was meant to exclude.
curl 8.23.0 kept a cached HTTP/3 alternative route after the origin sent Alt-Svc: clear, so a later request went to a separate H3 backend instead of the origin. In the local test, a signed token sent to that backend was replayed through the normal origin to read one synthetic customer record.
The fix for a previous re-entrancy use-after-free in libcurl's cw-out writer did not cover the sibling cw-pause writer. A malicious server serving compressed content can trigger a nested pause/continue from a callback, causing a heap use-after-free or double-free in the paused body replay path.
The transfer path IDN-decodes the URL host with libidn2 but never re-validates it, so a fullwidth at sign in the host becomes an ASCII '@' after decoding. With --proxytunnel, curl then sends a CONNECT line containing userinfo, and a permissive proxy connects to the host after the '@', receiving the credentials curl scoped to the URL host.
curl's redirect credential protection does not cover credentials read from a .netrc file, so a cross-host redirect causes the netrc default or matching machine credential to be sent as a Basic Authorization header to the redirect target. An attacker who controls the redirect destination can read and decode that header to recover the user's login and password.
The TLS session cache key in curl's wolfSSL backend omits the resolved native-CA trust state, so a session authenticated under the build-default native CA store can be resumed after the application narrows trust. An attacker controlling an endpoint trusted only by the native store could then exchange data with the application despite the new policy rejecting a fresh handshake.
curl's OpenSSL backend passes a negative maximum age to OpenSSL's OCSP validity check, so a correctly signed GOOD OCSP staple with no nextUpdate field is accepted no matter how old it is. An attacker holding a revoked but unexpired certificate and its private key can replay an old GOOD staple and complete TLS connections to applications that enabled --cert-status.
When curl uses the GnuTLS backend together with Apple SecTrust, a failed OCSP staple check from GnuTLS is discarded if SecTrust accepts the chain, and SecTrust is never given the staple. An attacker holding the private key for a revoked but otherwise trusted certificate can therefore complete a TLS connection despite an explicit OCSP-stapling requirement.
On OpenSSL libcurl builds using Apple SecTrust, when an application narrows trust via CURLOPT_SSL_CTX_FUNCTION (own CA store or key pinning), libcurl falls back to SecTrust and accepts any certificate macOS trusts, returning success. An attacker who can intercept the connection and holds a certificate from any system-trusted CA can then perform a normal transfer despite the application's intended restriction.
When curl follows a redirect to an imap:// or smtp:// URL after a multipart form post, it uploads the whole form and copies custom Authorization and Cookie headers into the mail headers, even on 301/302/303 where HTTP would send no body. An attacker who controls the redirect target can therefore collect the bearer token or session cookie plus every file and field of the form.
The 80229 fix sends provider connections to the shutdown list, but curl_easy_cleanup() frees the easy handle's OSSL_LIB_CTX while the connection still references it; later reads or teardown use the freed context, causing a use-after-free that crashes.
libcurl 8.22.0 sends FTP account and alternative-to-user values retained on a reused easy handle to a new FTP origin reached via an HTTP-to-FTP redirect, even when unrestricted authentication is disabled. An attacker controlling an HTTP response could redirect the handle to their own FTP server and receive the retained authentication material.
When curl imports an HSTS cache, a child entry with includeSubDomains is silently dropped if a live includeSubDomains parent was imported first, because the importer treats the parent as a duplicate. After the parent expires, curl sends requests to the child over plaintext HTTP instead of upgrading to HTTPS, letting an active network attacker observe or modify that traffic.
curl's cookie parser fails to recognise the Secure attribute when it is preceded by a horizontal tab instead of a space, so the cookie is stored without its Secure flag. The cookie is then sent over plaintext HTTP, where a network attacker could capture it.
A connection pool health probe in curl can set a connection ID that is later reused by a different transfer, causing a Windows SSPI-authenticated connection to be reused under the wrong user. An attacker could potentially access data or perform actions authorised for another user.
When a cookie without a Path attribute is set on a very long request path, curl derives a cookie path from that URL and writes a serialised cookie-jar row that is longer than the reader's line buffer. A later curl run that loads that jar fails with CURLE_TOO_LARGE before sending any request.
curl's filename parsing for the -J option keeps control characters from the server's Content-Disposition header, and the warning message prints that name to the terminal unescaped. A malicious server could make the terminal clear the screen, hide earlier output or change colours.
In curl with the Schannel TLS backend, TLS session resumption kept a previously authenticated client certificate identity alive across a cross-origin redirect, even after automatic client certificate selection was turned off. An attacker who could influence a redirect could therefore cause an application to reach an mTLS-protected endpoint under the earlier client identity.
A stale client reader stack is left installed on a reused easy handle after a redirect that curl cannot follow, so the next upload reads from freed memory and sends it to the destination. An attacker-controlled server can trigger the redirect, and the application then leaks freed heap contents or crashes.
On curl builds that combine GnuTLS with Apple SecTrust, a failed GnuTLS verification is passed to SecTrust, and if SecTrust accepts the chain the GnuTLS failure is discarded. Because SecTrust is called without the stapled OCSP response, a revoked, forged or stale staple is never re-checked, so --cert-status can succeed when it should fail.
curl's TLS session cache key omits the URL scheme, so a session created for FTPS can be reused for HTTPS to the same host and port. An active network attacker who can redirect connections could make curl accept an attacker-controlled file as a verified HTTPS response.
When curl uses Apple SecTrust to verify the chain, a stapled OCSP response that SecTrust cannot validate is treated as 'no information' rather than a failure, so the handshake succeeds. An attacker with a revoked certificate's key could staple a stale or forged 'good' response and defeat --cert-status.
A known_hosts entry written in the bracketed name-and-port form is compared against the target hostname using a prefix match, so an entry for one host also matches a different host whose name begins with it. An attacker who can intercept the connection could then get curl to force a key type and have the application's key callback treat the attacker's key as a missing entry rather than a mismatch.
A server can set a cookie whose saved line exceeds the cookie file parser's line limit, because the domain and path are not counted against the Set-Cookie length limit. Every later curl run that loads the jar then fails with exit code 100, and if the same file is also passed to -c, the failed run rewrites the jar with no cookies at all.
A use-after-free and double free in libcurl's output flush loop occurs when an application pauses and then resumes a transfer from inside its own write or debug callback while write tracing is enabled. The freed buffer is read and freed again, crashing the application deterministically in a plain release build.
libcurl 8.23.0 caches its OpenSSL certificate store per multi handle even when a private provider library context is used, and that context is freed when the easy handle is cleaned up while cached CApath certificates remain. A malicious server can send a forged certificate naming a CA from the victim's CApath as issuer, causing a read of freed memory that crashed the client in testing.
A use-after-free occurs in curl when an application sets CURLOPT_SSLENGINE to an OpenSSL 3 provider name and uses the multi interface. The library context is freed while a deferred TLS shutdown still holds an SSL_CTX that borrows it, so later shutdown calls operate on freed memory.
CU
curl
Low
Instant results are busy. Press Enter to search every report.
No direct matches. Search every report above, or try a bug class like IDOR or SSRF.