CVE-2024-1597
pgjdbc SQL Injection via line comment generation
02 Description
pgjdbc SQL Injection via line comment generation
03 Exploitation and scoring
- Exploitation
- Public exploit code exists. CISA's assessment records a public proof of concept. That is not a report of exploitation in the wild.
- SSVC decision
- ExploitationpocPublic proof-of-concept exploit code exists. Not a report of exploitation in the wild.
- AutomatableyesAn attacker can reliably automate reconnaissance through exploitation, so this scales.
- Technical ImpacttotalSuccessful exploitation gives total control of the vulnerable component.
- EPSS probability
- 4.81% probability of exploitation activity in the next 30 days.
- EPSS percentile
- Equal to or higher than the score of 91.6% of scored records. A rank, not a probability.
- NVD base score
- 9.8 (CVSS v3.x), scored by the NVD independently of the CNA.
- NVD CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- NVD analysis status
- Modified. NVD last modified this record on 2026-06-17.
- Red Hat severity
- Important. Red Hat's rating for its own products, not a CVSS rating.
Exploit-prediction scores from FIRST. Independent scoring and analysis status from the NVD. Vendor severity from Red Hat. Exploitation assessment and catalog membership from CISA.
04 Metadata
- Published
- 2024-02-19 12:58Z2 YR AGO
- Last updated
- 2025-11-03 21:52Z12 MO AGO
- Reserved
- 2024-02-16
- Assigning CNA
- PostgreSQL
- Record state
- PUBLISHED
- Severity
- Critical (CVSS 10.0)
- CNA CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
- Weaknesses
- CWE-89Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')Base
- Data version
- 5.2
- Document digest
- dca673c487674a03ef4aff122fd3cbd3179afc78183a46b1856c01967d08f6c5
05 Affected products
06 References
- github.comhttps://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-24rp-q3w6-vc56
- www.enterprisedb.comhttps://www.enterprisedb.com/docs/security/assessments/cve-2024-1597/
- www.enterprisedb.comhttps://www.enterprisedb.com/docs/jdbc_connector/latest/01_jdbc_rel_notes/
- lists.fedoraproject.orghttps://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TZQTSMESZD2RJ5XBPSXH3TIQVUW5DIUU/
- security.netapp.comhttps://security.netapp.com/advisory/ntap-20240419-0008/
- www.openwall.comhttp://www.openwall.com/lists/oss-security/2024/04/02/6
- lists.debian.orghttps://lists.debian.org/debian-lts-announce/2024/05/msg00007.html
- www.sonarsource.comhttps://www.sonarsource.com/blog/double-dash-double-trouble-a-subtle-sql-injection-flaw/
- lists.debian.orghttps://lists.debian.org/debian-lts-announce/2024/12/msg00017.html
07 Fixed in
AlmaLinux 8
- postgresql-jdbc Fixed in 42.2.14-3.el8_9
- postgresql-jdbc-javadoc Fixed in 42.2.14-3.el8_9
Source: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.
AlmaLinux 9
- postgresql-jdbc Fixed in 42.2.28-1.el9_3
Source: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.
CloudLinux 8
- postgresql-jdbc Fixed in 42.2.14-3.el8_9
- postgresql-jdbc-javadoc Fixed in 42.2.14-3.el8_9
Derived from AlmaLinux 8. Partial coverage: only packages taken from AlmaLinux 8 are listed.
Source: CloudLinux errata, CloudLinux Inc. Derived from: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.
CloudLinux 9
- postgresql-jdbc Fixed in 42.2.28-1.el9_3
Derived from AlmaLinux 9. Partial coverage: only packages taken from AlmaLinux 9 are listed.
Source: CloudLinux errata, CloudLinux Inc. Derived from: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.
Debian 12
- libpgjava Fixed in 42.5.5-0+deb12u1
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Debian 13
- libpgjava Fixed in 42.7.2-1
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Debian 14
- libpgjava Fixed in 42.7.2-1
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu 14.04 LTS
- libpgjava No fix yet
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu 16.04 LTS
- libpgjava No fix yet
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu 22.04 LTS
- libpgjava No fix yet
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu Pro 18.04 LTS
- libpgjava No fix yet
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu Pro 20.04 LTS
- libpgjava No fix yet
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
A release or ecosystem missing from this list has no record here. It may be unaffected or not covered by the source. Source notices and licences.