CVE-2024-1597SQL Injection in Pgjdbc

CWE-89SQL Injection15 documents12 sources
Severity
9.8CRITICALNVD
CNA10.0VulnCheck10.0
EPSS
0.5%
top 33.64%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedFeb 19
Latest updateApr 17

Description

pgjdbc, the PostgreSQL JDBC Driver, allows attacker to inject SQL if using PreferQueryMode=SIMPLE. Note this is not the default. In the default mode there is no vulnerability. A placeholder for a numeric value must be immediately preceded by a minus. There must be a second placeholder for a string value after the first placeholder; both must be on the same line. By constructing a matching string payload, the attacker can inject SQL to alter the query,bypassing the protections that parameterized

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HExploitability: 3.9 | Impact: 5.9

Affected Packages2 packages

NVDpostgresql/postgresql_jdbc_driver42.3.042.3.9+5
CVEListV5pgjdbc/pgjdbc< 42.7.2+5

Also affects: Fedora 40

🔴Vulnerability Details

6
GHSA
org.postgresql:postgresql vulnerable to SQL Injection via line comment generation2024-02-21
OSV
org.postgresql:postgresql vulnerable to SQL Injection via line comment generation2024-02-21
CVEList
pgjdbc SQL Injection via line comment generation2024-02-19
OSV
Duplicate Advisory: SQL injection in pgjdbc2024-02-19
OSV
CVE-2024-1597: pgjdbc, the PostgreSQL JDBC Driver, allows attacker to inject SQL if using PreferQueryMode=SIMPLE2024-02-19

📋Vendor Advisories

4
Oracle
Oracle Oracle Fusion Middleware Risk Matrix: Third Party (PostgreSQL JDBC Driver) — CVE-2024-15972024-04-15
Atlassian
SQLi (SQL Injection) org.postgresql:postgresql Dependency in Bamboo Data Center and Server NOTE : CVE-2024-1597 is a cri2024-03-19
Red Hat
pgjdbc: PostgreSQL JDBC Driver allows attacker to inject SQL if using PreferQueryMode=SIMPLE2024-02-19
Debian
CVE-2024-1597: libpgjava - pgjdbc, the PostgreSQL JDBC Driver, allows attacker to inject SQL if using Prefe...2024

🕵️Threat Intelligence

4
Qualys
Oracle Security Updates, April 2024: Critical Patch | Qualys2024-04-17
Qualys
Oracle Patch Update, April 2024 Security Update Review2024-04-17
Wiz
CVE-2026-21570 Impact, Exploitability, and Mitigation Steps | Wiz
Huntress
CVE-2024-1597 Vulnerability: Analysis, Detection, Removal | Huntress
CVE-2024-1597 — SQL Injection in Pgjdbc | cvebase