CVE-2024-1597

  • Severity 9.8 CRITICAL
  • Published
  • Updated
  • Status Modified
  • EUVD EUVD-2024-0465
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
NISTPrimary
9.8 CRITICAL
NETWORK
LOW
NONE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Base Score
CVSS 3.1
EPSS Score
Percentile: 92.21%
Affected Products (NVD)
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
bookworm
42.5.5-0+deb12u1
fixed
bullseye
vulnerable
bullseye (security)
42.2.15-1+deb11u2
fixed
forky
42.7.8-2
fixed
sid
42.7.8-2
fixed
trixie
42.7.7-1
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
libpgjava
bionic
Fixed 9.4.1212-1ubuntu0.1~esm2
released
focal
Fixed 42.2.10-1ubuntu0.1~esm2
released
jammy
Fixed 42.3.3-1ubuntu0.1~esm1
released
mantic
ignored
noble
not-affected
oracular
not-affected
plucky
not-affected
questing
not-affected
resolute
not-affected
stonking
not-affected
trusty
Fixed 9.2-1002-1ubuntu0.14.04.1~esm1
released
xenial
not-affected
openSUSE logo
openSUSE / SLES Releases
openSUSE Product
Release
postgresql-jdbc
suse enterprise sap 16.0
42.7.7-160000.2.2
fixed
suse enterprise sap 16.1
42.7.11-160100.2.1
fixed
suse enterprise server 16.0
42.7.7-160000.2.2
fixed
suse enterprise server 16.1
42.7.11-160100.2.1
fixed
postgresql-jdbc-javadoc
suse enterprise sap 16.0
42.7.7-160000.2.2
fixed
suse enterprise sap 16.1
42.7.11-160100.2.1
fixed
suse enterprise server 16.0
42.7.7-160000.2.2
fixed
suse enterprise server 16.1
42.7.11-160100.2.1
fixed
Red Hat logo
Red Hat Enterprise Linux Releases
Red Hat Product
Release
postgresql-jdbc
RHEL 8
0:42.2.14-3.el8_9
fixed
RHEL 8.2 AUS
0:42.2.3-5.el8_2
fixed
RHEL 8.2 E4S
0:42.2.3-5.el8_2
fixed
RHEL 8.2 TUS
0:42.2.3-5.el8_2
fixed
RHEL 8.4 AUS
0:42.2.3-7.el8_4
fixed
RHEL 8.4 E4S
0:42.2.3-7.el8_4
fixed
RHEL 8.4 TUS
0:42.2.3-7.el8_4
fixed
RHEL 8.6 AUS
0:42.2.3-5.el8_6
fixed
RHEL 8.6 E4S
0:42.2.3-5.el8_6
fixed
RHEL 8.6 TUS
0:42.2.3-5.el8_6
fixed
RHEL 8.8 AUS
0:42.2.14-5.el8_8
fixed
RHEL 8.8 E4S
0:42.2.14-5.el8_8
fixed
RHEL 8.8 EUS
0:42.2.14-5.el8_8
fixed
RHEL 8.8 TUS
0:42.2.14-5.el8_8
fixed
RHEL 9
0:42.2.28-1.el9_3
fixed
postgresql-jdbc-javadoc
RHEL 8
0:42.2.14-3.el8_9
fixed
RHEL 8.2 AUS
0:42.2.3-5.el8_2
fixed
RHEL 8.2 E4S
0:42.2.3-5.el8_2
fixed
RHEL 8.2 TUS
0:42.2.3-5.el8_2
fixed
RHEL 8.4 AUS
0:42.2.3-7.el8_4
fixed
RHEL 8.4 E4S
0:42.2.3-7.el8_4
fixed
RHEL 8.4 TUS
0:42.2.3-7.el8_4
fixed
RHEL 8.6 AUS
0:42.2.3-5.el8_6
fixed
RHEL 8.6 E4S
0:42.2.3-5.el8_6
fixed
RHEL 8.6 TUS
0:42.2.3-5.el8_6
fixed
RHEL 8.8 AUS
0:42.2.14-5.el8_8
fixed
RHEL 8.8 E4S
0:42.2.14-5.el8_8
fixed
RHEL 8.8 EUS
0:42.2.14-5.el8_8
fixed
RHEL 8.8 TUS
0:42.2.14-5.el8_8
fixed