CVE-2024-1597
libpgjava - security update
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.
How to fix CVE-2024-1597
To remediate CVE-2024-1597, upgrade the affected package to a fixed version below.
- —upgrade to 42.2.28 or later
- —upgrade to 42.2.15-1+deb11u2 or later
- —upgrade to 42.2.5-2+deb10u4 or later
- —upgrade to 42.2.28 or later
- —upgrade to 42.7.2 or later
Is CVE-2024-1597 being exploited?
Low — EPSS is 0.4%, meaning exploitation activity has not been observed at scale.
Affected packages (5)
- from 0, < 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
- from 0, < 42.2.15-1+deb11u2
- from 0, < 42.2.5-2+deb10u4
- from 0, < 42.2.28
- >= 42.7.0, < 42.7.2
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | CRITICAL10.0 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |