Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
CVE-2024-1597
February 19, 2024
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.
Affected Packages
org.postgresql:postgresql (JAVA):
Affected version(s) >=42.7.0 <42.7.2
Fix Suggestion:
Update to version 42.7.2
org.postgresql:postgresql (JAVA):
Affected version(s) >=9.2-1002-jdbc4 <42.2.28
Fix Suggestion:
Update to version 42.2.28
org.postgresql:postgresql (JAVA):
Affected version(s) >=42.4.0 <42.4.4
Fix Suggestion:
Update to version 42.4.4
org.postgresql:postgresql (JAVA):
Affected version(s) >=42.3.0 <42.3.9
Fix Suggestion:
Update to version 42.3.9
org.postgresql:postgresql (JAVA):
Affected version(s) >=42.5.0 <42.5.5
Fix Suggestion:
Update to version 42.5.5
org.postgresql:postgresql (JAVA):
Affected version(s) >=42.6.0 <42.6.1
Fix Suggestion:
Update to version 42.6.1
Related ResourcesĀ (24)
Do you need more information?
Contact Us
CVSS v4
Base Score:
10
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
HIGH
Subsequent System Integrity
HIGH
Subsequent System Availability
HIGH
CVSS v3
Base Score:
10
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
CHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Weakness Type (CWE)
Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
EPSS
Base Score:
0.55