
CVE catalog
CVE-2024-1597
libpgjava affected and fixed versions
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.
- Severity
- Critical · CVSS 9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 4.81% · Oct 27, 2026
Projects and upstream resources
Reported versions and fixes
Each observation applies to its named package, distribution, and release. Distribution backports can fix a vulnerability while retaining an older upstream version number.
Version impact has not been established. The original provider fields are retained below.
Provider details and historical evidence
Original provider fields
{
"package_releases": [
{
"name": "libpgjava",
"status": "fixed",
"release": "sid",
"version": "42.7.14-1"
},
{
"name": "libpgjava",
"status": "fixed",
"release": "forky",
"version": "42.7.14-1"
},
{
"name": "libpgjava",
"status": "fixed",
"release": "trixie",
"version": "42.7.7-1"
},
{
"name": "libpgjava",
"status": "fixed",
"release": "bookworm",
"version": "42.5.5-0+deb12u1"
}
],
"fixed_versions": [
{
"bug": null,
"name": "libpgjava",
"type": "source",
"origin": null,
"release": "sid",
"urgency": "not yet assigned",
"fixed_version": "42.7.2-1"
},
{
"bug": null,
"name": "libpgjava",
"type": "source",
"origin": null,
"release": "forky",
"urgency": "not yet assigned",
"fixed_version": "42.7.2-1"
},
{
"bug": null,
"name": "libpgjava",
"type": "source",
"origin": null,
"release": "trixie",
"urgency": "not yet assigned",
"fixed_version": "42.7.2-1"
},
{
"bug": null,
"name": "libpgjava",
"type": "source",
"origin": null,
"release": "bookworm",
"urgency": "not yet assigned",
"fixed_version": "42.5.5-0+deb12u1"
}
],
"distribution_packages": [
{
"name": "postgresql-jdbc",
"distro": "suse",
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "42.2.25-150300.3.14.1"
}
]
}
],
"release": "linux enterprise high performance computing 15 sp3-ltss",
"versions": [],
"ecosystem": "rpm",
"fixed_version": "42.2.25-150300.3.14.1",
"provider_record_id": "SUSE-SU-2024:0769-1"
},
{
"name": "postgresql-jdbc",
"distro": "suse",
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "42.2.25-150300.3.14.1"
}
]
}
],
"release": "linux enterprise server 15 sp3-ltss",
"versions": [],
"ecosystem": "rpm",
"fixed_version": "42.2.25-150300.3.14.1",
"provider_record_id": "SUSE-SU-2024:0769-1"
},
{
"name": "postgresql-jdbc",
"distro": "suse",
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "42.2.25-150300.3.14.1"
}
]
}
],
"release": "linux enterprise server for sap applications 15 sp3",
"versions": [],
"ecosystem": "rpm",
"fixed_version": "42.2.25-150300.3.14.1",
"provider_record_id": "SUSE-SU-2024:0769-1"
},
{
"name": "postgresql-jdbc",
"distro": "suse",
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "42.2.25-150300.3.14.1"
}
]
}
],
"release": "enterprise storage 7.1",
"versions": [],
"ecosystem": "rpm",
"fixed_version": "42.2.25-150300.3.14.1",
"provider_record_id": "SUSE-SU-2024:0769-1"
},
{
"name": "postgresql-jdbc",
"distro": "suse",
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "42.2.25-150400.3.12.1"
}
]
}
],
"release": "linux enterprise module for server applications 15 sp5",
"versions": [],
"ecosystem": "rpm",
"fixed_version": "42.2.25-150400.3.12.1",
"provider_record_id": "SUSE-SU-2024:0773-1"
},
{
"name": "postgresql-jdbc",
"distro": "suse",
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "42.2.25-150400.3.12.1"
}
]
}
],
"release": "linux enterprise high performance computing 15 sp4-espos",
"versions": [],
"ecosystem": "rpm",
"fixed_version": "42.2.25-150400.3.12.1",
"provider_record_id": "SUSE-SU-2024:0773-1"
},
{
"name": "postgresql-jdbc",
"distro": "suse",
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "42.2.25-150400.3.12.1"
}
]
}
],
"release": "linux enterprise high performance computing 15 sp4-ltss",
"versions": [],
"ecosystem": "rpm",
"fixed_version": "42.2.25-150400.3.12.1",
"provider_record_id": "SUSE-SU-2024:0773-1"
},
{
"name": "postgresql-jdbc",
"distro": "suse",
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "42.2.25-150400.3.12.1"
}
]
}
],
"release": "linux enterprise server 15 sp4-ltss",
"versions": [],
"ecosystem": "rpm",
"fixed_version": "42.2.25-150400.3.12.1",
"provider_record_id": "SUSE-SU-2024:0773-1"
},
{
"name": "postgresql-jdbc",
"distro": "suse",
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "42.2.25-150400.3.12.1"
}
]
}
],
"release": "linux enterprise server for sap applications 15 sp4",
"versions": [],
"ecosystem": "rpm",
"fixed_version": "42.2.25-150400.3.12.1",
"provider_record_id": "SUSE-SU-2024:0773-1"
},
{
"name": "postgresql-jdbc",
"distro": "suse",
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "42.2.25-150400.3.12.1"
}
]
}
],
"release": "manager proxy 4.3",
"versions": [],
"ecosystem": "rpm",
"fixed_version": "42.2.25-150400.3.12.1",
"provider_record_id": "SUSE-SU-2024:0773-1"
},
{
"name": "postgresql-jdbc",
"distro": "suse",
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "42.2.25-150400.3.12.1"
}
]
}
],
"release": "manager server 4.3",
"versions": [],
"ecosystem": "rpm",
"fixed_version": "42.2.25-150400.3.12.1",
"provider_record_id": "SUSE-SU-2024:0773-1"
},
{
"name": "postgresql-jdbc",
"distro": "opensuse",
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "42.2.25-150400.3.12.1"
}
]
}
],
"release": "leap 15.5",
"versions": [],
"ecosystem": "rpm",
"fixed_version": "42.2.25-150400.3.12.1",
"provider_record_id": "SUSE-SU-2024:0773-1"
},
{
"name": "postgresql-jdbc",
"distro": "suse",
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "9.4-3.12.1"
}
]
}
],
"release": "linux enterprise server 12 sp5",
"versions": [],
"ecosystem": "rpm",
"fixed_version": "9.4-3.12.1",
"provider_record_id": "SUSE-SU-2024:0771-1"
},
{
"name": "postgresql-jdbc",
"distro": "suse",
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "9.4-3.12.1"
}
]
}
],
"release": "linux enterprise server for sap applications 12 sp5",
"versions": [],
"ecosystem": "rpm",
"fixed_version": "9.4-3.12.1",
"provider_record_id": "SUSE-SU-2024:0771-1"
},
{
"name": "libpgjava",
"distro": "ubuntu",
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"release": "14.04",
"versions": [
"9.2-1002-1"
],
"ecosystem": "deb",
"fixed_version": "",
"provider_record_id": "UBUNTU-CVE-2024-1597"
},
{
"name": "libpgjava",
"distro": "ubuntu",
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"release": "16.04",
"versions": [
"9.2-1002-1"
],
"ecosystem": "deb",
"fixed_version": "",
"provider_record_id": "UBUNTU-CVE-2024-1597"
},
{
"name": "libpgjava",
"distro": "ubuntu",
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"release": "pro",
"versions": [
"42.2.6-1",
"42.2.8-1",
"42.2.9-1",
"42.2.10-1",
"42.2.10-1ubuntu0.1~esm1"
],
"ecosystem": "deb",
"fixed_version": "",
"provider_record_id": "UBUNTU-CVE-2024-1597"
},
{
"name": "libpgjava",
"distro": "ubuntu",
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"release": "22.04",
"versions": [
"42.2.23-1",
"42.2.24-1",
"42.3.1-1",
"42.3.2-1",
"42.3.3-1"
],
"ecosystem": "deb",
"fixed_version": "",
"provider_record_id": "UBUNTU-CVE-2024-1597"
}
]
}OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.
[Debian 12 (Bookworm)]
- [libpostgresql-jdbc-java]Unknown
Source package: [libpgjava]
Details (2)
42.5.5-0+deb12u1· all · bookwormFixed · Fixed:
42.5.5-0+deb12u1dsa · libpgjava · debian · bookworm; dsa · libpgjava · debian · 12
42.5.5-0+deb12u1· all · bookwormFixed · Fixed:
42.5.5-0+deb12u1dsa · libpgjava · debian · bookworm; dsa · libpgjava · debian · 12
- [libpostgresql-jdbc-java-doc]Unknown
Source package: [libpgjava]
Details (2)
42.5.5-0+deb12u1· all · bookwormFixed · Fixed:
42.5.5-0+deb12u1dsa · libpgjava · debian · bookworm; dsa · libpgjava · debian · 12
42.5.5-0+deb12u1· all · bookwormFixed · Fixed:
42.5.5-0+deb12u1dsa · libpgjava · debian · bookworm; dsa · libpgjava · debian · 12
[Debian 13 (Trixie)]
- [libpostgresql-jdbc-java]Unknown
Source package: [libpgjava]
Details (2)
42.7.7-1· all · trixieFixed · Fixed:
42.7.2-1dsa · libpgjava · debian · 13
42.7.7-1· all · trixieFixed · Fixed:
42.7.2-1dsa · libpgjava · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/rhsa-2024_1435.json]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2024-1597]
- [https://osv.dev/vulnerability/DLA-3812-1]
- [https://osv.dev/vulnerability/SUSE-SU-2024:0769-1]
- [https://osv.dev/vulnerability/SUSE-SU-2024:0771-1]
- [https://osv.dev/vulnerability/SUSE-SU-2024:0773-1]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2024-1597]
- [https://security-tracker.debian.org/tracker/CVE-2024-1597]
- [https://security.access.redhat.com/data/csaf/v2/vex/2024/cve-2024-1597.json]
- [https://wid.cert-bund.de/.well-known/csaf/white/2024/wid-sec-w-2024-0424.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]