HomePostgresqlCVE-2024-1597

CVE-2024-1597

CRITICAL
10.0CVSS
Published: 2024-02-19
Updated: 2025-11-03
AI Analysis

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 queries bring against SQL Injection attacks. Versions before 42.7.2, 42.6.1, 42.5.5, 42.4.4, 42.3.9, and 42.2.28 are affected.

CVSS Metrics

Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
Attack Vector
network
Complexity
low
Privileges
none
User Action
none
Scope
changed
Confidentiality
high
Integrity
high
Availability
high
Weaknesses
CWE-89CWE-89

Metadata

Primary Vendor
POSTGRESQL
Published
2/19/2024
Last Modified
11/3/2025
Source
NIST NVD
Note: Verify all details with official vendor sources before applying patches.

Affected Products

postgresql : postgresql_jdbc_driverpostgresql : postgresql_jdbc_driverpostgresql : postgresql_jdbc_driverpostgresql : postgresql_jdbc_driverpostgresql : postgresql_jdbc_driverpostgresql : postgresql_jdbc_driverfedoraproject : fedora

AI-Powered Remediation

Generate remediation guidance or a C-suite brief for this vulnerability.

Executive Intelligence Brief

CVE-CVE-2024-1597 | CRITICAL Severity | CVEDatabase.com | CVEDatabase.com