CVE Vulnerabilities

CVE-2022-1552

Incomplete Cleanup

Published: Aug 31, 2022 | Modified: Nov 21, 2024
CVSS 3.x
8.8
HIGH
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS 2.x
RedHat/V2
RedHat/V3
8.8 IMPORTANT
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

A flaw was found in PostgreSQL. There is an issue with incomplete efforts to operate safely when a privileged user is maintaining another users objects. The Autovacuum, REINDEX, CREATE INDEX, REFRESH MATERIALIZED VIEW, CLUSTER, and pg_amcheck commands activated relevant protections too late or not at all during the process. This flaw allows an attacker with permission to create non-temporary objects in at least one schema to execute arbitrary SQL functions under a superuser identity.

Weakness

The product does not properly “clean up” and remove temporary or supporting resources after they have been used.

Affected Software

NameVendorStart VersionEnd Version
PostgresqlPostgresql10.0 (including)10.21 (excluding)
PostgresqlPostgresql11.0 (including)11.16 (excluding)
PostgresqlPostgresql12.0 (including)12.11 (excluding)
PostgresqlPostgresql13.0 (including)13.7 (excluding)
PostgresqlPostgresql14.0 (including)14.3 (excluding)
Red Hat Enterprise Linux 7RedHatpostgresql-0:9.2.24-8.el7_9*
Red Hat Enterprise Linux 8RedHatpostgresql:10-8060020220525083017.ad008a3a*
Red Hat Enterprise Linux 8RedHatpostgresql:12-8060020220525083707.ad008a3a*
Red Hat Enterprise Linux 8RedHatpostgresql:13-8060020220525083942.ad008a3a*
Red Hat Enterprise Linux 8.1 Update Services for SAP SolutionsRedHatpostgresql:10-8010020220520062435.c27ad7f8*
Red Hat Enterprise Linux 8.2 Extended Update SupportRedHatpostgresql:12-8020020220525083519.4cda2c84*
Red Hat Enterprise Linux 8.2 Extended Update SupportRedHatpostgresql:10-8020020220525082558.4cda2c84*
Red Hat Enterprise Linux 8.4 Extended Update SupportRedHatpostgresql:10-8040020220525082819.522a0ee4*
Red Hat Enterprise Linux 8.4 Extended Update SupportRedHatpostgresql:12-8040020220525214753.522a0ee4*
Red Hat Enterprise Linux 8.4 Extended Update SupportRedHatpostgresql:13-8040020220525083902.522a0ee4*
Red Hat Enterprise Linux 9RedHatpostgresql-0:13.7-1.el9_0*
Red Hat Software Collections for Red Hat Enterprise Linux 7RedHatrh-postgresql10-postgresql-0:10.21-1.el7*
Red Hat Software Collections for Red Hat Enterprise Linux 7RedHatrh-postgresql12-postgresql-0:12.11-1.el7*
Red Hat Software Collections for Red Hat Enterprise Linux 7RedHatrh-postgresql13-postgresql-0:13.7-1.el7*
Postgresql-10Ubuntubionic*
Postgresql-10Ubuntuesm-infra/bionic*
Postgresql-10Ubuntuupstream*
Postgresql-12Ubuntuesm-infra/focal*
Postgresql-12Ubuntufocal*
Postgresql-12Ubuntutrusty*
Postgresql-12Ubuntuupstream*
Postgresql-13Ubuntuimpish*
Postgresql-13Ubuntuupstream*
Postgresql-14Ubuntujammy*
Postgresql-14Ubuntuupstream*
Postgresql-9.1Ubuntutrusty*
Postgresql-9.3Ubuntutrusty*
Postgresql-9.3Ubuntutrusty/esm*
Postgresql-9.3Ubuntuupstream*
Postgresql-9.5Ubuntuesm-infra/xenial*
Postgresql-9.5Ubuntuupstream*
Postgresql-9.5Ubuntuxenial*

Potential Mitigations

References