Advisory record · GHSA-r38f-c4h4-hqq2

PostgreSQL JDBC Driver SQL Injection in ResultSet.refreshRow() with malicious column names

CVSS 7.1 HighEPSS 0.024 · 84th percentile

Published by the GitHub Advisory Database at 6 Aug 2022, 05:51 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
org.postgresql:postgresqlMaven<42.2.26 || >=42.4.0, <42.4.1 || >=42.3.0, <42.3.742.2.26, 42.4.1, 42.3.7
Identifiers
GHSA-r38f-c4h4-hqq2 · BIT-postgresql-jdbc-driver-2022-31197 · CVE-2022-31197
Weakness (CWE)
CWE-89
Published
6 Aug 2022
Updated
10 Sept 2026

Machine-written summary

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

The PostgreSQL JDBC driver (org.postgresql:postgresql) versions before 42.2.26, 42.3.0 through 42.3.6, and 42.4.0 are affected. The refreshRow() method does not escape column names, so a column name containing a statement terminator can lead to SQL injection when the application queries a database an attacker controls. Upgrade to 42.2.26, 42.3.7, 42.4.1 or later. Alternatively, avoid calling refreshRow().

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
7.1 High 3.1 CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.024, the 84th percentile, on 16 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.