CVE-2024-1597
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.
Published:Feb 19, 2024
Last Modified:Nov 3, 2025
EPS:Feb 19, 2024
EPSS Score:0.00306
CVSS Score:10
Affected Products
Vendor
Product
Action
Vendor
Fedoraproject
Product
Fedora
Fedoraproject
Fedora
Vendor
Pgjdbc
Product
Pgjdbc
Pgjdbc
Pgjdbc
Vendor
Postgresql
Product
Postgresql Jdbc Driver
Postgresql
Postgresql Jdbc Driver
Vendor
Redhat
Product
Apache Camel Spring Boot
Redhat
Apache Camel Spring Boot
Vendor
Redhat
Product
Build Keycloak
Redhat
Build Keycloak
Vendor
Redhat
Product
Camel K
Redhat
Camel K
Vendor
Redhat
Product
Enterprise Linux
Redhat
Enterprise Linux
Vendor
Redhat
Product
Openshift Serverless
Redhat
Openshift Serverless
Vendor
Redhat
Product
Quarkus
Redhat
Quarkus
Vendor
Redhat
Product
Rhel Aus
Redhat
Rhel Aus
Vendor
Redhat
Product
Rhel E4s
Redhat
Rhel E4s
Vendor
Redhat
Product
Rhel Eus
Redhat
Rhel Eus
Vendor
Redhat
Product
Rhel Tus
Redhat
Rhel Tus
Vendor
Redhat
Product
Rhosemc
Redhat
Rhosemc
Exploits
No exploit reference
Common Weakness Enumeration
Common Attack Pattern Enumeration and Classification (CAPEC)
Related CVEs
References
Common Vulnerability Scoring System
Attack Vector
Network
Adjacent
Local
Physical
Privileges Required
None
Low
High
User Interaction
None
Required
Scope
Unchanged
Changed
Confidentiality
None
Low
High
Integrity
None
Low
High
Availability
None
Low
High
