Repository navigation
Bump curl to 8.21.0 - #114301
Merged
Merged
Bump curl to 8.21.0#114301
Conversation
chethan-64
force-pushed
the
bump-curl-8.21.0
branch
2 times, most recently
from
August 11, 2026 10:54
a9d92ed to
7d06f4d
Compare
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.
chethan-64
force-pushed
the
bump-curl-8.21.0
branch
from
August 11, 2026 10:59
7d06f4d to
1399bb0
Compare
Member
|
@thevar1able : Maybe you would like to review this? |
Contributor
|
Workflow [BackportPR], commit [1399bb0] |
thevar1able
approved these changes
Aug 11, 2026
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). |
Member
|
@rschu1ze I'll see if we can backport curl removal there, and will backport the bump if removal is too complex. |
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes 10 CVEs from the curl 8.21.0 security disclosure that apply to
our build:
generic connection-cache logic, not protocol-gated.
handling.
auth handling.
proxy); generic proxy/auth handling.
reuse; generic TLS/connection-cache logic.
generic proxy handling.
socket callback; generic core code path, any protocol.
generic HTTP option handling.
support is not in our
CURL_DISABLE_*list, so it's compiled in.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):
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.