{"answers":{"affected":"1 open source package ship an affected version, including postgresql. It affects 3 products.","exploited":"There is no known exploitation of CVE-2022-2625 in the wild and no public exploit code.","fix":"Upgrade postgresql to a fixed version for your release line: 10.22.0, 11.17.0, 12.12.0 or 13.8.0.","what":"CVE-2022-2625 is a high-severity vulnerability in Fedoraproject Fedora, published on 18 Aug 2022. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2022-2625 and fix it if it is affected.\n\nWhat it is: CVE-2022-2625 is a high-severity vulnerability in Fedoraproject Fedora, published on 18 Aug 2022. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2022-2625 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.22.0, 11.17.0, 12.12.0, 13.8.0, 14.5.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-2625/ (Markdown: https://insights.sbomify.com/CVE-2022-2625/index.md)","id":"CVE-2022-2625","markdown":"https://insights.sbomify.com/CVE-2022-2625/index.md","name":"CVE-2022-2625","record":{"aliases":["ALPINE-CVE-2022-2625","ALSA-2022:7128","ALSA-2023:0113","AZL-10595","BIT-postgresql-2022-2625","CLEANSTART-2026-TH17193","DEBIAN-CVE-2022-2625","DLA-3072-1","ECHO-03c5-b6e9-23cb","GHSA-m7mv-m566-78j6","JLSEC-2026-38","RHSA-2022:7128","RHSA-2023:0113","RHSA-2023:0160","RLSA-2022:7128","RLSA-2023:0113","SUSE-SU-2022:2912-1","SUSE-SU-2022:2914-1","SUSE-SU-2022:2946-1","SUSE-SU-2022:2987-1","SUSE-SU-2022:2988-1","SUSE-SU-2022:2989-1","SUSE-SU-2022:2989-2","SUSE-SU-2022:3193-1","SUSE-SU-2022:3269-1","UBUNTU-CVE-2022-2625","USN-5571-1","openSUSE-SU-2024:12264-1","openSUSE-SU-2024:12265-1","openSUSE-SU-2024:12266-1","openSUSE-SU-2024:12267-1","openSUSE-SU-2024:12268-1"],"analysis":{"component_type":"database","fix_type":"patch","impacts":["code_execution","privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"PostgreSQL database","requires_auth":"low_privilege","summary":"An attacker with schema creation rights can escalate privileges to superuser by manipulating extension creation if an administrator updates the extension.","user_interaction":"required","vuln_class":"privilege_escalation"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"fedora","vendor":"fedoraproject"},{"product":"postgresql","vendor":"postgresql"},{"product":"enterprise_linux","vendor":"redhat"}],"cvss":{"score":8,"severity":"high","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-1321","name":"Improperly Controlled Modification of Object Prototype Attributes"},{"id":"CWE-915","name":"Improperly Controlled Modification of Dynamically-Determined Object Attributes"}],"description":"A vulnerability was found in PostgreSQL. This attack requires permission to create non-temporary objects in at least one schema, the ability to lure or wait for an administrator to create or update an affected extension in that schema, and the ability to lure or wait for a victim to use the object targeted in CREATE OR REPLACE or CREATE IF NOT EXISTS. Given all three prerequisites, this flaw allows an attacker to run arbitrary code as the victim role, which may be a superuser.","ecosystems":["AlmaLinux:8","Bitnami","Red Hat:enterprise_linux:8::appstream","Red Hat:rhel_software_collections:3::el7","Rocky Linux:8","SUSE:Enterprise Storage 6","SUSE:Enterprise Storage 7","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 Package Hub 15 SP4","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 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 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 9","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-2625","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":"fedoraproject:fedora","products":["fedoraproject:fedora","postgresql:postgresql","redhat:enterprise_linux"],"type":"privilege_escalation","year":"2022"},"n_packages":214,"n_references":3,"next":{"headline":"Incorrect Privilege Assignment in hestiacp/hestiacp","id":"CVE-2022-2626"},"packages":[{"ecosystem":"Bitnami","fixed":["10.22.0","11.17.0","12.12.0","13.8.0","14.5.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-2625"},{"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:7128"},{"ecosystem":"AlmaLinux:8","fixed":["1.4.6-3.module_el8.6.0+3095+ee60d910"],"introduced":["0"],"last_affected":[],"package":"pg_repack","purl":"pkg:rpm/almalinux/pg_repack","source":"ALSA-2022:7128"},{"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:7128"},{"ecosystem":"AlmaLinux:8","fixed":["1.4.0-5.module_el8.6.0+3094+eb237fb8"],"introduced":["0"],"last_affected":[],"package":"pgaudit","purl":"pkg:rpm/almalinux/pgaudit","source":"ALSA-2022:7128"},{"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:7128"},{"ecosystem":"AlmaLinux:8","fixed":["0.10.0-2.module_el8.6.0+3095+ee60d910"],"introduced":["0"],"last_affected":[],"package":"postgres-decoderbufs","purl":"pkg:rpm/almalinux/postgres-decoderbufs","source":"ALSA-2022:7128"},{"ecosystem":"AlmaLinux:8","fixed":["10.23-1.module_el8.7.0+3379+54d21c26"],"introduced":["0"],"last_affected":[],"package":"postgresql","purl":"pkg:rpm/almalinux/postgresql","source":"ALSA-2023:0113"},{"ecosystem":"AlmaLinux:8","fixed":["12.12-1.module_el8.6.0+3336+e779e518"],"introduced":["0"],"last_affected":[],"package":"postgresql","purl":"pkg:rpm/almalinux/postgresql","source":"ALSA-2022:7128"},{"ecosystem":"AlmaLinux:8","fixed":["10.23-1.module_el8.7.0+3379+54d21c26"],"introduced":["0"],"last_affected":[],"package":"postgresql-contrib","purl":"pkg:rpm/almalinux/postgresql-contrib","source":"ALSA-2023:0113"},{"ecosystem":"AlmaLinux:8","fixed":["12.12-1.module_el8.6.0+3336+e779e518"],"introduced":["0"],"last_affected":[],"package":"postgresql-contrib","purl":"pkg:rpm/almalinux/postgresql-contrib","source":"ALSA-2022:7128"},{"ecosystem":"AlmaLinux:8","fixed":["10.23-1.module_el8.7.0+3379+54d21c26"],"introduced":["0"],"last_affected":[],"package":"postgresql-docs","purl":"pkg:rpm/almalinux/postgresql-docs","source":"ALSA-2023:0113"},{"ecosystem":"AlmaLinux:8","fixed":["12.12-1.module_el8.6.0+3336+e779e518"],"introduced":["0"],"last_affected":[],"package":"postgresql-docs","purl":"pkg:rpm/almalinux/postgresql-docs","source":"ALSA-2022:7128"},{"ecosystem":"AlmaLinux:8","fixed":["10.23-1.module_el8.7.0+3379+54d21c26"],"introduced":["0"],"last_affected":[],"package":"postgresql-plperl","purl":"pkg:rpm/almalinux/postgresql-plperl","source":"ALSA-2023:0113"},{"ecosystem":"AlmaLinux:8","fixed":["12.12-1.module_el8.6.0+3336+e779e518"],"introduced":["0"],"last_affected":[],"package":"postgresql-plperl","purl":"pkg:rpm/almalinux/postgresql-plperl","source":"ALSA-2022:7128"},{"ecosystem":"AlmaLinux:8","fixed":["10.23-1.module_el8.7.0+3379+54d21c26"],"introduced":["0"],"last_affected":[],"package":"postgresql-plpython3","purl":"pkg:rpm/almalinux/postgresql-plpython3","source":"ALSA-2023:0113"},{"ecosystem":"AlmaLinux:8","fixed":["12.12-1.module_el8.6.0+3336+e779e518"],"introduced":["0"],"last_affected":[],"package":"postgresql-plpython3","purl":"pkg:rpm/almalinux/postgresql-plpython3","source":"ALSA-2022:7128"},{"ecosystem":"AlmaLinux:8","fixed":["10.23-1.module_el8.7.0+3379+54d21c26"],"introduced":["0"],"last_affected":[],"package":"postgresql-pltcl","purl":"pkg:rpm/almalinux/postgresql-pltcl","source":"ALSA-2023:0113"},{"ecosystem":"AlmaLinux:8","fixed":["12.12-1.module_el8.6.0+3336+e779e518"],"introduced":["0"],"last_affected":[],"package":"postgresql-pltcl","purl":"pkg:rpm/almalinux/postgresql-pltcl","source":"ALSA-2022:7128"},{"ecosystem":"AlmaLinux:8","fixed":["10.23-1.module_el8.7.0+3379+54d21c26"],"introduced":["0"],"last_affected":[],"package":"postgresql-server","purl":"pkg:rpm/almalinux/postgresql-server","source":"ALSA-2023:0113"},{"ecosystem":"AlmaLinux:8","fixed":["12.12-1.module_el8.6.0+3336+e779e518"],"introduced":["0"],"last_affected":[],"package":"postgresql-server","purl":"pkg:rpm/almalinux/postgresql-server","source":"ALSA-2022:7128"},{"ecosystem":"AlmaLinux:8","fixed":["10.23-1.module_el8.7.0+3379+54d21c26"],"introduced":["0"],"last_affected":[],"package":"postgresql-server-devel","purl":"pkg:rpm/almalinux/postgresql-server-devel","source":"ALSA-2023:0113"},{"ecosystem":"AlmaLinux:8","fixed":["12.12-1.module_el8.6.0+3336+e779e518"],"introduced":["0"],"last_affected":[],"package":"postgresql-server-devel","purl":"pkg:rpm/almalinux/postgresql-server-devel","source":"ALSA-2022:7128"},{"ecosystem":"AlmaLinux:8","fixed":["10.23-1.module_el8.7.0+3379+54d21c26"],"introduced":["0"],"last_affected":[],"package":"postgresql-static","purl":"pkg:rpm/almalinux/postgresql-static","source":"ALSA-2023:0113"},{"ecosystem":"AlmaLinux:8","fixed":["12.12-1.module_el8.6.0+3336+e779e518"],"introduced":["0"],"last_affected":[],"package":"postgresql-static","purl":"pkg:rpm/almalinux/postgresql-static","source":"ALSA-2022:7128"},{"ecosystem":"AlmaLinux:8","fixed":["10.23-1.module_el8.7.0+3379+54d21c26"],"introduced":["0"],"last_affected":[],"package":"postgresql-test","purl":"pkg:rpm/almalinux/postgresql-test","source":"ALSA-2023:0113"},{"ecosystem":"AlmaLinux:8","fixed":["12.12-1.module_el8.6.0+3336+e779e518"],"introduced":["0"],"last_affected":[],"package":"postgresql-test","purl":"pkg:rpm/almalinux/postgresql-test","source":"ALSA-2022:7128"},{"ecosystem":"AlmaLinux:8","fixed":["10.23-1.module_el8.7.0+3379+54d21c26"],"introduced":["0"],"last_affected":[],"package":"postgresql-test-rpm-macros","purl":"pkg:rpm/almalinux/postgresql-test-rpm-macros","source":"ALSA-2023:0113"},{"ecosystem":"AlmaLinux:8","fixed":["12.12-1.module_el8.6.0+3336+e779e518"],"introduced":["0"],"last_affected":[],"package":"postgresql-test-rpm-macros","purl":"pkg:rpm/almalinux/postgresql-test-rpm-macros","source":"ALSA-2022:7128"},{"ecosystem":"AlmaLinux:8","fixed":["10.23-1.module_el8.7.0+3379+54d21c26"],"introduced":["0"],"last_affected":[],"package":"postgresql-upgrade","purl":"pkg:rpm/almalinux/postgresql-upgrade","source":"ALSA-2023:0113"},{"ecosystem":"AlmaLinux:8","fixed":["12.12-1.module_el8.6.0+3336+e779e518"],"introduced":["0"],"last_affected":[],"package":"postgresql-upgrade","purl":"pkg:rpm/almalinux/postgresql-upgrade","source":"ALSA-2022:7128"},{"ecosystem":"AlmaLinux:8","fixed":["10.23-1.module_el8.7.0+3379+54d21c26"],"introduced":["0"],"last_affected":[],"package":"postgresql-upgrade-devel","purl":"pkg:rpm/almalinux/postgresql-upgrade-devel","source":"ALSA-2023:0113"},{"ecosystem":"AlmaLinux:8","fixed":["12.12-1.module_el8.6.0+3336+e779e518"],"introduced":["0"],"last_affected":[],"package":"postgresql-upgrade-devel","purl":"pkg:rpm/almalinux/postgresql-upgrade-devel","source":"ALSA-2022:7128"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.4.6-3.module+el8.5.0+11354+78b3c9c5"],"introduced":["0"],"last_affected":[],"package":"pg_repack","purl":"pkg:rpm/redhat/pg_repack","source":"RHSA-2022:7128"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.4.6-3.module+el8.5.0+11354+78b3c9c5"],"introduced":["0"],"last_affected":[],"package":"pg_repack-debuginfo","purl":"pkg:rpm/redhat/pg_repack-debuginfo","source":"RHSA-2022:7128"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.4.6-3.module+el8.5.0+11354+78b3c9c5"],"introduced":["0"],"last_affected":[],"package":"pg_repack-debugsource","purl":"pkg:rpm/redhat/pg_repack-debugsource","source":"RHSA-2022:7128"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.4.0-5.module+el8.5.0+11354+78b3c9c5"],"introduced":["0"],"last_affected":[],"package":"pgaudit","purl":"pkg:rpm/redhat/pgaudit","source":"RHSA-2022:7128"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.4.0-5.module+el8.5.0+11354+78b3c9c5"],"introduced":["0"],"last_affected":[],"package":"pgaudit-debuginfo","purl":"pkg:rpm/redhat/pgaudit-debuginfo","source":"RHSA-2022:7128"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.4.0-5.module+el8.5.0+11354+78b3c9c5"],"introduced":["0"],"last_affected":[],"package":"pgaudit-debugsource","purl":"pkg:rpm/redhat/pgaudit-debugsource","source":"RHSA-2022:7128"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:0.10.0-2.module+el8.5.0+11354+78b3c9c5"],"introduced":["0"],"last_affected":[],"package":"postgres-decoderbufs","purl":"pkg:rpm/redhat/postgres-decoderbufs","source":"RHSA-2022:7128"}],"prev":{"headline":"Memory corruption in Chrome","id":"CVE-2022-2624"},"products":["postgresql"],"published":"2022-08-18","related":[{"cvss_score":9.8,"headline":"PHP-CGI OS Command Injection","id":"CVE-2024-4577","kev_date_added":"2024-06-12","published":"2024-06-09"},{"cvss_score":9.8,"headline":"Grafana Authentication Bypass","id":"CVE-2021-39226","kev_date_added":"2022-08-25","published":"2021-10-05"},{"cvss_score":9.8,"headline":"VMware ESXi and Horizon DaaS OpenSLP Heap-Based Buffer Overflow","id":"CVE-2019-5544","kev_date_added":"2021-11-03","published":"2019-12-06"},{"cvss_score":9.6,"headline":"Google Chromium V8 Type Confusion","id":"CVE-2024-4947","kev_date_added":"2024-05-20","published":"2024-05-15"},{"cvss_score":9.6,"headline":"Google Chromium Visuals Use-After-Free","id":"CVE-2024-4671","kev_date_added":"2024-05-13","published":"2024-05-09"},{"cvss_score":9.6,"headline":"Google Chromium Mojo Insufficient Data Validation","id":"CVE-2022-3075","kev_date_added":"2022-09-08","published":"2022-09-26"},{"cvss_score":9.6,"headline":"Google Chromium Indexed DB API Use-After-Free","id":"CVE-2021-30633","kev_date_added":"2021-11-03","published":"2021-10-08"}],"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 schema creation rights can escalate privileges to superuser by manipulating extension creation if an administrator updates the extension.","url":"https://insights.sbomify.com/CVE-2022-2625/"}