CVE-2022-31197: PostgreSQL JDBC Driver SQL Injection in ResultSet.refreshRow() with malicious column names

CVE-2022-31197 · Severity: low · CVSS 3.1 · Published 2022-08-06

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

Technologies: org.postgresql:postgresql (Maven). Vendors: Maven.

Quick answers

Is CVE-2022-31197 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2022-31197 being exploited in the wild.
How severe is CVE-2022-31197?
Low severity, with a CVSS score of 3.1, published 6 August 2022.
Which products and versions are affected?
org.postgresql:postgresql (Maven) ECOSYSTEM:introduced=0,fixed=42.2.26.
Is there a fix for CVE-2022-31197?
Yes. org.postgresql:postgresql (Maven): upgrade to 42.2.26 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2022-31197?
Check whether you run org.postgresql:postgresql (Maven) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • org.postgresql:postgresql (Maven): upgrade to 42.2.26 or later
    # set org.postgresql:postgresql to 42.2.26 in your pom.xml or build.gradle

Affected products

  • org.postgresql:postgresql (Maven) ECOSYSTEM:introduced=0,fixed=42.2.26

Identifiers

  • CVE-2022-31197
  • GHSA-r38f-c4h4-hqq2

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.