[Security] Bump PostgreSQL JDBC Driver from 42.2.16 to 42.7.10#37941
[Security] Bump PostgreSQL JDBC Driver from 42.2.16 to 42.7.10#37941Abacn merged 2 commits intoapache:masterfrom
Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request enhances the project's security by updating the PostgreSQL JDBC Driver to a newer version. This critical update mitigates several known vulnerabilities, ensuring applications are protected against potential exploits without requiring changes to the public API or existing test suites. Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
|
Checks are failing. Will not request review until checks are succeeding. If you'd like to override that behavior, comment |
Abacn
left a comment
There was a problem hiding this comment.
LGTM after resolving merging conflicts in CHANGES.md
Upgrades the PostgreSQL JDBC Driver to address multiple CVEs: - CVE-2024-1597 (CVSS 9.8): SQL injection via preferQueryMode=simple - CVE-2022-31197: SQL injection in ResultSet.refreshRow - CVE-2022-21724: Arbitrary code execution via JDBC URL
2fa7a81 to
1242259
Compare
|
The failure is caused by the flaky Retriggering: Run Java_GCP_IO_Direct PreCommit |
|
Run Java_GCP_IO_Direct PreCommit |
|
different flaky tests in two runs, not related to this change |
|
You rocks, @bvolpato! Thank you very much! |
Summary
Bumps the PostgreSQL JDBC Driver from
42.2.16to42.7.10to address multiple security vulnerabilities.CVE Details:
preferQueryMode=simplein combination with application code that has a vulnerable SQL query.ResultSet.refreshRow()with column names containing a statement terminator.References:
Changes
postgres_versioninBeamModulePlugin.groovyfrom42.2.16to42.7.10CHANGES.mdfor the 2.73.0 releaseTesting
The PostgreSQL JDBC Driver maintains JDBC 4.2 API backward compatibility across 42.x releases. The changes between 42.2.16 and 42.7.10 are primarily internal security and bug fixes — no public API changes.
The existing test suites that exercise this dependency serve as sufficient regression coverage:
:sdks:java:io:jdbc:test— JdbcIO unit and integration tests via testcontainers with PostgreSQL:sdks:java:io:common:test— Common IO utilities:sdks:java:io:hadoop-format:test— HadoopFormatIO with PostgreSQL backendNo new tests are needed as the JDBC API surface is unchanged.
Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:
addresses #123), if applicable.CHANGES.mdwith noteworthy changes.See the Contributor Guide for more tips on how to make review process smoother.
GitHub Actions Tests Status (on master branch)