CVE-2022-1552 Privilege escalation in postgresql

High 8.8 Published Updated

An attacker with object creation permissions can execute arbitrary SQL as a superuser due to insufficient privilege checks in maintenance commands.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-1552?

CVE-2022-1552 is a high-severity vulnerability in Postgresql Postgresql, published on 31 Aug 2022. Any signed-in user can exploit it over the network, with no action from the victim.

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.

Weakness: CWE-89, CWE-459

Which versions are affected by CVE-2022-1552?

1 open source package ship an affected version, including postgresql. It affects 1 product.

PackageAffectedFixed in
postgresql BitnamiFrom 10.0.010.21.0, 11.16.0, 12.11.0, 13.7.0, 14.3.0
Linux distribution packages (39)
pg_repack AlmaLinux:8All versions1.4.6-3.module_el8.6.0+2758+4f4474df
pg_repack AlmaLinux:8All versions1.4.6-3.module_el8.6.0+2760+1746ec94
pgaudit AlmaLinux:8All versions1.4.0-5.module_el8.6.0+2758+4f4474df
postgres-decoderbufs AlmaLinux:8All versions0.10.0-2.module_el8.6.0+2758+4f4474df
postgres-decoderbufs AlmaLinux:8All versions0.10.0-2.module_el8.6.0+2760+1746ec94
postgresql AlmaLinux:8All versions10.21-2.module_el8.6.0+2901+a6abf8d9
postgresql AlmaLinux:8All versions12.11-2.module_el8.6.0+2905+eb237fb8
postgresql-contrib AlmaLinux:8All versions10.21-2.module_el8.6.0+2901+a6abf8d9
postgresql-contrib AlmaLinux:8All versions12.11-2.module_el8.6.0+2905+eb237fb8
postgresql-docs AlmaLinux:8All versions10.21-2.module_el8.6.0+2901+a6abf8d9
postgresql-docs AlmaLinux:8All versions12.11-2.module_el8.6.0+2905+eb237fb8
postgresql-plperl AlmaLinux:8All versions10.21-2.module_el8.6.0+2901+a6abf8d9
postgresql-plperl AlmaLinux:8All versions12.11-2.module_el8.6.0+2905+eb237fb8
postgresql-plpython3 AlmaLinux:8All versions10.21-2.module_el8.6.0+2901+a6abf8d9
postgresql-plpython3 AlmaLinux:8All versions12.11-2.module_el8.6.0+2905+eb237fb8
postgresql-pltcl AlmaLinux:8All versions10.21-2.module_el8.6.0+2901+a6abf8d9
postgresql-pltcl AlmaLinux:8All versions12.11-2.module_el8.6.0+2905+eb237fb8
postgresql-server AlmaLinux:8All versions10.21-2.module_el8.6.0+2901+a6abf8d9
postgresql-server AlmaLinux:8All versions12.11-2.module_el8.6.0+2905+eb237fb8
postgresql-server-devel AlmaLinux:8All versions10.21-2.module_el8.6.0+2901+a6abf8d9
postgresql-server-devel AlmaLinux:8All versions12.11-2.module_el8.6.0+2905+eb237fb8
postgresql-static AlmaLinux:8All versions10.21-2.module_el8.6.0+2901+a6abf8d9
postgresql-static AlmaLinux:8All versions12.11-2.module_el8.6.0+2905+eb237fb8
postgresql-test AlmaLinux:8All versions10.21-2.module_el8.6.0+2901+a6abf8d9
postgresql-test AlmaLinux:8All versions12.11-2.module_el8.6.0+2905+eb237fb8
postgresql-test-rpm-macros AlmaLinux:8All versions10.21-2.module_el8.6.0+2901+a6abf8d9
postgresql-test-rpm-macros AlmaLinux:8All versions12.11-2.module_el8.6.0+2905+eb237fb8
postgresql-upgrade AlmaLinux:8All versions10.21-2.module_el8.6.0+2901+a6abf8d9
postgresql-upgrade AlmaLinux:8All versions12.11-2.module_el8.6.0+2905+eb237fb8
postgresql-upgrade-devel AlmaLinux:8All versions10.21-2.module_el8.6.0+2901+a6abf8d9
postgresql-upgrade-devel AlmaLinux:8All versions12.11-2.module_el8.6.0+2905+eb237fb8
postgresql Red Hat:enterprise_linux:7::clientAll versions0:9.2.24-8.el7_9
postgresql-contrib Red Hat:enterprise_linux:7::clientAll versions0:9.2.24-8.el7_9
postgresql-debuginfo Red Hat:enterprise_linux:7::clientAll versions0:9.2.24-8.el7_9
postgresql-devel Red Hat:enterprise_linux:7::clientAll versions0:9.2.24-8.el7_9
postgresql-docs Red Hat:enterprise_linux:7::clientAll versions0:9.2.24-8.el7_9
postgresql-libs Red Hat:enterprise_linux:7::clientAll versions0:9.2.24-8.el7_9
postgresql-plperl Red Hat:enterprise_linux:7::clientAll versions0:9.2.24-8.el7_9
postgresql-plpython Red Hat:enterprise_linux:7::clientAll versions0:9.2.24-8.el7_9

Products include Postgresql Postgresql.

How do I fix CVE-2022-1552?

Upgrade postgresql to a fixed version for your release line: 10.21.0, 11.16.0, 12.11.0 or 13.7.0.

Is CVE-2022-1552 being exploited?

There is no known exploitation of CVE-2022-1552 in the wild and no public exploit code.

All Postgresql Postgresql vulnerabilities

Sources

Also known as ALPINE-CVE-2022-1552, ALSA-2022:4805, ALSA-2022:4807, AZL-10826, BIT-postgresql-2022-1552, CLEANSTART-2026-DL32115 and 43 more.

Is CVE-2022-1552 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free