Skip to content

Bump curl to 8.21.0 - #114301

Merged
thevar1able merged 1 commit into
ClickHouse:25.8from
chethan-64:bump-curl-8.21.0
Aug 11, 2026
Merged

thevar1able merged 1 commit into
ClickHouse:25.8from
chethan-64:bump-curl-8.21.0

Conversation

@chethan-64

Copy link
Copy Markdown

Fixes 10 CVEs from the curl 8.21.0 security disclosure that apply to
our build:

  • CVE-2026-8458 — wrong connection reuse across different services;
    generic connection-cache logic, not protocol-gated.
  • CVE-2026-8924 — trailing-dot domain super cookie; generic cookie
    handling.
  • CVE-2026-8926 — password leak via netrc + user-in-URL; generic
    auth handling.
  • CVE-2026-8927 — cross-proxy Digest auth state leak (env-set
    proxy); generic proxy/auth handling.
  • CVE-2026-8932 — incomplete mTLS config matching on connection
    reuse; generic TLS/connection-cache logic.
  • CVE-2026-9079 — stale proxy password reused across requests;
    generic proxy handling.
  • CVE-2026-9080 — use-after-free after pausing a transfer in a
    socket callback; generic core code path, any protocol.
  • CVE-2026-9546 — referer header persists after being cleared;
    generic HTTP option handling.
  • CVE-2026-11586 — WebSocket auto-PONG memory exhaustion; WS
    support is not in our CURL_DISABLE_* list, so it's compiled in.
  • CVE-2026-11856 — cross-origin Digest auth state leak on
    connection reuse; generic proxy/auth handling.

Updated curl-cmake/CMakeLists.txt for curl 8.21.0's source layout:
lib/noproxy.c was removed upstream (logic moved into new lib/proxy.c);
also added cf-recvbuf.c, cf-setup.c, creds.c, peer.c, and
vtls/vtls_config.c, all new unconditional core files from the same
refactor.

Verified: ninja _curl builds and links clean.

Changelog category (leave one):

  • Bug Fix (user-visible misbehavior in an official stable release)

Changelog entry:

Updated the bundled curl library to 8.21.0, fixing several security
issues affecting connection reuse, proxy authentication, cookie
handling, and WebSocket support.

@CLAassistant

CLAassistant commented Aug 11, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@chethan-64
chethan-64 force-pushed the bump-curl-8.21.0 branch 2 times, most recently from a9d92ed to 7d06f4d Compare August 11, 2026 10:54
Fixes 10 CVEs from the curl 8.21.0 security disclosure that apply
to our build (connection reuse, cookie handling, proxy/Digest auth,
mTLS matching, WebSocket support). Updated curl-cmake/CMakeLists.txt
for curl 8.21.0's source layout: lib/noproxy.c was removed upstream
(logic moved into new lib/proxy.c); also added cf-recvbuf.c,
cf-setup.c, creds.c, peer.c, and vtls/vtls_config.c.

Verified: ninja _curl builds and links clean.
@SmitaRKulkarni SmitaRKulkarni added the can be tested Allows running workflows for external contributors label Aug 11, 2026
@SmitaRKulkarni

Copy link
Copy Markdown
Member

@thevar1able : Maybe you would like to review this?

@clickhouse-gh

clickhouse-gh Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [1399bb0]

@thevar1able thevar1able self-assigned this Aug 11, 2026
@thevar1able
thevar1able merged commit e3ea4b5 into ClickHouse:25.8 Aug 11, 2026
30 of 35 checks passed
@rschu1ze

Copy link
Copy Markdown
Member

@thevar1able @chethan-64 Could you please check if other supported ClickHouse versions (specifically 26.3, 26.5) will need this PR? We generally like to keep submodule changes in sync across versions. Note that curl was removed in 26.6 (#108296).

@thevar1able

Copy link
Copy Markdown
Member

@rschu1ze I'll see if we can backport curl removal there, and will backport the bump if removal is too complex.

@thevar1able

thevar1able commented Aug 17, 2026 •

Copy link
Copy Markdown
Member

VighneshPath pushed a commit to VighneshPath/ClickHouse that referenced this pull request Sep 16, 2026
Backport of ClickHouse#114301 (which
targeted 25.8) to 26.6. `curl` is still bundled in 26.6: the removal in
ClickHouse#108296 landed after the
26.6 branch was cut, so it only shipped in 26.7.

Fixes 10 CVEs from the curl 8.21.0 security disclosure that apply to our
build (connection reuse, cookie handling, proxy and Digest auth, mTLS
config matching, WebSocket auto-PONG memory exhaustion).

Adapted for 26.6's reduced source list (see "Disable unused curl
features"): `lib/noproxy.c` was removed upstream, its logic moved into
the new `lib/proxy.c`; also added the new unconditional core files
`lib/cf-recvbuf.c`, `lib/cf-setup.c`, `lib/creds.c`, `lib/peer.c`, and
`lib/vtls/vtls_config.c`.

Verified: every file in the source list compiles, and the resulting
objects have no unresolved internal `Curl_`/`curlx_` symbols.

Co-Authored-By: chethan-64 <[email protected]>
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

can be tested Allows running workflows for external contributors

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants