CVE-2024-1597

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.
SQL Injection
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTNIST
10 CRITICAL
NETWORK
LOW
NONE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
PostgreSQLCNA
10 CRITICAL
NETWORK
LOW
NONE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
CISA-ADPADP
---
---
CVEADP
---
---
Base Score
CVSS 3.x
EPSS Score
Percentile: 29%
VendorProductVersion
postgresqlpostgresql_jdbc_driver
𝑥
< 42.2.28
postgresqlpostgresql_jdbc_driver
42.3.0 ≤
𝑥
< 42.3.9
postgresqlpostgresql_jdbc_driver
42.4.0 ≤
𝑥
< 42.4.4
postgresqlpostgresql_jdbc_driver
42.5.0 ≤
𝑥
< 42.5.5
postgresqlpostgresql_jdbc_driver
42.6.0 ≤
𝑥
< 42.6.1
postgresqlpostgresql_jdbc_driver
42.7.0 ≤
𝑥
< 42.7.2
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
libpgjava
bullseye
vulnerable
bullseye (security)
42.2.15-1+deb11u2
fixed
bookworm
42.5.5-0+deb12u1
fixed
sid
42.7.5-2
fixed
trixie
42.7.5-2
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
libpgjava
plucky
not-affected
oracular
not-affected
noble
not-affected
mantic
ignored
jammy
needs-triage
focal
needs-triage
bionic
needs-triage
xenial
needs-triage
trusty
needs-triage