[FLINK-40243] Bump JDBC test dependencies: derby 10.15.2.0→10.17.1.0, postgresql 42.5.6→42.7.13 - #1167
[FLINK-40243] Bump JDBC test dependencies: derby 10.15.2.0→10.17.1.0, postgresql 42.5.6→42.7.13#1167r-sidd wants to merge 2 commits into
Conversation
The current version 42.5.6 has a direct vulnerability - CVE-2026-42198 (CVSS 7.5 HIGH). A malicious server can instruct the driver to perform SCRAM-SHA-256 authentication with a very large iteration count, causing excessive CPU usage and denial-of-service against connection pools. Affected versions: 42.2.0 through 42.7.10 Fixed in: 42.7.11 Current - Maven Repository: org.postgresql » postgresql » 42.5.6 Latest - Maven Repository: org.postgresql » postgresql » 42.7.13 Note: postgresql is declared <scope>test</scope> in flink-autoscaler-plugin-jdbc and is not bundled in any release artifact, so no NOTICE update is required.
Dennis-Mircea
left a comment
There was a problem hiding this comment.
This is the second CVE-driven bump in the flink-autoscaler-plugin-jdbc dependency family, after #1165 (derby). Rather than one PR/JIRA per driver, it would be cleaner to consolidate the JDBC plugin's database dependency bumps into a single PR (and ideally a single JIRA), so the whole family is reviewed and CI-validated together.
While at it, worth checking the rest of the same umbrella for available updates / advisories in the same pass.
postgresql and derby are both <scope>test</scope> here, so these are test/CI dependencies rather than shipped artifacts, which is worth stating in the JIRA so the security severity is scoped correctly.
Thanks @Dennis-Mircea - will consolidate the derby bump (#1165) into this PR so both are reviewed and CI-validated together under a single changeset. Checked the remaining deps - no CVEs so no updates needed there. Will update this PR shortly. |
Addresses CVE-2022-46337 (LDAP authentication bypass, CVSS 9.8). Consolidates with postgresql bump into a single changeset per reviewer feedback. derby is declared <scope>test</scope> in flink-autoscaler-standalone and flink-autoscaler-plugin-jdbc and is not bundled in any release artifact.
|
Thanks @r-sidd and @Dennis-Mircea, triggered CI. |
|
@r-sidd this CI error seems to be related: |
Let me check and fix this. |
What is the purpose of the change
Bump derby and postgresql JDBC driver versions to address known CVEs. Both dependencies are declared
<scope>test</scope>inflink-autoscaler-standaloneand/orflink-autoscaler-plugin-jdbcand are not bundled in any release artifact.Brief change log
Derby (
pom.xml):PostgreSQL JDBC driver (
flink-autoscaler-plugin-jdbc/pom.xml):Verifying this change
This change is a trivial rework / code cleanup without any test coverage.
Does this pull request potentially affect one of the following parts:
CustomResourceDescriptors: noDocumentation