Vulnerability · Published Aug 31, 2022 · Assigned by redhat

CVE-2022-1552

High 8.8

In plain English

A high-severity security flaw in postgresql. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 17.0% (higher than 97% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)8.8High
Exploit odds (30 days)17.0%top 2.9% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

A flaw was found in PostgreSQL. There is an issue with incomplete efforts to operate safely when a privileged user is maintaining another user's 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8pg_repack1.4.6-3.module_el8.6.0+2758+4f4474dfALSA-2022:4807
AlmaLinux:8pg_repack1.4.6-3.module_el8.6.0+2760+1746ec94ALSA-2022:4807
AlmaLinux:8pgaudit1.4.0-5.module_el8.6.0+2758+4f4474dfALSA-2022:4807
AlmaLinux:8postgres-decoderbufs0.10.0-2.module_el8.6.0+2758+4f4474dfALSA-2022:4807
AlmaLinux:8postgres-decoderbufs0.10.0-2.module_el8.6.0+2760+1746ec94ALSA-2022:4807
AlmaLinux:8postgresql12.11-2.module_el8.6.0+2905+eb237fb8ALSA-2022:4807
AlmaLinux:8postgresql10.21-2.module_el8.6.0+2901+a6abf8d9ALSA-2022:4805
AlmaLinux:8postgresql-contrib12.11-2.module_el8.6.0+2905+eb237fb8ALSA-2022:4807
AlmaLinux:8postgresql-contrib10.21-2.module_el8.6.0+2901+a6abf8d9ALSA-2022:4805
AlmaLinux:8postgresql-docs10.21-2.module_el8.6.0+2901+a6abf8d9ALSA-2022:4805
AlmaLinux:8postgresql-docs12.11-2.module_el8.6.0+2905+eb237fb8ALSA-2022:4807
AlmaLinux:8postgresql-plperl12.11-2.module_el8.6.0+2905+eb237fb8ALSA-2022:4807
AlmaLinux:8postgresql-plperl10.21-2.module_el8.6.0+2901+a6abf8d9ALSA-2022:4805
AlmaLinux:8postgresql-plpython310.21-2.module_el8.6.0+2901+a6abf8d9ALSA-2022:4805
AlmaLinux:8postgresql-plpython312.11-2.module_el8.6.0+2905+eb237fb8ALSA-2022:4807
AlmaLinux:8postgresql-pltcl12.11-2.module_el8.6.0+2905+eb237fb8ALSA-2022:4807
AlmaLinux:8postgresql-pltcl10.21-2.module_el8.6.0+2901+a6abf8d9ALSA-2022:4805
AlmaLinux:8postgresql-server10.21-2.module_el8.6.0+2901+a6abf8d9ALSA-2022:4805
AlmaLinux:8postgresql-server12.11-2.module_el8.6.0+2905+eb237fb8ALSA-2022:4807
AlmaLinux:8postgresql-server-devel10.21-2.module_el8.6.0+2901+a6abf8d9ALSA-2022:4805
AlmaLinux:8postgresql-server-devel12.11-2.module_el8.6.0+2905+eb237fb8ALSA-2022:4807
AlmaLinux:8postgresql-static12.11-2.module_el8.6.0+2905+eb237fb8ALSA-2022:4807
AlmaLinux:8postgresql-static10.21-2.module_el8.6.0+2901+a6abf8d9ALSA-2022:4805
AlmaLinux:8postgresql-test10.21-2.module_el8.6.0+2901+a6abf8d9ALSA-2022:4805
AlmaLinux:8postgresql-test12.11-2.module_el8.6.0+2905+eb237fb8ALSA-2022:4807
AlmaLinux:8postgresql-test-rpm-macros10.21-2.module_el8.6.0+2901+a6abf8d9ALSA-2022:4805
AlmaLinux:8postgresql-test-rpm-macros12.11-2.module_el8.6.0+2905+eb237fb8ALSA-2022:4807
AlmaLinux:8postgresql-upgrade10.21-2.module_el8.6.0+2901+a6abf8d9ALSA-2022:4805
AlmaLinux:8postgresql-upgrade12.11-2.module_el8.6.0+2905+eb237fb8ALSA-2022:4807
AlmaLinux:8postgresql-upgrade-devel10.21-2.module_el8.6.0+2901+a6abf8d9ALSA-2022:4805
AlmaLinux:8postgresql-upgrade-devel12.11-2.module_el8.6.0+2905+eb237fb8ALSA-2022:4807
Alpine:v3.20postgresql1414.3-r0ALPINE-CVE-2022-1552
Alpine:v3.20postgresql1514.3-r0ALPINE-CVE-2022-1552
Rocky Linux:8pg_repack0:1.4.6-3.module+el8.5.0+684+c3892ef9RLSA-2022:4807
Rocky Linux:8pg_repack0:1.4.6-3.module+el8.5.0+684+c3892ef9RLSA-2022:4855
Rocky Linux:8pgaudit0:1.5.0-1.module+el8.5.0+684+c3892ef9RLSA-2022:4855
Rocky Linux:8pgaudit0:1.4.0-5.module+el8.5.0+686+20453eccRLSA-2022:4807
Rocky Linux:8pgaudit0:1.5.0-1.module+el8.4.0+546+3620623eRLSA-2022:4855
Rocky Linux:8postgres-decoderbufs0:0.10.0-2.module+el8.5.0+684+c3892ef9RLSA-2022:4807
Rocky Linux:8postgres-decoderbufs0:0.10.0-2.module+el8.5.0+684+c3892ef9RLSA-2022:4855
Rocky Linux:8postgres-decoderbufs0:0.10.0-2.module+el8.4.0+424+71d47d9aRLSA-2022:4807
Rocky Linux:8postgres-decoderbufs0:0.10.0-2.module+el8.4.0+424+71d47d9aRLSA-2022:4855
Rocky Linux:8postgresql0:12.11-2.module+el8.6.0+979+b6ef1a3aRLSA-2022:4807
Rocky Linux:8postgresql0:13.7-2.module+el8.6.0+980+9caa008aRLSA-2022:4855
Rocky Linux:8postgresql0:10.21-2.module+el8.6.0+977+ab6e685cRLSA-2022:4805
Rocky Linux:9postgresql0:13.7-1.el9_0RLSA-2022:4771
Ubuntu:22.04:LTSpostgresql-1414.3-0ubuntu0.22.04.1USN-5440-1
Ubuntu:22.04:LTSpostgresql-1414.3-0ubuntu0.22.04.1UBUNTU-CVE-2022-1552

Affected products (as reported)

VendorProductVersions
n/a postgresql Fixed in postgresql 14.3, postgresql 13.7, postgresql 12.11, postgresql 11.16, postgresql 10.21.

Weakness: CWE-459

References