Skip to content

[Security] Upgrade PostgreSQL JDBC Driver to fix CVE-2024-1597, CVE-2022-31197, CVE-2022-21724 #37942

@bvolpato

Description

@bvolpato

Summary

The PostgreSQL JDBC Driver used by Apache Beam (42.2.16) is affected by multiple security vulnerabilities:

CVE CVSS Severity Description
CVE-2024-1597 9.8 Critical SQL injection via preferQueryMode=simple
CVE-2022-21724 9.8 Critical Arbitrary code execution via connection property class loading
CVE-2022-31197 7.1 High SQL injection in ResultSet.refreshRow()

Proposed Fix

Upgrade postgres_version from 42.2.16 to 42.7.10 in BeamModulePlugin.groovy.

The PostgreSQL JDBC Driver maintains full JDBC 4.2 API backward compatibility across all 42.x releases. The changes between these versions are internal security and bug fixes with no public API changes.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions