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?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2024
- CVE-2024-1591Prior to version 24.1, a local authenticated attacker can vi…3.3
- CVE-2024-1592The Complianz – GDPR/CCPA Cookie Consent plugin for WordPres…4.3
- CVE-2024-1593A path traversal vulnerability exists in the mlflow/mlflow r…7.5
- CVE-2024-1594A path traversal vulnerability exists in the mlflow/mlflow r…7.5
- CVE-2024-1595Delta Electronics CNCSoft-B DOPSoft prior to v4.0.0.82 ins…7.8
- CVE-2024-1596The Ninja Forms - File Uploads plugin for WordPress is vulne…6.1
- CVE-2024-1598Potential buffer overflow in unsafe UEFI variable handling …7.8
- CVE-2024-1599Rejected reason: This CVE ID has been rejected or withdrawn …
- CVE-2024-1600A Local File Inclusion (LFI) vulnerability exists in the par…9.3
- CVE-2024-1601An SQL injection vulnerability exists in the `delete_discuss…9.8
- CVE-2024-1602parisneo/lollms-webui is vulnerable to stored Cross-Site Scr…6.1
- CVE-2024-1603paddlepaddle/paddle 2.6.0 allows arbitrary file read via pad…7.5
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
