Skip to content

HackerOne

curl

Every publicly disclosed report for curl and what kind of bugs they were.

disclosed reports
657
most reported class
Memory corruption
bug classes found
12
first disclosure
2019
Scope, rewards and live status on bugbounty.fyi Accepting reports Disclosure program, no bounty 1 target in scope

Disclosed reports

Newest first. Only what curl chose to make public.

Memory corruption

Multiple Vulnerabilities in curl/libcurl URL Parser (RFC3986 Compliance Issues)

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

Critical
Memory corruption

Use-after-free read of the CURLOPT_RESOLVE list after curl_easy_reset()

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.

curl

High
Info disclosure

Cross-IP Cookie Disclosure via Empty Custom Host Header Truncation

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

Medium
Misconfiguration

SFTP connection reuse skips the host-key pin of a later transfer

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

Low
Cache bugs

curl 8.23.0 keeps sending requests to an HTTP/3 backend after Alt-Svc: clear

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.

curl

High
Memory corruption

Re-entrant curl_easy_pause UAF in cw-pause

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.

curl

Low
Info disclosure

netrc credentials leaked to a cross-host redirect target on the Basic auth path (not covered by redirect credential protections)

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.

curl

Medium
Crypto

wolfSSL TLS sessions retain native-CA trust after the application narrows trust

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

Low
Crypto

OpenSSL `--cert-status` accepts indefinitely stale GOOD OCSP staples

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.

curl

Medium
Crypto

GnuTLS + Apple SecTrust discards authenticated OCSP failure

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.

curl

Medium
Crypto

OpenSSL+Apple SecTrust: SecTrust accepts certificates that the app's CURLOPT_SSL_CTX_FUNCTION trust store or verify callback rejected

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.

curl

Low
Info disclosure

Cross-protocol redirect to imap:// or smtp:// uploads the -F/MIMEPOST form and the custom Authorization/Cookie headers to the redirect target

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.

curl

Low
Info disclosure

FTP authentication options leak to a cross-origin FTP redirect with unrestricted auth disabled

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.

curl

Low
Crypto

14: HSTS cache import silently drops a longer-lived child beneath an includeSubDomains parent

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

Info disclosure

20: HTAB before `Secure` attribute silently drops the Secure cookie flag

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.

curl

Account takeover

Windows SSPI connection-pool probe can reuse a connection under the wrong user

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.

curl

Medium
Business logic

Derived cookie Path aborts cookie jar loading in curl 8.23.0

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

Low
Memory corruption

server filename with control characters printed to terminal (`-J`)

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.

curl

Low
Account takeover

CVE-2026-115529: Schannel TLS auto client session resumption

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.

curl

Low
Memory corruption

CVE-2026-111954: upload reader failed redirect UAF

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.

curl

Low
Crypto

CVE-2026-111953: GnuTLS SecTrust OCSP staple bypass

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

Low
Crypto

CVE-2026-111950: TLS session cache diff scheme reuse

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.

curl

Low
Crypto

CVE-2026-111484: OpenSSL with SecTrust accepts bad OCSP staples

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.

curl

Medium
Crypto

CVE-2026-111482: libssh2 knownhosts prefix match

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.

curl

Low
Business logic

CVE-2026-111481: server-set cookie still aborts cookie jar

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.

curl

Low
Memory corruption

CVE-2026-111480: pause UAF from within callback

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.

curl

Low
Memory corruption

CVE-2026-111952: OpenSSL provider use-after-free again

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.

curl

Medium
Memory corruption

CVE-2026-111878: OpenSSL provider UAF on TLS shutdown

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.

curl

Low