CVSS 3.1
8.0 highCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:HHigh (8.0). EPSS 2.4% estimated probability of exploitation activity in the next 30 days. Fixed in org.postgresql:postgresql 42.2.26, 42.3.7, 42.4.1.
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:Horg.postgresql:postgresql (Maven): fixed in 42.2.26, 42.4.1, 42.3.7Explain CVE-2022-31197 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-31197?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-31197?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-31197 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the NVD's CPE matches.
| Product | Affected |
|---|---|
| postgresql:postgresql_jdbc_driver | before 42.2.26 |
| postgresql:postgresql_jdbc_driver | from 42.3.0 before 42.3.7 |
| postgresql:postgresql_jdbc_driver | 42.4.0 |
| postgresql:postgresql_jdbc_driver | 42.4.0:rc1 |
| postgresql:postgresql_jdbc_driver | 42.4.1:rc1 |
| debian:debian_linux | 10.0 |
| fedoraproject:fedora | 35 |
| fedoraproject:fedora | 36 |
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-r38f-c4h4-hqq2 | Maven | org.postgresql:postgresql | <42.2.26 | 42.2.26 |
| GHSA-r38f-c4h4-hqq2 | Maven | org.postgresql:postgresql | >=42.4.0 <42.4.1 | 42.4.1 |
| GHSA-r38f-c4h4-hqq2 | Maven | org.postgresql:postgresql | >=42.3.0 <42.3.7 | 42.3.7 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 10 | libpgjava | 42.2.5-2+deb10u2 | DLA-3140-1 |
| Debian | 11 | libpgjava | 42.2.15-1+deb11u2 | DLA-3995-1 |
| Debian | 12, 13, 14 | libpgjava | 42.4.1-1 | DEBIAN-CVE-2022-31197 |
| Ubuntu | 14.04:LTS, 16.04:LTS, 22.04:LTS and 6 more | libpgjava | no fix listed | UBUNTU-CVE-2022-31197 |
| Red Hat | enterprise_linux:9::appstream | postgresql-jdbc | 0:42.2.18-6.el9_1 | RHSA-2023:0318 |
| SUSE | Linux Enterprise Module for Server Applications 15 SP3, Manager Server Module 4.2 | postgresql-jdbc | 42.2.25-150300.3.8.1 | SUSE-SU-2022:3613-1 |
| SUSE | Linux Enterprise Module for Server Applications 15 SP4 | postgresql-jdbc | 42.2.25-150400.3.6.1 | SUSE-SU-2022:3537-1 |
| SUSE | Linux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP3-BCL, Linux Enterprise Server 12 SP4-LTSS and 5 more | postgresql-jdbc | 9.4-3.6.3 | SUSE-SU-2022:3541-1 |
| SUSE | Manager Server Module 4.1 | postgresql-jdbc | 42.2.10-150200.3.11.1 | SUSE-SU-2022:3705-1 |
| openSUSE | Leap 15.3 | postgresql-jdbc | 42.2.25-150300.3.8.1 | SUSE-SU-2022:3613-1 |
| openSUSE | Leap 15.4 | postgresql-jdbc | 42.2.25-150400.3.6.1 | SUSE-SU-2022:3537-1 |
| AlmaLinux | 9 | postgresql-jdbc | 42.2.18-6.el9_1 | ALSA-2023:0318 |
| Rocky Linux | 9 | postgresql-jdbc | 0:42.2.18-6.el9_1 | RLSA-2023:0318 |
| Alpine | v3.16, v3.17, v3.18 and 6 more | java-postgresql-jdbc | 42.4.2-r0 | ALPINE-CVE-2022-31197 |
From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.
Red Hat rates this Moderate.
User applications that do not invoke the `ResultSet.refreshRow()` method are not impacted.
Red Hat Fuse 7 is now in Maintenance Support Phase and details about its fix should be presented soon. However, Red Hat Fuse Online (Syndesis) does will not contain the fix for this flaw.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat build of Quarkus 2.13.5 | postgresql | Fixed 2022-12-14 | RHSA-2022:9023 |
| Red Hat build of Quarkus 2.7.7 | Fixed 2023-03-08 | RHSA-2023:1006 | |
| Red Hat Enterprise Linux 9 | postgresql-jdbc-0:42.2.18-6.el9_1 | Fixed 2023-01-23 | RHSA-2023:0318 |
| Red Hat Fuse 7.11.1 | jdbc-postgresql | Fixed 2022-11-28 | RHSA-2022:8652 |
| Red Hat build of Apicurio Registry 2 | quarkus-jdbc-postgresql-deployment | Affected | |
| Red Hat Decision Manager 7 | jdbc-postgresql | Out of support scope | |
| Red Hat Enterprise Linux 6 | postgresql-jdbc | Not affected | |
| Red Hat Enterprise Linux 7 | postgresql-jdbc | Not affected | |
| Red Hat Enterprise Linux 8 | libreoffice:flatpak/libreoffice | Will not fix | |
| Red Hat Enterprise Linux 8 | postgresql-jdbc | Will not fix | |
| Red Hat Integration Camel K 1 | quarkus-jdbc-postgresql-deployment | Not affected | |
| Red Hat Integration Camel Quarkus 1 | quarkus-jdbc-postgresql-deployment | Not affected | |
| Red Hat Process Automation 7 | jdbc-postgresql | Out of support scope | |
| Red Hat Single Sign-On 7 | jdbc-postgresql | Not affected |
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-31197.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.