cve.bz

CVE-2022-1552 postgresql postgresql: Incomplete Cleanup

8.8 highEPSS 16%Fix available

High (8.8) in postgresql postgresql. EPSS 16% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

8.8 high
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
16% (unchanged from 17% a week ago; 16% 30 days ago) estimated probability of exploitation activity in the next 30 days; 97th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-459 Incomplete Cleanup
CWE-89 Improper Neutralization of Special Elements used in an SQL Command (SQL Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-1552 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-1552?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-1552?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-1552 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.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
postgresql:postgresqlfrom 10.0 before 10.21
postgresql:postgresqlfrom 11.0 before 11.16
postgresql:postgresqlfrom 12.0 before 12.11
postgresql:postgresqlfrom 13.0 before 13.7
postgresql:postgresqlfrom 14.0 before 14.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10postgresql-1111.16-0+deb10u1DSA-5135-1
Debian11postgresql-1313.7-0+deb11u1DEBIAN-CVE-2022-1552 DSA-5136-1
Ubuntu18.04:LTSpostgresql-1010.21-0ubuntu0.18.04.1UBUNTU-CVE-2022-1552 USN-5440-1
Ubuntu20.04:LTSpostgresql-1212.11-0ubuntu0.20.04.1UBUNTU-CVE-2022-1552 USN-5440-1
Ubuntu22.04:LTSpostgresql-1414.3-0ubuntu0.22.04.1UBUNTU-CVE-2022-1552 USN-5440-1
UbuntuPro:14.04:LTSpostgresql-9.3no fix listedUBUNTU-CVE-2022-1552
UbuntuPro:16.04:LTSpostgresql-9.59.5.25-0ubuntu0.16.04.1+esm2UBUNTU-CVE-2022-1552 USN-5676-1
Red Hatenterprise_linux:7::client, enterprise_linux:7::server, enterprise_linux:7::workstationpostgresql, postgresql-docs, postgresql-libs and 10 more0:9.2.24-8.el7_9RHSA-2022:5162
Red Hatenterprise_linux:7::computenodepostgresql, postgresql-docs, postgresql-test and 9 more0:9.2.24-8.el7_9RHSA-2022:5162
Red Hatenterprise_linux:8::appstreampg_repack, pg_repack-debuginfo, pg_repack-debugsource0:1.4.6-3.module+el8.5.0+11354+78b3c9c5RHSA-2022:4807
Red Hatenterprise_linux:8::appstreampg_repack, pg_repack-debuginfo, pg_repack-debugsource0:1.4.6-3.module+el8.5.0+11357+bcc62552RHSA-2022:4855
Red Hatenterprise_linux:8::appstreampgaudit, pgaudit-debuginfo, pgaudit-debugsource0:1.4.0-5.module+el8.5.0+11354+78b3c9c5RHSA-2022:4807
Red Hatenterprise_linux:8::appstreampgaudit, pgaudit-debuginfo, pgaudit-debugsource0:1.5.0-1.module+el8.4.0+8873+b821c30aRHSA-2022:4855
Red Hatenterprise_linux:8::appstreampostgres-decoderbufs, postgres-decoderbufs-debuginfo, postgres-decoderbufs-debugsource0:0.10.0-2.module+el8.4.0+8873+b821c30aRHSA-2022:4855
Red Hatenterprise_linux:8::appstreampostgres-decoderbufs, postgres-decoderbufs-debuginfo, postgres-decoderbufs-debugsource0:0.10.0-2.module+el8.5.0+11354+78b3c9c5RHSA-2022:4807
Red Hatenterprise_linux:8::appstreampostgresql, postgresql-docs, postgresql-test and 22 more0:10.21-2.module+el8.6.0+15342+53518facRHSA-2022:4805
Red Hatenterprise_linux:8::appstreampostgresql, postgresql-docs, postgresql-test and 22 more0:12.11-2.module+el8.6.0+15345+1dd8d6b8RHSA-2022:4807
Red Hatenterprise_linux:8::appstreampostgresql, postgresql-docs, postgresql-test and 22 more0:13.7-2.module+el8.6.0+15347+b8eabcefRHSA-2022:4855
Red Hatenterprise_linux:9::appstreampostgresql, postgresql-pltcl, postgresql-plperl and 18 more0:13.7-1.el9_0RHSA-2022:4771
16 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 6, Enterprise Storage 7, Linux Enterprise High Performance Computing 15 SP1-ESPOS and 13 morepostgresql1010.21-150100.8.47.1SUSE-SU-2022:1890-1
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 7 morepostgresql12.0.1-150000.8.19.1SUSE-SU-2022:2893-1
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 3 morepostgresql1212.12-150100.3.33.1SUSE-SU-2022:2958-1
SUSEEnterprise Storage 7, Linux Enterprise High Performance Computing 15 SP2-ESPOS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 11 morepostgresql1414.3-150200.5.12.2SUSE-SU-2022:1908-1
SUSEEnterprise Storage 7, Linux Enterprise High Performance Computing 15 SP2-ESPOS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 10 morepostgresql1313.7-150200.5.28.1SUSE-SU-2022:1895-1
SUSEEnterprise Storage 7, Linux Enterprise High Performance Computing 15 SP2-ESPOS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 8 morepostgresql1212.11-150200.8.32.1SUSE-SU-2022:1894-1
SUSEHPE Helion OpenStack 8, Linux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP3-BCL and 11 morepostgresql1010.21-4.28.3SUSE-SU-2022:1804-1
SUSEHPE Helion OpenStack 8, Linux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP3-BCL and 11 morepostgresql1414.3-3.9.3SUSE-SU-2022:1874-1
SUSELinux Enterprise High Performance Computing 15-ESPOS, Linux Enterprise High Performance Computing 15-LTSS, Linux Enterprise Server 15-LTSS and 1 morepostgresql1010.22-150000.4.42.1SUSE-SU-2022:2893-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5postgresql1212.11-3.27.3SUSE-SU-2022:1869-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5postgresql1313.7-3.21.3SUSE-SU-2022:1835-1
openSUSELeap 15.3, Leap 15.4postgresql1010.21-150100.8.47.1SUSE-SU-2022:1890-1
openSUSELeap 15.3, Leap 15.4postgresql1212.11-150200.8.32.1SUSE-SU-2022:1894-1
openSUSELeap 15.3, Leap 15.4postgresql1313.7-150200.5.28.1SUSE-SU-2022:1895-1
openSUSELeap 15.3, Leap 15.4postgresql1414.3-150200.5.12.2SUSE-SU-2022:1908-1
openSUSETumbleweedpostgresql1010.19-2.7openSUSE-SU-2024:12072-1
openSUSETumbleweedpostgresql1111.16-1.1openSUSE-SU-2024:12075-1
openSUSETumbleweedpostgresql1212.11-1.1openSUSE-SU-2024:12076-1
openSUSETumbleweedpostgresql1313.7-1.1openSUSE-SU-2024:12077-1
openSUSETumbleweedpostgresql1414.2-1.3openSUSE-SU-2024:12073-1
openSUSETumbleweedpostgresql1515.4-2.1openSUSE-SU-2024:13243-1
openSUSETumbleweedpostgresql1616.4-1.1openSUSE-SU-2024:14360-1
openSUSETumbleweedpostgresql1717.6-2.1openSUSE-SU-2025:15580-1
AlmaLinux8pg_repack1.4.6-3.module_el8.6.0+2758+4f4474dfALSA-2022:4807
AlmaLinux8pg_repack1.4.6-3.module_el8.6.0+2760+1746ec94ALSA-2022:4807
AlmaLinux8pgaudit1.4.0-5.module_el8.6.0+2758+4f4474dfALSA-2022:4807
AlmaLinux8postgres-decoderbufs0.10.0-2.module_el8.6.0+2758+4f4474dfALSA-2022:4807
AlmaLinux8postgres-decoderbufs0.10.0-2.module_el8.6.0+2760+1746ec94ALSA-2022:4807
AlmaLinux8postgresql, postgresql-docs, postgresql-test and 10 more10.21-2.module_el8.6.0+2901+a6abf8d9ALSA-2022:4805
AlmaLinux8postgresql, postgresql-docs, postgresql-test and 10 more12.11-2.module_el8.6.0+2905+eb237fb8ALSA-2022:4807
Rocky Linux8pg_repack0:1.4.6-3.module+el8.5.0+684+c3892ef9RLSA-2022:4807 RLSA-2022:4855
Rocky Linux8pgaudit0:1.4.0-5.module+el8.5.0+686+20453eccRLSA-2022:4807
Rocky Linux8pgaudit0:1.5.0-1.module+el8.4.0+546+3620623eRLSA-2022:4855
Rocky Linux8pgaudit0:1.5.0-1.module+el8.5.0+684+c3892ef9RLSA-2022:4855
Rocky Linux8postgres-decoderbufs0:0.10.0-2.module+el8.4.0+424+71d47d9aRLSA-2022:4807 RLSA-2022:4855
Rocky Linux8postgres-decoderbufs0:0.10.0-2.module+el8.5.0+684+c3892ef9RLSA-2022:4807 RLSA-2022:4855
Rocky Linux8postgresql0:10.21-2.module+el8.6.0+977+ab6e685cRLSA-2022:4805
Rocky Linux8postgresql0:12.11-2.module+el8.6.0+979+b6ef1a3aRLSA-2022:4807
Rocky Linux8postgresql0:13.7-2.module+el8.6.0+980+9caa008aRLSA-2022:4855
Rocky Linux9postgresql0:13.7-1.el9_0RLSA-2022:4771
Alpinev3.13, v3.14postgresql13.7-r0ALPINE-CVE-2022-1552
Alpinev3.15, v3.16postgresql1414.3-r0ALPINE-CVE-2022-1552
Alpinev3.15, v3.16, v3.17 and 1 morepostgresql1212.11-r0ALPINE-CVE-2022-1552
Alpinev3.15, v3.16, v3.17 and 2 morepostgresql1313.7-r0ALPINE-CVE-2022-1552
Alpinev3.17, v3.18, v3.19 and 1 morepostgresql14, postgresql1514.3-r0ALPINE-CVE-2022-1552
Azure Linux2postgresql14.5-1AZL-10826

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; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Important.

Red Hat's mitigation

Red Hat has investigated whether a possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7postgresql-0:9.2.24-8.el7_9Fixed 2022-06-22RHSA-2022:5162
Red Hat Enterprise Linux 8postgresql:10-8060020220525083017.ad008a3aFixed 2022-05-30RHSA-2022:4805
Red Hat Enterprise Linux 8postgresql:12-8060020220525083707.ad008a3aFixed 2022-05-31RHSA-2022:4807
Red Hat Enterprise Linux 8postgresql:13-8060020220525083942.ad008a3aFixed 2022-06-01RHSA-2022:4855
Red Hat Enterprise Linux 8.1 Update Services for SAP Solutionspostgresql:10-8010020220520062435.c27ad7f8Fixed 2022-06-03RHSA-2022:4894
Red Hat Enterprise Linux 8.2 Extended Update Supportpostgresql:12-8020020220525083519.4cda2c84Fixed 2022-06-04RHSA-2022:4893
Red Hat Enterprise Linux 8.2 Extended Update Supportpostgresql:10-8020020220525082558.4cda2c84Fixed 2022-06-04RHSA-2022:4895
Red Hat Enterprise Linux 8.4 Extended Update Supportpostgresql:10-8040020220525082819.522a0ee4Fixed 2022-06-01RHSA-2022:4854
Red Hat Enterprise Linux 8.4 Extended Update Supportpostgresql:12-8040020220525214753.522a0ee4Fixed 2022-06-01RHSA-2022:4856
Red Hat Enterprise Linux 8.4 Extended Update Supportpostgresql:13-8040020220525083902.522a0ee4Fixed 2022-06-01RHSA-2022:4857
Red Hat Enterprise Linux 9postgresql-0:13.7-1.el9_0Fixed 2022-05-30RHSA-2022:4771
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-postgresql10-postgresql-0:10.21-1.el7Fixed 2022-06-06RHSA-2022:4913
Red Hat build of QuarkuspostgresqlNot affected
Red Hat Decision Manager 7postgresqlNot affected
Red Hat Enterprise Linux 6postgresqlOut of support scope
Red Hat Enterprise Linux 8libpqNot affected
Red Hat Fuse 7postgresqlNot affected
Red Hat JBoss Enterprise Application Platform 6postgresqlNot affected
Red Hat JBoss Enterprise Application Platform 7postgresqlNot affected
Red Hat Process Automation 7postgresqlNot affected
2 more in the JSON and on Red Hat's page.

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-1552.

Attack patterns (CAPEC)

  • CAPEC-7 Blind SQL Injection Likelihood: High · Severity: High
  • CAPEC-66 SQL Injection Likelihood: High · Severity: High
  • CAPEC-108 Command Line Execution through SQL Injection Likelihood: Low · Severity: Very High
  • CAPEC-109 Object Relational Mapping Injection Likelihood: Low · Severity: High
  • CAPEC-110 SQL Injection through SOAP Parameter Tampering Likelihood: High · Severity: Very High
  • CAPEC-470 Expanding Control over the Operating System from the Database Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON