{"answers":{"affected":"1 open source package ship an affected version, including postgresql. It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-1552 in the wild and no public exploit code.","fix":"Upgrade postgresql to a fixed version for your release line: 10.21.0, 11.16.0, 12.11.0 or 13.7.0.","what":"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."},"fix_prompt":"Check this codebase for CVE-2022-1552 and fix it if it is affected.\n\nWhat it is: 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.\nExploitation: There is no known exploitation of CVE-2022-1552 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- postgresql (Bitnami): affected from 10.0.0; fixed in 10.21.0, 11.16.0, 12.11.0, 13.7.0, 14.3.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2022-1552/ (Markdown: https://insights.sbomify.com/CVE-2022-1552/index.md)","id":"CVE-2022-1552","markdown":"https://insights.sbomify.com/CVE-2022-1552/index.md","name":"CVE-2022-1552","record":{"aliases":["ALPINE-CVE-2022-1552","ALSA-2022:4805","ALSA-2022:4807","AZL-10826","BIT-postgresql-2022-1552","CLEANSTART-2026-DL32115","CLSA-2022-1666192732","DEBIAN-CVE-2022-1552","DSA-5135-1","DSA-5136-1","ECHO-cee1-bf37-4229","GHSA-3f3c-74mp-823m","JLSEC-2026-37","MGASA-2022-0201","OESA-2022-2104","RHSA-2022:4771","RHSA-2022:4805","RHSA-2022:4807","RHSA-2022:4854","RHSA-2022:4855","RHSA-2022:4856","RHSA-2022:4857","RHSA-2022:4893","RHSA-2022:4894","RHSA-2022:4895","RHSA-2022:4913","RHSA-2022:4915","RHSA-2022:4929","RHSA-2022:5162","RLSA-2022:4771","RLSA-2022:4805","RLSA-2022:4807","RLSA-2022:4855","SUSE-SU-2022:1804-1","SUSE-SU-2022:1835-1","SUSE-SU-2022:1869-1","SUSE-SU-2022:1874-1","SUSE-SU-2022:1890-1","SUSE-SU-2022:1894-1","SUSE-SU-2022:1895-1","SUSE-SU-2022:1908-1","UBUNTU-CVE-2022-1552","USN-5440-1","USN-5676-1","openSUSE-SU-2024:12072-1","openSUSE-SU-2024:12073-1","openSUSE-SU-2024:12075-1","openSUSE-SU-2024:12076-1","openSUSE-SU-2024:12077-1"],"analysis":{"component_type":"database","fix_type":"patch","impacts":["privilege_escalation","code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"PostgreSQL database","requires_auth":"low_privilege","summary":"An attacker with object creation permissions can execute arbitrary SQL as a superuser due to insufficient privilege checks in maintenance commands.","user_interaction":"not_required","vuln_class":"privilege_escalation"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"postgresql","vendor":"postgresql"}],"cvss":{"score":8.8,"severity":"high","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"},{"id":"CWE-459","name":"Incomplete Cleanup"}],"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.","ecosystems":["AlmaLinux:8","Bitnami","Red Hat:enterprise_linux:7::client","Red Hat:enterprise_linux:7::computenode","Red Hat:enterprise_linux:7::server","Red Hat:enterprise_linux:7::workstation","Red Hat:enterprise_linux:8::appstream","Red Hat:enterprise_linux:9::appstream","Red Hat:enterprise_linux:9::crb","Red Hat:rhel_e4s:8.1::appstream","Red Hat:rhel_eus:8.2::appstream","Red Hat:rhel_eus:8.4::appstream","Red Hat:rhel_software_collections:3::el7","Rocky Linux:8","Rocky Linux:9","SUSE:Enterprise Storage 6","SUSE:Enterprise Storage 7","SUSE:HPE Helion OpenStack 8","SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS","SUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS","SUSE:Linux Enterprise Module for Basesystem 15 SP3","SUSE:Linux Enterprise Module for Basesystem 15 SP4","SUSE:Linux Enterprise Module for Legacy 15 SP3","SUSE:Linux Enterprise Module for Legacy 15 SP4","SUSE:Linux Enterprise Module for Package Hub 15 SP3","SUSE:Linux Enterprise Module for Server Applications 15 SP3","SUSE:Linux Enterprise Module for Server Applications 15 SP4","SUSE:Linux Enterprise Server 12 SP2-BCL","SUSE:Linux Enterprise Server 12 SP3-BCL","SUSE:Linux Enterprise Server 12 SP3-LTSS","SUSE:Linux Enterprise Server 12 SP4-LTSS","SUSE:Linux Enterprise Server 12 SP5","SUSE:Linux Enterprise Server 15 SP1-BCL","SUSE:Linux Enterprise Server 15 SP1-LTSS","SUSE:Linux Enterprise Server 15 SP2-BCL","SUSE:Linux Enterprise Server 15 SP2-LTSS","SUSE:Linux Enterprise Server for SAP Applications 12 SP3","SUSE:Linux Enterprise Server for SAP Applications 12 SP4","SUSE:Linux Enterprise Server for SAP Applications 12 SP5","SUSE:Linux Enterprise Server for SAP Applications 15 SP1","SUSE:Linux Enterprise Server for SAP Applications 15 SP2","SUSE:Linux Enterprise Software Development Kit 12 SP5","SUSE:Manager Proxy 4.1","SUSE:Manager Retail Branch Server 4.1","SUSE:Manager Server 4.1","SUSE:OpenStack Cloud 8","SUSE:OpenStack Cloud 9","SUSE:OpenStack Cloud Crowbar 8","SUSE:OpenStack Cloud Crowbar 9","openSUSE:Leap 15.3","openSUSE:Leap 15.4","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Privilege escalation in postgresql","id":"CVE-2022-1552","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":"postgresql:postgresql","products":["postgresql:postgresql"],"type":"privilege_escalation","year":"2022"},"n_packages":541,"n_references":6,"next":{"headline":"Leaking password protected articles content due to improper access control in publify/publify","id":"CVE-2022-1553"},"packages":[{"ecosystem":"Bitnami","fixed":["10.21.0","11.16.0","12.11.0","13.7.0","14.3.0"],"introduced":["10.0.0","11.0.0","12.0.0","13.0.0","14.0.0"],"last_affected":[],"package":"postgresql","purl":"pkg:bitnami/postgresql","source":"BIT-postgresql-2022-1552"},{"ecosystem":"AlmaLinux:8","fixed":["1.4.6-3.module_el8.6.0+2758+4f4474df"],"introduced":["0"],"last_affected":[],"package":"pg_repack","purl":"pkg:rpm/almalinux/pg_repack","source":"ALSA-2022:4807"},{"ecosystem":"AlmaLinux:8","fixed":["1.4.6-3.module_el8.6.0+2760+1746ec94"],"introduced":["0"],"last_affected":[],"package":"pg_repack","purl":"pkg:rpm/almalinux/pg_repack","source":"ALSA-2022:4807"},{"ecosystem":"AlmaLinux:8","fixed":["1.4.0-5.module_el8.6.0+2758+4f4474df"],"introduced":["0"],"last_affected":[],"package":"pgaudit","purl":"pkg:rpm/almalinux/pgaudit","source":"ALSA-2022:4807"},{"ecosystem":"AlmaLinux:8","fixed":["0.10.0-2.module_el8.6.0+2758+4f4474df"],"introduced":["0"],"last_affected":[],"package":"postgres-decoderbufs","purl":"pkg:rpm/almalinux/postgres-decoderbufs","source":"ALSA-2022:4807"},{"ecosystem":"AlmaLinux:8","fixed":["0.10.0-2.module_el8.6.0+2760+1746ec94"],"introduced":["0"],"last_affected":[],"package":"postgres-decoderbufs","purl":"pkg:rpm/almalinux/postgres-decoderbufs","source":"ALSA-2022:4807"},{"ecosystem":"AlmaLinux:8","fixed":["10.21-2.module_el8.6.0+2901+a6abf8d9"],"introduced":["0"],"last_affected":[],"package":"postgresql","purl":"pkg:rpm/almalinux/postgresql","source":"ALSA-2022:4805"},{"ecosystem":"AlmaLinux:8","fixed":["12.11-2.module_el8.6.0+2905+eb237fb8"],"introduced":["0"],"last_affected":[],"package":"postgresql","purl":"pkg:rpm/almalinux/postgresql","source":"ALSA-2022:4807"},{"ecosystem":"AlmaLinux:8","fixed":["10.21-2.module_el8.6.0+2901+a6abf8d9"],"introduced":["0"],"last_affected":[],"package":"postgresql-contrib","purl":"pkg:rpm/almalinux/postgresql-contrib","source":"ALSA-2022:4805"},{"ecosystem":"AlmaLinux:8","fixed":["12.11-2.module_el8.6.0+2905+eb237fb8"],"introduced":["0"],"last_affected":[],"package":"postgresql-contrib","purl":"pkg:rpm/almalinux/postgresql-contrib","source":"ALSA-2022:4807"},{"ecosystem":"AlmaLinux:8","fixed":["10.21-2.module_el8.6.0+2901+a6abf8d9"],"introduced":["0"],"last_affected":[],"package":"postgresql-docs","purl":"pkg:rpm/almalinux/postgresql-docs","source":"ALSA-2022:4805"},{"ecosystem":"AlmaLinux:8","fixed":["12.11-2.module_el8.6.0+2905+eb237fb8"],"introduced":["0"],"last_affected":[],"package":"postgresql-docs","purl":"pkg:rpm/almalinux/postgresql-docs","source":"ALSA-2022:4807"},{"ecosystem":"AlmaLinux:8","fixed":["10.21-2.module_el8.6.0+2901+a6abf8d9"],"introduced":["0"],"last_affected":[],"package":"postgresql-plperl","purl":"pkg:rpm/almalinux/postgresql-plperl","source":"ALSA-2022:4805"},{"ecosystem":"AlmaLinux:8","fixed":["12.11-2.module_el8.6.0+2905+eb237fb8"],"introduced":["0"],"last_affected":[],"package":"postgresql-plperl","purl":"pkg:rpm/almalinux/postgresql-plperl","source":"ALSA-2022:4807"},{"ecosystem":"AlmaLinux:8","fixed":["10.21-2.module_el8.6.0+2901+a6abf8d9"],"introduced":["0"],"last_affected":[],"package":"postgresql-plpython3","purl":"pkg:rpm/almalinux/postgresql-plpython3","source":"ALSA-2022:4805"},{"ecosystem":"AlmaLinux:8","fixed":["12.11-2.module_el8.6.0+2905+eb237fb8"],"introduced":["0"],"last_affected":[],"package":"postgresql-plpython3","purl":"pkg:rpm/almalinux/postgresql-plpython3","source":"ALSA-2022:4807"},{"ecosystem":"AlmaLinux:8","fixed":["10.21-2.module_el8.6.0+2901+a6abf8d9"],"introduced":["0"],"last_affected":[],"package":"postgresql-pltcl","purl":"pkg:rpm/almalinux/postgresql-pltcl","source":"ALSA-2022:4805"},{"ecosystem":"AlmaLinux:8","fixed":["12.11-2.module_el8.6.0+2905+eb237fb8"],"introduced":["0"],"last_affected":[],"package":"postgresql-pltcl","purl":"pkg:rpm/almalinux/postgresql-pltcl","source":"ALSA-2022:4807"},{"ecosystem":"AlmaLinux:8","fixed":["10.21-2.module_el8.6.0+2901+a6abf8d9"],"introduced":["0"],"last_affected":[],"package":"postgresql-server","purl":"pkg:rpm/almalinux/postgresql-server","source":"ALSA-2022:4805"},{"ecosystem":"AlmaLinux:8","fixed":["12.11-2.module_el8.6.0+2905+eb237fb8"],"introduced":["0"],"last_affected":[],"package":"postgresql-server","purl":"pkg:rpm/almalinux/postgresql-server","source":"ALSA-2022:4807"},{"ecosystem":"AlmaLinux:8","fixed":["10.21-2.module_el8.6.0+2901+a6abf8d9"],"introduced":["0"],"last_affected":[],"package":"postgresql-server-devel","purl":"pkg:rpm/almalinux/postgresql-server-devel","source":"ALSA-2022:4805"},{"ecosystem":"AlmaLinux:8","fixed":["12.11-2.module_el8.6.0+2905+eb237fb8"],"introduced":["0"],"last_affected":[],"package":"postgresql-server-devel","purl":"pkg:rpm/almalinux/postgresql-server-devel","source":"ALSA-2022:4807"},{"ecosystem":"AlmaLinux:8","fixed":["10.21-2.module_el8.6.0+2901+a6abf8d9"],"introduced":["0"],"last_affected":[],"package":"postgresql-static","purl":"pkg:rpm/almalinux/postgresql-static","source":"ALSA-2022:4805"},{"ecosystem":"AlmaLinux:8","fixed":["12.11-2.module_el8.6.0+2905+eb237fb8"],"introduced":["0"],"last_affected":[],"package":"postgresql-static","purl":"pkg:rpm/almalinux/postgresql-static","source":"ALSA-2022:4807"},{"ecosystem":"AlmaLinux:8","fixed":["10.21-2.module_el8.6.0+2901+a6abf8d9"],"introduced":["0"],"last_affected":[],"package":"postgresql-test","purl":"pkg:rpm/almalinux/postgresql-test","source":"ALSA-2022:4805"},{"ecosystem":"AlmaLinux:8","fixed":["12.11-2.module_el8.6.0+2905+eb237fb8"],"introduced":["0"],"last_affected":[],"package":"postgresql-test","purl":"pkg:rpm/almalinux/postgresql-test","source":"ALSA-2022:4807"},{"ecosystem":"AlmaLinux:8","fixed":["10.21-2.module_el8.6.0+2901+a6abf8d9"],"introduced":["0"],"last_affected":[],"package":"postgresql-test-rpm-macros","purl":"pkg:rpm/almalinux/postgresql-test-rpm-macros","source":"ALSA-2022:4805"},{"ecosystem":"AlmaLinux:8","fixed":["12.11-2.module_el8.6.0+2905+eb237fb8"],"introduced":["0"],"last_affected":[],"package":"postgresql-test-rpm-macros","purl":"pkg:rpm/almalinux/postgresql-test-rpm-macros","source":"ALSA-2022:4807"},{"ecosystem":"AlmaLinux:8","fixed":["10.21-2.module_el8.6.0+2901+a6abf8d9"],"introduced":["0"],"last_affected":[],"package":"postgresql-upgrade","purl":"pkg:rpm/almalinux/postgresql-upgrade","source":"ALSA-2022:4805"},{"ecosystem":"AlmaLinux:8","fixed":["12.11-2.module_el8.6.0+2905+eb237fb8"],"introduced":["0"],"last_affected":[],"package":"postgresql-upgrade","purl":"pkg:rpm/almalinux/postgresql-upgrade","source":"ALSA-2022:4807"},{"ecosystem":"AlmaLinux:8","fixed":["10.21-2.module_el8.6.0+2901+a6abf8d9"],"introduced":["0"],"last_affected":[],"package":"postgresql-upgrade-devel","purl":"pkg:rpm/almalinux/postgresql-upgrade-devel","source":"ALSA-2022:4805"},{"ecosystem":"AlmaLinux:8","fixed":["12.11-2.module_el8.6.0+2905+eb237fb8"],"introduced":["0"],"last_affected":[],"package":"postgresql-upgrade-devel","purl":"pkg:rpm/almalinux/postgresql-upgrade-devel","source":"ALSA-2022:4807"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:9.2.24-8.el7_9"],"introduced":["0"],"last_affected":[],"package":"postgresql","purl":"pkg:rpm/redhat/postgresql","source":"RHSA-2022:5162"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:9.2.24-8.el7_9"],"introduced":["0"],"last_affected":[],"package":"postgresql-contrib","purl":"pkg:rpm/redhat/postgresql-contrib","source":"RHSA-2022:5162"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:9.2.24-8.el7_9"],"introduced":["0"],"last_affected":[],"package":"postgresql-debuginfo","purl":"pkg:rpm/redhat/postgresql-debuginfo","source":"RHSA-2022:5162"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:9.2.24-8.el7_9"],"introduced":["0"],"last_affected":[],"package":"postgresql-devel","purl":"pkg:rpm/redhat/postgresql-devel","source":"RHSA-2022:5162"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:9.2.24-8.el7_9"],"introduced":["0"],"last_affected":[],"package":"postgresql-docs","purl":"pkg:rpm/redhat/postgresql-docs","source":"RHSA-2022:5162"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:9.2.24-8.el7_9"],"introduced":["0"],"last_affected":[],"package":"postgresql-libs","purl":"pkg:rpm/redhat/postgresql-libs","source":"RHSA-2022:5162"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:9.2.24-8.el7_9"],"introduced":["0"],"last_affected":[],"package":"postgresql-plperl","purl":"pkg:rpm/redhat/postgresql-plperl","source":"RHSA-2022:5162"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:9.2.24-8.el7_9"],"introduced":["0"],"last_affected":[],"package":"postgresql-plpython","purl":"pkg:rpm/redhat/postgresql-plpython","source":"RHSA-2022:5162"}],"prev":{"headline":"SP Project \u0026 Document Manager \u003c 4.58 - Sensitive File Disclosure","id":"CVE-2022-1551"},"products":["postgresql"],"published":"2022-08-31","related":[{"cvss_score":10,"headline":"Information disclosure in n/a","id":"CVE-2013-1902","kev_date_added":null,"published":"2013-04-04"},{"cvss_score":10,"headline":"Information disclosure in n/a","id":"CVE-2013-1903","kev_date_added":null,"published":"2013-04-04"},{"cvss_score":10,"headline":"Privilege escalation in n/a","id":"CVE-2007-3279","kev_date_added":null,"published":"2007-06-19"},{"cvss_score":10,"headline":"Integer overflow in n/a","id":"CVE-2002-1399","kev_date_added":null,"published":"2003-01-08"},{"cvss_score":9.1,"headline":"Information disclosure in n/a","id":"CVE-2016-3065","kev_date_added":null,"published":"2016-04-11"},{"cvss_score":9,"headline":"Code injection in n/a","id":"CVE-2007-3280","kev_date_added":null,"published":"2007-06-19"},{"cvss_score":8.8,"headline":"PostgreSQL tsvector and tsquery undersize allocations, via integer wraparound","id":"CVE-2026-14662","kev_date_added":null,"published":"2026-08-13"}],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-03","vendors":["n/a"]},"summary":"An attacker with object creation permissions can execute arbitrary SQL as a superuser due to insufficient privilege checks in maintenance commands.","url":"https://insights.sbomify.com/CVE-2022-1552/"}