CVE-2024-1597
Last modified
CVE-2024-1597 is a critical-severity vulnerability rated 9.8/10 on the CVSS scale. pgjdbc, the PostgreSQL JDBC Driver, allows attacker to inject SQL if using PreferQueryMode=SIMPLE. Note this is not the default. EPSS estimates a 4.81% chance of exploitation in the next 30 days.
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:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Postgresql | Postgresql Jdbc Driver | < 42.2.28 |
| Postgresql | Postgresql Jdbc Driver | >= 42.3.0, < 42.3.9 |
| Postgresql | Postgresql Jdbc Driver | >= 42.4.0, < 42.4.4 |
| Postgresql | Postgresql Jdbc Driver | >= 42.5.0, < 42.5.5 |
| Postgresql | Postgresql Jdbc Driver | >= 42.6.0, < 42.6.1 |
| Postgresql | Postgresql Jdbc Driver | >= 42.7.0, < 42.7.2 |
| Fedoraproject | Fedora | 40 |
References
- https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-24rp-q3w6-vc56Third Party Advisory
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TZQTSMESZD2RJ5XBPSXH3TIQVUW5DIUU/Mailing List, Third Party Advisory
- https://www.enterprisedb.com/docs/security/assessments/cve-2024-1597/Third Party Advisory
- https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-24rp-q3w6-vc56Third Party Advisory
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TZQTSMESZD2RJ5XBPSXH3TIQVUW5DIUU/Mailing List, Third Party Advisory
- https://www.enterprisedb.com/docs/security/assessments/cve-2024-1597/Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2024-1597?
How severe is CVE-2024-1597?
How do I fix CVE-2024-1597?
Are you affected by CVE-2024-1597?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
