CVE-2024-1597 Details
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.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 10, 2024References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-89 | Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') | [email protected] |
| CWE-89 | Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') | PostgreSQL |
Affected Products
| Product | Versions |
|---|---|
| postgresql postgresql jdbc driver | < 42.2.28 >= 42.3.0, < 42.3.9 >= 42.4.0, < 42.4.4 >= 42.5.0, < 42.5.5 >= 42.6.0, < 42.6.1 >= 42.7.0, < 42.7.2 |
CPE
Remediation
| |
| fedoraproject fedora | 40 |
CPE
Remediation
| |
Change History
14 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | PostgreSQL |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 3, 2025 | CVE Modified | CVE |
| Jun 12, 2025 | CVE Modified | CVE |
| Nov 21, 2024 | CVE Modified | CVE |
| Jun 10, 2024 | CVE Modified | PostgreSQL |
| May 14, 2024 | CVE Modified | PostgreSQL |
| May 1, 2024 | CVE Modified | PostgreSQL |
| Apr 19, 2024 | CVE Modified | PostgreSQL |
| Apr 18, 2024 | CVE Modified | PostgreSQL |
| Mar 25, 2024 | Initial Analysis | [email protected] |
| Mar 23, 2024 | CVE Modified | PostgreSQL |
| Feb 28, 2024 | CVE Modified | PostgreSQL |
| Feb 19, 2024 | New CVE Received | PostgreSQL |