cve.bz

CVE-2024-1597

9.8 criticalEPSS 4.8%

Critical (9.8). EPSS 4.8% chance of exploitation in the next 30 days. Fixed in org.postgresql:postgresql 42.2.28, 42.3.9, 42.4.4.

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

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
4.8% chance of exploitation in the next 30 days; higher than 91% of CVEs (scores of 2026-10-31)
CWE
CWE-89
Published
Modified
Record from
the NVD, synced

Affected

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-24rp-q3w6-vc56Mavenorg.postgresql:postgresql<42.2.2842.2.28
GHSA-24rp-q3w6-vc56Mavenorg.postgresql:postgresql>=42.3.0 <42.3.942.3.9
GHSA-24rp-q3w6-vc56Mavenorg.postgresql:postgresql>=42.4.0 <42.4.442.4.4
GHSA-24rp-q3w6-vc56Mavenorg.postgresql:postgresql>=42.5.0 <42.5.542.5.5
GHSA-24rp-q3w6-vc56Mavenorg.postgresql:postgresql>=42.6.0 <42.6.142.6.1
GHSA-24rp-q3w6-vc56Mavenorg.postgresql:postgresql>=42.7.0 <42.7.242.7.2

References

Check your stackJSON