Skip to content
NewA calmer, faster ZeroHour

PostgreSQL JDBC Driver flaws allow code execution and SQL injection

Original title: USN-9491-1: PostgreSQL JDBC Driver vulnerabilities

Ubuntu Security Notices ()
AI summary · x-ai/grok-4.7Summaries by Vani AI

CVE-2022-21724 hits only four older Ubuntu LTS releases; CVE-2022-31197 is SQL injection via refreshRow.

Ubuntu notice USN-9491-1 covers PostgreSQL JDBC Driver flaws. An attacker who controls the connection URL or properties could instantiate unexpected classes and possibly execute arbitrary code (CVE-2022-21724). That issue only affected Ubuntu 14.04 LTS, 16.04 LTS, 18.04 LTS and 20.04 LTS. Unescaped column names in ResultSet.refreshRow() could allow SQL injection and extra SQL commands (CVE-2022-31197). The excerpt is cut off and gives no fixes.

Unconfirmed: The notice excerpt is cut off, so later issues and fixed versions are not shown.

Key facts
  • Code execution requires control of the JDBC connection URL or properties.
  • CVE-2022-21724 affected only Ubuntu 14.04 through 20.04 LTS.
  • CVE-2022-31197 can run additional SQL through ResultSet.refreshRow().
Security assessment · AI, from the article

Impact: arbitrary code execution or SQL injection

ProductAffected
PostgreSQL JDBC DriverUbuntu 14.04 LTS, 16.04 LTS, 18.04 LTS and 20.04 LTS for CVE-2022-21724
Analyze CVE-2022-21724 with Vani AIImpact, affected versions, exploitation, mitigations and detection

Vulnerabilities mentioned

All
CVEVulnerabilityCVSSEPSSSignalsPublished
CVE-2022-21724
pgjdbc is the offical PostgreSQL JDBC Driver
9.83%PoC
CVE-2022-31197
PostgreSQL JDBC Driver (PgJDBC for short) allows Java programs to connect to a PostgreSQL database using standard, database independent Java code
8.02%PoC

From the original article

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.

Ubuntu Security Notices

ubuntu.com

Read the full article at Ubuntu Security Notices

A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.