Advisory

RLSA-2023:0318

Also known as: CVE-2022-31197

Summary

Moderate: postgresql-jdbc security update

Details

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.

Severity

High Basis: CVSS v3 score 8, vector CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H

Dates

Published
2023-01-23 14:30 UTC
Modified
2026-02-04 09:30 UTC

Affected packages and fixes

postgresql-jdbc

RPM packages (rpm) · Rocky Linux 9

Affected

  • introduced 0, fixed 0:42.2.18-6.el9_1 (ecosystem)

Fixed versions

0:42.2.18-6.el9_1

Fix

  • Fixed version 0:42.2.18-6.el9_1
    sudo dnf upgrade postgresql-jdbc-0:42.2.18-6.el9_1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Rocky Linux errata (Apollo)

Rocky Linux errata, Rocky Enterprise Software Foundation.

Sources & licences