# CVE-2022-31197: postgresql-jdbc: PostgreSQL is an advanced object-relational database management system

CVE-2022-31197 is fixed in 2 products on 1 platform, first by DEBIAN-CVE-2022-31197, released August 3, 2022. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2022-31197
- Priority: High
- CVSS: 8.0 (Moderate)
- EPSS: 0.0236
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Aug 3, 2022

## Description

PostgreSQL is an advanced object-relational database management system. The postgresql-jdbc package includes the .jar files needed for Java programs to access a PostgreSQL database.  Security Fix(es):  * postgresql: SQL Injection in ResultSet.refreshRow() with malicious column names (CVE-2022-31197)  For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | libpgjava Debian 11.6 (bullseye) | 42.2.15-1+deb11u2 | [DLA-3995-1](https://patchblox.com/security/data/fix/linux/dla-3995-1.md) | Dec 16, 2024 |
| Linux | libpgjava Debian 12.15 (bookworm) | 42.4.1-1 | [DEBIAN-CVE-2022-31197](https://patchblox.com/security/data/fix/linux/debian-cve-2022-31197.md) | Aug 3, 2022 |
| Linux | libpgjava Debian 13.5 (trixie) | 42.4.1-1 | [DEBIAN-CVE-2022-31197](https://patchblox.com/security/data/fix/linux/debian-cve-2022-31197.md) | Aug 3, 2022 |
| Linux | libpgjava Debian 14 | 42.4.1-1 | [DEBIAN-CVE-2022-31197](https://patchblox.com/security/data/fix/linux/debian-cve-2022-31197.md) | Aug 3, 2022 |
| Linux | postgresql-jdbc RHEL 9 | 0:42.2.18-6.el9_1 | [RHSA-2023:0318](https://patchblox.com/security/data/fix/linux/rhsa-2023-0318.md) | Jan 23, 2023 |
| Linux | postgresql-jdbc almalinux 9 | 42.2.18-6.el9_1 | [ALSA-2023:0318](https://patchblox.com/security/data/fix/linux/alsa-2023-0318.md) | Jan 23, 2023 |
| Linux | postgresql-jdbc ol 9 | 0:42.2.18-6.el9_1 | [ELSA-2023-0318](https://patchblox.com/security/data/fix/linux/elsa-2023-0318.md) | Jan 24, 2023 |
| Linux | postgresql-jdbc rocky 9 | 0:42.2.18-6.el9_1 | [RLSA-2023:0318](https://patchblox.com/security/data/fix/linux/rlsa-2023-0318.md) | Jan 23, 2023 |

---

Data as of 2026-11-08T19:12:23Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
