Skip to content

Backport #108469 to 26.6: Fix SQL injection in PostgreSQL wire protocol parameter binding - #118067

Merged
clickhouse-gh[bot] merged 9 commits into
26.6from
backport/26.6/108469
Sep 7, 2026
Merged

clickhouse-gh[bot] merged 9 commits into
26.6from
backport/26.6/108469

Conversation

@robot-ch-test-poll2

@robot-ch-test-poll2 robot-ch-test-poll2 commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

Original pull-request #108469
Cherry-pick pull-request #118053

This pull-request is a last step of an automated backporting.
Treat it as a standard pull-request: look at the checks and resolve conflicts.
Merge it only if you intend to backport changes to the target branch, otherwise just close it.

The PR source

The PR is created in the CI job

Version info

  • Merged into: 26.6.5.63

@robot-ch-test-poll2 robot-ch-test-poll2 added pr-backport Changes, backported to release branch. Do not use manually - automated use only! pr-bugfix Pull request with bugfix, not backported by default labels Sep 4, 2026
@clickhouse-gh

clickhouse-gh Bot commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [194f7cf]

Summary: ✅

The `26.6` branch does not contain `removePgCatalogQualifier`, which was introduced after this backport target. Keep the extended-protocol statement body unchanged, as in the original security change.

CI: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=118067&sha=f2df86a7ff65ca8573f28ba2e391609930586b95&name_0=BackportPR&name_1=Build%20%28amd_darwin%29
The 26.6 backport includes `classifyNoOpDriverCommand` but does not use it in the simple-query path. Mark the helper `[[maybe_unused]]` so Darwin builds do not fail with `-Werror`.

CI: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=118067&sha=8d1a329af8e4ac3ad7b276d1f3e84a4fa0e5927c&name_0=BackportPR

PR: #118067
Keep the authentication-method vector compatible with `AuthenticationManager` while matching the handler factory, resolving the Darwin backport build failure.

CI: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=118067&sha=d861253b6ba0848f47167e14333c571b13bf9a0a&name_0=BackportPR

PR: #118067
Make `pg_namespace` and `pg_class` invoker-security views that include only databases and tables visible to the session user. Reset extended-query recovery only after a valid `Sync` is consumed.

CI: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=118067&sha=52e9c123040eb16941a303492f6c9e4b887f04d2&name_0=BackportPR

PR: #118067
@clickhouse-gh
clickhouse-gh Bot merged commit 608e2fc into 26.6 Sep 7, 2026
38 of 39 checks passed
@clickhouse-gh
clickhouse-gh Bot deleted the backport/26.6/108469 branch September 7, 2026 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-backport Changes, backported to release branch. Do not use manually - automated use only! pr-bugfix Pull request with bugfix, not backported by default

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants