Skip to content

[FLINK-40243] Bump JDBC test dependencies: derby 10.15.2.0→10.17.1.0, postgresql 42.5.6→42.7.13 - #1167

Open
r-sidd wants to merge 2 commits into
apache:mainfrom
r-sidd:FLINK-40243-bump-postgresql
Open

[FLINK-40243] Bump JDBC test dependencies: derby 10.15.2.0→10.17.1.0, postgresql 42.5.6→42.7.13#1167
r-sidd wants to merge 2 commits into
apache:mainfrom
r-sidd:FLINK-40243-bump-postgresql

Conversation

@r-sidd

@r-sidd r-sidd commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

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> in flink-autoscaler-standalone and/or flink-autoscaler-plugin-jdbc and are not bundled in any release artifact.

Brief change log

Derby (pom.xml):

  • CVE-2022-46337 — LDAP authentication bypass (CVSS 9.8)
  • Current: Maven Repository: org.apache.derby » derby » 10.15.2.0
  • Latest: Maven Repository: org.apache.derby » derby » 10.17.1.0

PostgreSQL JDBC driver (flink-autoscaler-plugin-jdbc/pom.xml):

  • CVE-2026-42198 — SCRAM-SHA-256 iteration-count DoS (CVSS 7.5 HIGH)
  • Current: Maven Repository: org.postgresql » postgresql » 42.5.6
  • Latest: Maven Repository: org.postgresql » postgresql » 42.7.13

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:

  • Dependencies (does it add or upgrade a dependency): yes
  • The public API, i.e., is any changes to the CustomResourceDescriptors: no
  • Core observer or reconciler logic that is regularly executed: no

Documentation

  • Does this pull request introduce a new feature? no
  • If yes, how is the feature documented? not applicable

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 Dennis-Mircea left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@r-sidd

r-sidd commented Jul 29, 2026

Copy link
Copy Markdown
Contributor Author

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.
@r-sidd r-sidd changed the title [FLINK-40243] Bump postgresql jdbc driver from 42.5.6 to 42.7.13 [FLINK-40243] Bump JDBC test dependencies: derby 10.15.2.0→10.17.1.0, postgresql 42.5.6→42.7.13 Jul 29, 2026
@r-sidd
r-sidd requested review from Dennis-Mircea and spuru9 July 29, 2026 15:49
@mbalassi

Copy link
Copy Markdown
Contributor

Thanks @r-sidd and @Dennis-Mircea, triggered CI.

@mbalassi

Copy link
Copy Markdown
Contributor

@r-sidd

r-sidd commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants