Skip to content

Bump mongo-c-driver from 2.5.7 to 2.5.8 - #130323

Merged
thevar1able merged 1 commit into
ClickHouse:masterfrom
actueleai:bump-mongo-c-driver-2.5.8
Nov 10, 2026
Merged

thevar1able merged 1 commit into
ClickHouse:masterfrom
actueleai:bump-mongo-c-driver-2.5.8

Conversation

@actueleai

@actueleai actueleai commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Bumps mongo-c-driver from 2.5.7 to 2.5.8, fixing two driver defects a malicious MongoDB endpoint can trigger through the MongoDB engine or the mongodb() table function.

CVEs

  • CVE-2026-120956: a malformed cursor.ns in a server reply aborts the process and reads out of bounds.
  • CVE-2026-120678: an OP_COMPRESSED reply that fails to decompress leaks its buffer (the driver decompresses such replies whether or not compression was negotiated).

ClickHouse-side changes

  • contrib/mongo-c-driver-cmake/CMakeLists.txt: libbson_VERSION* / libmongoc_VERSION* set to 2.5.8.

Fork

Changelog category (leave one):

  • Critical Bug Fix (crash, data loss, RBAC)

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

Update mongo-c-driver from 2.5.7 to 2.5.8 to fix a crash and a memory leak when a MongoDB server sends malformed replies.


Workflow [PR]
Sync PR [sync-upstream/pr/130323]

Version info

  • Merged into: 26.11.1.1787-master (included in 26.11 and later)

Fixes CVE-2026-120954, CVE-2026-120955, CVE-2026-120956, CVE-2026-120684
and CVE-2026-120678.

The ClickHouse fork branch `ClickHouse/2.5.8` carries the upstream 2.5.8 tag
plus the existing ClickHouse patch series (strerror_l for musl/FreeBSD,
`mlib_have_posix_clocks` detection on Darwin/FreeBSD/musl, reply memory leak
on retryable cursor server-selection failure, a redundant store in
`_mongoc_handshake_freeze`, and not printing option values in the
deprecated-option conflict error).

Upstream 2.5.8 adds no source files and no changes to the `config.h.in`
templates, so only the version numbers in `contrib/mongo-c-driver-cmake`
change.

Co-Authored-By: Claude Code <[email protected]>
@thevar1able thevar1able added the ci-skip-new-tests-check Ignore a check for new tests in bugfix PRs label Nov 9, 2026
@thevar1able thevar1able self-assigned this Nov 9, 2026
@clickhouse-gh

clickhouse-gh Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [b2c67a4]

Summary: ✅


AI Review

Summary

Updates mongo-c-driver from 2.5.7 to 2.5.8 to fix malformed MongoDB reply handling, preserving the five ClickHouse patches. No actionable findings at PR head b2c67a475d3fb1c633bfd0f507acb505bacf41d9. All six focused upstream cursor namespace, decompression, and GridFS append tests passed with ASan and UBSan, without sanitizer diagnostics.

Missing context / blind spots
  • ⚠️ Local validation covered the standalone driver with TLS and compression backends disabled. Full ClickHouse integration and TLS/Zstd configurations still require the corresponding CI builds and MongoDB integration tests.
Final Verdict

Status: ✅ Approve. No required changes.

@clickhouse-gh clickhouse-gh Bot added pr-critical-bugfix submodule changed At least one submodule changed in this PR. pr-must-backport Pull request should be backported intentionally. Use this label with great care! labels Nov 9, 2026
@thevar1able thevar1able added the can be tested Allows running workflows for external contributors label Nov 9, 2026
@clickhouse-gh clickhouse-gh Bot added manual approve Manual approve required to run CI comp-external-dependencies Third-party deps updates in contrib/, vendored code, and platform base libraries. labels Nov 9, 2026
@clickhouse-gh

clickhouse-gh Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Build profile diff (arm_release)

Comparing b2c67a475 with master 4ce893869 (stripped binary size, per-symbol sizes and ThinLTO time; compile times per translation unit against the most recent warmup build that recompiled it).

✅ No significant changes.

Binary sizes

programs/clickhouse-stripped: smaller than the master baseline by the known offset between the two builds, so the difference is not shown. A delta that differs from the offset by more than 50% of it is shown, in either direction.

The official master build is compiled with -g and a pull request build is not, and XRay counts debug instructions towards its instrumentation threshold, so master instruments thousands of functions more and its binary is ~0.4% larger no matter what the pull request does.

Compile time of recompiled translation units

15 translation units recompiled, 6 s compile time in total, 15 of them have a recent master baseline.

Job report

@thevar1able
thevar1able added this pull request to the merge queue Nov 9, 2026
Merged via the queue into ClickHouse:master with commit 271a02e Nov 10, 2026
382 of 383 checks passed
@thevar1able
thevar1able deleted the bump-mongo-c-driver-2.5.8 branch November 10, 2026 01:20
@robot-ch-test-poll4 robot-ch-test-poll4 added the pr-synced-to-cloud The PR is synced to the cloud repo label Nov 10, 2026
@robot-clickhouse-ci-2 robot-clickhouse-ci-2 added the pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR label Nov 10, 2026
@rschu1ze

Copy link
Copy Markdown
Member

@thevar1able The backports are unfortunately destroyed, PTAL.

robot-clickhouse added a commit that referenced this pull request Nov 10, 2026
Cherry pick #130323 to 26.3: Bump `mongo-c-driver` from 2.5.7 to 2.5.8
robot-clickhouse added a commit that referenced this pull request Nov 10, 2026
Cherry pick #130323 to 26.8: Bump `mongo-c-driver` from 2.5.7 to 2.5.8
robot-clickhouse added a commit that referenced this pull request Nov 10, 2026
Cherry pick #130323 to 26.9: Bump `mongo-c-driver` from 2.5.7 to 2.5.8
robot-clickhouse added a commit that referenced this pull request Nov 10, 2026
Cherry pick #130323 to 26.10: Bump `mongo-c-driver` from 2.5.7 to 2.5.8
@robot-clickhouse-ci-2 robot-clickhouse-ci-2 added the pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore label Nov 10, 2026
clickhouse-gh Bot added a commit that referenced this pull request Nov 10, 2026
Backport #130323 to 26.8: Bump `mongo-c-driver` from 2.5.7 to 2.5.8
clickhouse-gh Bot added a commit that referenced this pull request Nov 10, 2026
Backport #130323 to 26.10: Bump `mongo-c-driver` from 2.5.7 to 2.5.8
PedroTadim added a commit that referenced this pull request Nov 11, 2026
Backport #130323 to 26.3: Bump `mongo-c-driver` from 2.5.7 to 2.5.8
clickhouse-gh Bot added a commit that referenced this pull request Nov 11, 2026
Backport #130323 to 26.9: Bump `mongo-c-driver` from 2.5.7 to 2.5.8
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 ci-skip-new-tests-check Ignore a check for new tests in bugfix PRs comp-external-dependencies Third-party deps updates in contrib/, vendored code, and platform base libraries. manual approve Manual approve required to run CI pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore pr-critical-bugfix pr-must-backport Pull request should be backported intentionally. Use this label with great care! pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR pr-synced-to-cloud The PR is synced to the cloud repo submodule changed At least one submodule changed in this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants