PostgreSQL JDBC Driver flaws allow code execution and SQL injection
Original title: USN-9491-1: PostgreSQL JDBC Driver vulnerabilities
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.
- 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().
Impact: arbitrary code execution or SQL injection
| Product | Affected |
|---|---|
| PostgreSQL JDBC Driver | Ubuntu 14.04 LTS, 16.04 LTS, 18.04 LTS and 20.04 LTS for CVE-2022-21724 |
- Products
- PostgreSQL JDBC Driver
- Organizations
- Ubuntu
Vulnerabilities mentioned
All| CVE | Vulnerability | CVSS | EPSS | Signals | Published |
|---|---|---|---|---|---|
| CVE-2022-21724 | pgjdbc is the offical PostgreSQL JDBC Driver | 9.8 | 3% | 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.0 | 2% | 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.com
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.