CVE-2022-31197 is a SQL injection vulnerability in the PostgreSQL JDBC Driver (PgJDBC) affecting versions prior to 42.2.26 and 42.4.1. It arises from improper escaping of column names in the ResultSet.refreshRow() method, allowing an attacker to inject SQL commands. This vulnerability carries a high severity CVSS score of 8.0, indicating that a low-privileged attacker can achieve high impact on confidentiality, integrity, and availability with user interaction, by crafting malicious column names in a database under their control and tricking a privileged JDBC application into querying it and invoking refreshRow(). There is currently no evidence of active exploitation, public exploit code, or significant community discussion surrounding this CVE.
| Vendor | Product | Version(s) | CPE |
|---|---|---|---|
< 42.2.26CPE matchmatch criteria | cpe:2.3:a:postgresql:postgresql_jdbc_driver:*:*:*:*:*:*:*:* | ||
>= 42.3.0, < 42.3.7CPE matchmatch criteria | cpe:2.3:a:postgresql:postgresql_jdbc_driver:*:*:*:*:*:*:*:* | ||
42.4.0CPE matchmatch criteria | cpe:2.3:a:postgresql:postgresql_jdbc_driver:42.4.0:-:*:*:*:*:*:* | ||
42.4.0CPE matchmatch criteria | cpe:2.3:a:postgresql:postgresql_jdbc_driver:42.4.0:rc1:*:*:*:*:*:* | ||
42.4.1CPE matchmatch criteria | cpe:2.3:a:postgresql:postgresql_jdbc_driver:42.4.1:rc1:*:*:*:*:*:* |
CVSS version used by this source: 3.1
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
The average CVE in this peer group has 0.0 Twitter, 0.0 Reddit, 0.3 Bluesky, 0.1 Mastodon, and 0.1 GitHub mentions.
No media coverage found for this CVE.
The average CVE in this peer group has 0.1 InfoSec Media, 0.0 Vendor Blog, and 0.0 Security Researcher mentions.