Ubuntu Addresses Security Flaws in PostgreSQL JDBC Driver
Ubuntu released a security patch to fix several vulnerabilities in the PostgreSQL JDBC Driver, impacting multiple Ubuntu LTS releases.
LinuxOperating systemsDatabasesVulnerabilitiesKey points
- A security patch was issued to fix several vulnerabilities in the PostgreSQL JDBC Driver, impacting multiple Ubuntu LTS versions.
- The driver failed to properly validate classes from connection properties, potentially allowing arbitrary code execution if an attacker controlled connection details.
- Incorrect handling of query placeholders in simple query mode could lead to SQL injection and unauthorized query modifications.
Ubuntu has released a security patch to resolve several vulnerabilities in the PostgreSQL JDBC Driver, which affects multiple long-term support (LTS) versions of Ubuntu. One flaw involved the driver's failure to properly validate classes from connection properties, potentially allowing an attacker to execute arbitrary code if they had control over connection details. Another issue was the incorrect handling of query placeholders in simple query mode, which could lead to SQL injection and unauthorized query modifications. These vulnerabilities were assigned the CVE identifiers CVE-2022-21724, CVE-2022-31197, CVE-2022-41946, and CVE-2024-1597. The affected Ubuntu versions include 14.04 LTS, 16.04 LTS, 18.04 LTS, 20.04 LTS, and 22.04 LTS. After applying the update, Java applications using the PostgreSQL JDBC Driver must be restarted. The recommended package versions are libpostgresql-jdbc-java at 42.3.3-1ubuntu0.1~esm1, 42.2.10-1ubuntu0.1~esm2, 9.4.1212-1ubuntu0.1~esm2, 9.2-1002-1ubuntu0.16.04.1~esm1, and 9.2-1002-1ubuntu0.14.04.1~esm1. The advisory does not suggest any known exploitation in the wild or mention specific threat actors targeting these issues.
What to do
- Install the security update on affected Ubuntu versions to address the identified vulnerabilities.
- Restart Java applications using the PostgreSQL JDBC Driver after the update is applied.
- Ensure the recommended package versions are installed.
Original report
“USN-9491-1: PostgreSQL JDBC Driver vulnerabilities”
It was discovered that the PostgreSQL JDBC Driver did not properly verify that classes provided through certain connection properties implemented the expected interfaces before instantiating them. An attacker able to control the connection URL or properties could possibly use this issue to execute arbitrary code. This issue only affected Ubuntu 14.04 LTS, Ubuntu 16.04 LTS, Ubuntu 18.04 LTS and Ub…
- Kiro Crew Incorrect Default Permissions Vulnerability
- CVE-2026-85464 — Red Hat Quay 3
- Ubuntu Releases Pgpool-II Fixes for Credential Exposure and Authentication Bypass Flaws
- OpenAI and Cisco Debut Shirudo, an Open-Source Tool to Shield Linux Servers from Exploits
- AutoGPT SSRF Vulnerability in IPv6 Blocklist Allows Local Network Access