10

CVE-2024-1597: pgjdbc SQL Injection via line comment generation

Modified
AliasesMGASA-2024-0120SUSE-SU-2024:0769-1SUSE-SU-2024:0771-1
Published 19-02-2024Last modified 03-11-2025

Vulnerability summary

CVE-2024-1597 is a critical (CVSS 10.0) vulnerability in fedoraproject fedora. EPSS estimates a 4.81% chance of exploitation in the next 30 days, higher than 92.2% of scored vulnerabilities.

Priority
Prioritisesevere

Severe, CVSS 10 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 5% (FIRST, 04-12-2026)

Source freshness unavailable

How is this decided?
CVSS score
10.0/10
010
Critical · v3.1 (CVE.org)
EPSS score
4.81%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 1 · Related 7

Timeline

  1. 19-02-2024
    PublishedVulnerability first disclosed.
  2. 03-11-2025
    Last modifiedVulnerability information updated.

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.

CVSS metrics

9 scores · 9 sources · 1 version

EPSS trend

Probability

4.81%

Chance of exploitation in the next 30 days

Percentile

92%

Versus all other CVEs

30-day change

No change 0.00 pp

From 4.81% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Chainguard87 products
  • dependency-track< 4.10.1-r1
  • dependency-track-bundled< 4.10.1-r1
  • keycloak< 23.0.7-r0
  • mariadb-10.11< 10.11.8-r2
  • mariadb-10.11-backup< 10.11.8-r2
Wolfi86 products
  • dependency-track< 4.10.1-r1
  • dependency-track-bundled< 4.10.1-r1
  • keycloak< 23.0.7-r0
  • mariadb-10.11< 10.11.8-r2
  • mariadb-10.11-backup< 10.11.8-r2
Suse13 products
  • postgresql-jdbc&distro=SUSE Enterprise Storage 7.1< 42.2.25-150300.3.14.1
  • postgresql-jdbc&distro=SUSE Linux Enterprise High Performance Computing 15 SP3-LTSS< 42.2.25-150300.3.14.1
  • postgresql-jdbc&distro=SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS< 42.2.25-150400.3.12.1
  • postgresql-jdbc&distro=SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS< 42.2.25-150400.3.12.1
  • postgresql-jdbc&distro=SUSE Linux Enterprise Module for Server Applications 15 SP5< 42.2.25-150400.3.12.1
Redhat2 products
  • postgresql-jdbc< 0:42.2.14-3.el8_9 | < 0:42.2.28-1.el9_3 | < 0:42.2.28-1.el9_2 | < 0:42.2.28-1.el9_0 | < 0:42.2.3-5.el8_2 | < 0:42.2.14-5.el8_8 | < 0:42.2.3-7.el8_4 | < 0:42.2.3-5.el8_6
  • postgresql-jdbc-javadoc< 0:42.2.14-3.el8_9 | < 0:42.2.3-5.el8_2 | < 0:42.2.14-5.el8_8 | < 0:42.2.3-7.el8_4 | < 0:42.2.3-5.el8_6
Alpine1 product
  • java-postgresql-jdbc< 42.6.2-r0
Debian1 product
  • libpgjava< 42.5.5-0+deb12u1 | < 42.7.2-1 | < 42.2.5-2+deb10u4
Fedoraproject1 product
Mageia1 product
  • postgresql-jdbc< 42.5.6-1.mga9
Opensuse1 product
  • postgresql-jdbc&distro=openSUSE Leap 15.5< 42.2.25-150400.3.12.1
Org.postgresql1 product
  • postgresql< 42.2.28 | ≥ 42.7.0, < 42.7.2 | ≥ 42.6.0, < 42.6.1 | ≥ 42.5.0, < 42.5.5 | ≥ 42.4.0, < 42.4.4 | ≥ 42.3.0, < 42.3.9 | < 42.2.8
Pgjdbc1 product
  • pgjdbc< 42.7.2 | < 42.6.1 | < 42.5.5 | < 42.4.4 | < 42.3.9 | < 42.2.28
Postgresql1 product
  • postgresql_jdbc_driver< 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
Ubuntu1 product
  • libpgjavaAll versions (No fix recorded)

13 vendors · 197 products

References

53 links
Show all 53 references