CVEfocus › CVE database › CVE-2022-1552

CVE-2022-1552

EPSS 3.2% (higher than 89% of CVEs)Published 2022-08-31Updated 2024-08-03Assigner: redhat

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.

CWE-459

What to do

Fixed builds are available from AlmaLinux, Alpine, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

84Fixed
3Fix pending
10Will not fix
2Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04postgresql-14Fixed14.3-0ubuntu0.22.04.1UBUNTU-CVE-2022-1552
Ubuntu 20.04postgresql-12Fixed12.11-0ubuntu0.20.04.1UBUNTU-CVE-2022-1552
Ubuntu 18.04postgresql-10Fixed10.21-0ubuntu0.18.04.1UBUNTU-CVE-2022-1552
Ubuntu 16.04postgresql-9.5Fix pending9.5.25-0ubuntu0.16.04.1+esm2 (Ubuntu Pro)UBUNTU-CVE-2022-1552
Ubuntu 14.04postgresql-9.1Fix pending
Ubuntu 14.04postgresql-9.3Fix pendingUBUNTU-CVE-2022-1552
Red Hat Enterprise Linux 9postgresqlFixed0:13.7-1.el9_0RHSA-2022:4771
Red Hat Enterprise Linux 9postgresql-contribFixed0:13.7-1.el9_0RHSA-2022:4771
Red Hat Enterprise Linux 9postgresql-plperlFixed0:13.7-1.el9_0RHSA-2022:4771
Red Hat Enterprise Linux 9postgresql-plpython3Fixed0:13.7-1.el9_0RHSA-2022:4771
Red Hat Enterprise Linux 9postgresql-pltclFixed0:13.7-1.el9_0RHSA-2022:4771
Red Hat Enterprise Linux 9postgresql-private-develFixed0:13.7-1.el9_0RHSA-2022:4771
Red Hat Enterprise Linux 9postgresql-private-libsFixed0:13.7-1.el9_0RHSA-2022:4771
Red Hat Enterprise Linux 9postgresql-serverFixed0:13.7-1.el9_0RHSA-2022:4771
Red Hat Enterprise Linux 9postgresql-server-develFixed0:13.7-1.el9_0RHSA-2022:4771
Red Hat Enterprise Linux 9postgresql-testFixed0:13.7-1.el9_0RHSA-2022:4771
Red Hat Enterprise Linux 9postgresql-upgradeFixed0:13.7-1.el9_0RHSA-2022:4771
Red Hat Enterprise Linux 8libpqNot affected
Red Hat Enterprise Linux 8libpq-develNot affected
Red Hat Enterprise Linux 8pg_repackFixed0:1.4.6-3.module+el8.5.0+11357+bcc62552RHSA-2022:4807
Red Hat Enterprise Linux 8pgauditFixed0:1.4.0-5.module+el8.5.0+11354+78b3c9c5RHSA-2022:4855
Red Hat Enterprise Linux 8postgres-decoderbufsFixed0:0.10.0-2.module+el8.4.0+8873+b821c30aRHSA-2022:4807
Red Hat Enterprise Linux 8postgresqlFixed0:12.11-2.module+el8.6.0+15345+1dd8d6b8RHSA-2022:4805
Red Hat Enterprise Linux 8postgresql-contribFixed0:10.21-2.module+el8.6.0+15342+53518facRHSA-2022:4855
Red Hat Enterprise Linux 8postgresql-docsFixed0:13.7-2.module+el8.6.0+15347+b8eabcefRHSA-2022:4805
Red Hat Enterprise Linux 8postgresql-plperlFixed0:12.11-2.module+el8.6.0+15345+1dd8d6b8RHSA-2022:4855
Red Hat Enterprise Linux 8postgresql-plpython3Fixed0:13.7-2.module+el8.6.0+15347+b8eabcefRHSA-2022:4805
Red Hat Enterprise Linux 8postgresql-pltclFixed0:10.21-2.module+el8.6.0+15342+53518facRHSA-2022:4855
Red Hat Enterprise Linux 8postgresql-serverFixed0:13.7-2.module+el8.6.0+15347+b8eabcefRHSA-2022:4807
Red Hat Enterprise Linux 8postgresql-server-develFixed0:13.7-2.module+el8.6.0+15347+b8eabcefRHSA-2022:4807
Red Hat Enterprise Linux 8postgresql-staticFixed0:12.11-2.module+el8.6.0+15345+1dd8d6b8RHSA-2022:4805
Red Hat Enterprise Linux 8postgresql-testFixed0:13.7-2.module+el8.6.0+15347+b8eabcefRHSA-2022:4807
Red Hat Enterprise Linux 8postgresql-test-rpm-macrosFixed0:13.7-2.module+el8.6.0+15347+b8eabcefRHSA-2022:4805
Red Hat Enterprise Linux 8postgresql-upgradeFixed0:10.21-2.module+el8.6.0+15342+53518facRHSA-2022:4855
Red Hat Enterprise Linux 8postgresql-upgrade-develFixed0:13.7-2.module+el8.6.0+15347+b8eabcefRHSA-2022:4807
Red Hat Enterprise Linux 7postgresqlFixed0:9.2.24-8.el7_9RHSA-2022:5162
Red Hat Enterprise Linux 7postgresql-contribFixed0:9.2.24-8.el7_9RHSA-2022:5162
Red Hat Enterprise Linux 7postgresql-develFixed0:9.2.24-8.el7_9RHSA-2022:5162
Red Hat Enterprise Linux 7postgresql-docsFixed0:9.2.24-8.el7_9RHSA-2022:5162
Red Hat Enterprise Linux 7postgresql-libsFixed0:9.2.24-8.el7_9RHSA-2022:5162
Red Hat Enterprise Linux 7postgresql-plperlFixed0:9.2.24-8.el7_9RHSA-2022:5162
Red Hat Enterprise Linux 7postgresql-plpythonFixed0:9.2.24-8.el7_9RHSA-2022:5162
Red Hat Enterprise Linux 7postgresql-pltclFixed0:9.2.24-8.el7_9RHSA-2022:5162
Red Hat Enterprise Linux 7postgresql-serverFixed0:9.2.24-8.el7_9RHSA-2022:5162
Red Hat Enterprise Linux 7postgresql-staticFixed0:9.2.24-8.el7_9RHSA-2022:5162
Red Hat Enterprise Linux 7postgresql-testFixed0:9.2.24-8.el7_9RHSA-2022:5162
Red Hat Enterprise Linux 7postgresql-upgradeFixed0:9.2.24-8.el7_9RHSA-2022:5162
Red Hat Enterprise Linux 6postgresqlWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-contribWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-develWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-docsWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-libsWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-plperlWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-plpythonWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-pltclWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-serverWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-testWill not fix
Out of support scope
AlmaLinux 8pg_repackFixed1.4.6-3.module_el8.6.0+2760+1746ec94ALSA-2022:4807
AlmaLinux 8pgauditFixed1.4.0-5.module_el8.6.0+2758+4f4474dfALSA-2022:4807
AlmaLinux 8postgres-decoderbufsFixed0.10.0-2.module_el8.6.0+2760+1746ec94ALSA-2022:4807
AlmaLinux 8postgresqlFixed12.11-2.module_el8.6.0+2905+eb237fb8ALSA-2022:4805
AlmaLinux 8postgresql-contribFixed10.21-2.module_el8.6.0+2901+a6abf8d9ALSA-2022:4807
AlmaLinux 8postgresql-docsFixed12.11-2.module_el8.6.0+2905+eb237fb8ALSA-2022:4805
AlmaLinux 8postgresql-plperlFixed10.21-2.module_el8.6.0+2901+a6abf8d9ALSA-2022:4807
AlmaLinux 8postgresql-plpython3Fixed12.11-2.module_el8.6.0+2905+eb237fb8ALSA-2022:4805
AlmaLinux 8postgresql-pltclFixed10.21-2.module_el8.6.0+2901+a6abf8d9ALSA-2022:4807
AlmaLinux 8postgresql-serverFixed12.11-2.module_el8.6.0+2905+eb237fb8ALSA-2022:4805
AlmaLinux 8postgresql-server-develFixed12.11-2.module_el8.6.0+2905+eb237fb8ALSA-2022:4805
AlmaLinux 8postgresql-staticFixed10.21-2.module_el8.6.0+2901+a6abf8d9ALSA-2022:4807
AlmaLinux 8postgresql-testFixed10.21-2.module_el8.6.0+2901+a6abf8d9ALSA-2022:4807
AlmaLinux 8postgresql-test-rpm-macrosFixed10.21-2.module_el8.6.0+2901+a6abf8d9ALSA-2022:4807
AlmaLinux 8postgresql-upgradeFixed10.21-2.module_el8.6.0+2901+a6abf8d9ALSA-2022:4807
AlmaLinux 8postgresql-upgrade-develFixed10.21-2.module_el8.6.0+2901+a6abf8d9ALSA-2022:4807
Rocky Linux 9postgresqlFixed0:13.7-1.el9_0RLSA-2022:4771
Rocky Linux 8pg_repackFixed0:1.4.6-3.module+el8.5.0+684+c3892ef9RLSA-2022:4855
Rocky Linux 8pgauditFixed0:1.5.0-1.module+el8.4.0+546+3620623eRLSA-2022:4807
Rocky Linux 8postgres-decoderbufsFixed0:0.10.0-2.module+el8.4.0+424+71d47d9aRLSA-2022:4807
Rocky Linux 8postgresqlFixed0:12.11-2.module+el8.6.0+979+b6ef1a3aRLSA-2022:4855
Alpine Linux 3.20postgresql14Fixed14.3-r0ALPINE-CVE-2022-1552
Alpine Linux 3.20postgresql15Fixed14.3-r0ALPINE-CVE-2022-1552
Alpine Linux 3.19postgresql13Fixed13.7-r0ALPINE-CVE-2022-1552
Alpine Linux 3.19postgresql14Fixed14.3-r0ALPINE-CVE-2022-1552
Alpine Linux 3.19postgresql15Fixed14.3-r0ALPINE-CVE-2022-1552
Alpine Linux 3.18postgresql12Fixed12.11-r0ALPINE-CVE-2022-1552
Alpine Linux 3.18postgresql13Fixed13.7-r0ALPINE-CVE-2022-1552
Alpine Linux 3.18postgresql14Fixed14.3-r0ALPINE-CVE-2022-1552
Alpine Linux 3.18postgresql15Fixed14.3-r0ALPINE-CVE-2022-1552
Alpine Linux 3.17postgresql12Fixed12.11-r0ALPINE-CVE-2022-1552
Alpine Linux 3.17postgresql13Fixed13.7-r0ALPINE-CVE-2022-1552
Alpine Linux 3.17postgresql14Fixed14.3-r0ALPINE-CVE-2022-1552
Alpine Linux 3.17postgresql15Fixed14.3-r0ALPINE-CVE-2022-1552
Alpine Linux 3.16postgresql12Fixed12.11-r0ALPINE-CVE-2022-1552
Alpine Linux 3.16postgresql13Fixed13.7-r0ALPINE-CVE-2022-1552
Alpine Linux 3.16postgresql14Fixed14.3-r0ALPINE-CVE-2022-1552
Alpine Linux 3.15postgresql12Fixed12.11-r0ALPINE-CVE-2022-1552
Alpine Linux 3.15postgresql13Fixed13.7-r0ALPINE-CVE-2022-1552
Alpine Linux 3.15postgresql14Fixed14.3-r0ALPINE-CVE-2022-1552
Alpine Linux 3.14postgresqlFixed13.7-r0ALPINE-CVE-2022-1552
Alpine Linux 3.13postgresqlFixed13.7-r0ALPINE-CVE-2022-1552

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.