Advisory record · GHSA-24rp-q3w6-vc56

org.postgresql:postgresql vulnerable to SQL Injection via line comment generation

CVSS 10.0 CriticalCriticalEPSS 0.048 · 92nd percentile

Critical, because:

  • CVSS score 10.0: 9.0 or more.

How we decide what’s critical

Published by the GitHub Advisory Database at 21 Feb 2024, 23:33 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
org.postgresql:postgresqlMaven<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.242.2.28, 42.3.9, 42.4.4, 42.5.5, 42.6.1, 42.7.2
Identifiers
GHSA-24rp-q3w6-vc56 · BIT-postgresql-jdbc-driver-2024-1597 · CVE-2024-1597
Weakness (CWE)
CWE-89
Published
21 Feb 2024
Updated
10 Sept 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

The org.postgresql:postgresql Maven package is vulnerable to SQL injection in versions before 42.2.28, 42.3.0 through 42.3.8, 42.4.0 through 42.4.3, 42.5.0 through 42.5.4, 42.6.0, 42.7.0, and 42.7.1. Exploitation requires the non-default preferQueryMode=simple setting, a numeric placeholder preceded by a minus sign, and a later string placeholder, with both values user-controlled, allowing an attacker to alter the executed SQL. Upgrade to 42.2.28, 42.3.9, 42.4.4, 42.5.5, 42.6.1, or 42.7.2, or avoid preferQueryMode=simple.

Written 2 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
10.0 Critical 3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H CNA (PostgreSQL)
  • CISA KEV Not listed.
  • EPSS 0.048, the 92nd percentile, on 14 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:18 UTC First seen by agentprime
  2. 31 Oct 2026, 14:18 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.