CVE-2022-21724: USN-9491-1: PostgreSQL JDBC Driver vulnerabilities
Vulnerability · Reported by Ubuntu Security Notices · · CWE-665
- Severity
- Critical Risk score 98/100
- CVSS
- 9.8 v3.1 · from NVD
- Exploit chance (EPSS)
- 3.2% Higher than 89% of CVEs
- Known exploited
- No Not in CISA KEV
Summary
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 Ubuntu 20.04 LTS. (CVE-2022-21724) It was discovered that the PostgreSQL JDBC Driver did not properly escape column names in the ResultSet.refreshRow() method. An attacker could possibly use this issue to perform SQL injection and execute additional SQL commands. (CVE-2022-31197) It was discovered that the PostgreSQL JDBC Driver created temporary files with insecure permissions when handling large input streams. A local attacker could possibly use this issue to obtain sensitive information. This issue only affected Ubuntu 18.04 LTS, Ubuntu 20.04 LTS and Ubuntu 22.04 LTS. (CVE-2022-41946) It was discovered that the PostgreSQL JDBC Driver did not properly handle certain query placeholders when using the simple query mode. An attacker could possibly use this issue to perform SQL injection and al
How this vulnerability can be exploited
An attacker can exploit this vulnerability remotely over the network, without any login, and without any action from a user. Attack complexity is low, so no special conditions are needed. If successful, the attacker could read sensitive data, modify data or code and crash or disrupt the service.
Is it being exploited?
The EPSS model estimates a 3.20% chance this CVE will be exploited in the next 30 days, which is elevated and higher than 89% of all published CVEs.
Patch priority and what to do
Patch as soon as possible, ideally within days. It is remotely reachable or critical severity, so exposure to the internet greatly increases risk. 1) Check whether you run the affected product and version. 2) Apply the vendor update or patch listed in the advisory. 3) Until patched, restrict network access to the service (firewall, VPN, WAF rules). 4) Review logs for signs of exploitation since the publication date.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Tags
rce, CVE-2022-21724, Linux
Sources & references
- Original article / advisory (Ubuntu Security Notices) ↗
- NIST NVD: CVE-2022-21724 ↗
- CVE.org record ↗
- FIRST.org EPSS model ↗
How this data is collected: methodology & sources.