Vulnerability Monitor

The vendors, products, and vulnerabilities you care about

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

2024-02-19T13:15:07.740

Last Modified

2025-06-12T16:15:21.557

Status

Modified

Source

f86ef6dc-4d3a-42ad-8f28-e6d5547a5007

Severity

CVSSv3.1: 10.0 (CRITICAL)

Weaknesses
  • Type: Secondary
    CWE-89
  • Type: Primary
    CWE-89

Affected Vendors & Products
Type Vendor Product Version/Range Vulnerable?
Application postgresql postgresql_jdbc_driver < 42.2.28 Yes
Application postgresql postgresql_jdbc_driver < 42.3.9 Yes
Application postgresql postgresql_jdbc_driver < 42.4.4 Yes
Application postgresql postgresql_jdbc_driver < 42.5.5 Yes
Application postgresql postgresql_jdbc_driver < 42.6.1 Yes
Application postgresql postgresql_jdbc_driver < 42.7.2 Yes
Operating System fedoraproject fedora 40 Yes

References