Skip to content

Backport #111516 to 26.6: Fix SQL injection in PostgreSQL metadata queries via unescaped schema, column and publication names - #118762

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

clickhouse-gh[bot] merged 3 commits into
26.6from
backport/26.6/111516

Conversation

@robot-ch-test-poll2

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

Copy link
Copy Markdown
Contributor

Original pull-request #111516
Cherry-pick pull-request #118750

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.86

…eries via unescaped schema, column and publication names
@robot-ch-test-poll2 robot-ch-test-poll2 added pr-backport Changes, backported to release branch. Do not use manually - automated use only! pr-critical-bugfix labels Sep 8, 2026
@clickhouse-gh

clickhouse-gh Bot commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [d06ce9f]

Summary: ✅

Remove tests for `DatabasePostgreSQL` permanent-detach behavior. The release branch does not contain that feature, so the tests were accidentally included during backport conflict resolution. Retain `test_postgresql_database_engine_schema_sql_injection`.

CI report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=118762&sha=95a5ea70ba1907fef74f6b9d35c44d614437e352&name_0=BackportPR

PR: #118762
@clickhouse-gh
clickhouse-gh Bot merged commit 83de1cb into 26.6 Sep 9, 2026
38 of 39 checks passed
@clickhouse-gh
clickhouse-gh Bot deleted the backport/26.6/111516 branch September 9, 2026 09:24
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-critical-bugfix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants