Vulnerability · Published Aug 18, 2022 · Assigned by redhat

CVE-2022-2625

High 8.0

In plain English

A high-severity security flaw in postgresql. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.2% (higher than 82% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)8.0High
Exploit odds (30 days)2.2%top 17.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8pg_repack1.4.6-3.module_el8.6.0+3095+ee60d910ALSA-2023:1576
AlmaLinux:8pg_repack1.4.6-3.module_el8.6.0+3095+ee60d910ALSA-2022:7128
AlmaLinux:8pg_repack1.4.6-3.module_el8.6.0+2760+1746ec94ALSA-2022:7128
AlmaLinux:8pg_repack1.4.6-3.module_el8.6.0+2760+1746ec94ALSA-2023:1576
AlmaLinux:8pgaudit1.5.0-1.module_el8.6.0+2760+1746ec94ALSA-2023:1576
AlmaLinux:8pgaudit1.4.0-5.module_el8.6.0+2758+4f4474dfALSA-2022:7128
AlmaLinux:8pgaudit1.4.0-5.module_el8.6.0+3094+eb237fb8ALSA-2022:7128
AlmaLinux:8pgaudit1.5.0-1.module_el8.6.0+3095+ee60d910ALSA-2023:1576
AlmaLinux:8postgres-decoderbufs0.10.0-2.module_el8.6.0+3095+ee60d910ALSA-2023:1576
AlmaLinux:8postgres-decoderbufs0.10.0-2.module_el8.6.0+2760+1746ec94ALSA-2023:1576
AlmaLinux:8postgres-decoderbufs0.10.0-2.module_el8.6.0+2760+1746ec94ALSA-2022:7128
AlmaLinux:8postgres-decoderbufs0.10.0-2.module_el8.6.0+3095+ee60d910ALSA-2022:7128
AlmaLinux:8postgresql13.10-1.module_el8.7.0+3498+cb1ef3c6ALSA-2023:1576
AlmaLinux:8postgresql10.23-1.module_el8.7.0+3379+54d21c26ALSA-2023:0113
AlmaLinux:8postgresql12.12-1.module_el8.6.0+3336+e779e518ALSA-2022:7128
AlmaLinux:9postgresql13.10-1.el9_1ALSA-2023:1693
AlmaLinux:8postgresql-contrib12.12-1.module_el8.6.0+3336+e779e518ALSA-2022:7128
AlmaLinux:8postgresql-contrib13.10-1.module_el8.7.0+3498+cb1ef3c6ALSA-2023:1576
AlmaLinux:8postgresql-contrib10.23-1.module_el8.7.0+3379+54d21c26ALSA-2023:0113
AlmaLinux:9postgresql-contrib13.10-1.el9_1ALSA-2023:1693
AlmaLinux:8postgresql-docs12.12-1.module_el8.6.0+3336+e779e518ALSA-2022:7128
AlmaLinux:8postgresql-docs10.23-1.module_el8.7.0+3379+54d21c26ALSA-2023:0113
AlmaLinux:8postgresql-docs13.10-1.module_el8.7.0+3498+cb1ef3c6ALSA-2023:1576
AlmaLinux:9postgresql-docs13.10-1.el9_1ALSA-2023:1693
AlmaLinux:8postgresql-plperl13.10-1.module_el8.7.0+3498+cb1ef3c6ALSA-2023:1576
AlmaLinux:8postgresql-plperl12.12-1.module_el8.6.0+3336+e779e518ALSA-2022:7128
AlmaLinux:8postgresql-plperl10.23-1.module_el8.7.0+3379+54d21c26ALSA-2023:0113
AlmaLinux:9postgresql-plperl13.10-1.el9_1ALSA-2023:1693
AlmaLinux:8postgresql-plpython313.10-1.module_el8.7.0+3498+cb1ef3c6ALSA-2023:1576
AlmaLinux:8postgresql-plpython310.23-1.module_el8.7.0+3379+54d21c26ALSA-2023:0113
AlmaLinux:8postgresql-plpython312.12-1.module_el8.6.0+3336+e779e518ALSA-2022:7128
AlmaLinux:9postgresql-plpython313.10-1.el9_1ALSA-2023:1693
AlmaLinux:8postgresql-pltcl10.23-1.module_el8.7.0+3379+54d21c26ALSA-2023:0113
AlmaLinux:8postgresql-pltcl12.12-1.module_el8.6.0+3336+e779e518ALSA-2022:7128
AlmaLinux:8postgresql-pltcl13.10-1.module_el8.7.0+3498+cb1ef3c6ALSA-2023:1576
AlmaLinux:9postgresql-pltcl13.10-1.el9_1ALSA-2023:1693
AlmaLinux:9postgresql-private-devel13.10-1.el9_1ALSA-2023:1693
AlmaLinux:9postgresql-private-libs13.10-1.el9_1ALSA-2023:1693
AlmaLinux:8postgresql-server12.12-1.module_el8.6.0+3336+e779e518ALSA-2022:7128
AlmaLinux:8postgresql-server10.23-1.module_el8.7.0+3379+54d21c26ALSA-2023:0113
AlmaLinux:8postgresql-server13.10-1.module_el8.7.0+3498+cb1ef3c6ALSA-2023:1576
AlmaLinux:9postgresql-server13.10-1.el9_1ALSA-2023:1693
AlmaLinux:8postgresql-server-devel12.12-1.module_el8.6.0+3336+e779e518ALSA-2022:7128
AlmaLinux:8postgresql-server-devel10.23-1.module_el8.7.0+3379+54d21c26ALSA-2023:0113
AlmaLinux:8postgresql-server-devel13.10-1.module_el8.7.0+3498+cb1ef3c6ALSA-2023:1576
AlmaLinux:9postgresql-server-devel13.10-1.el9_1ALSA-2023:1693
AlmaLinux:8postgresql-static10.23-1.module_el8.7.0+3379+54d21c26ALSA-2023:0113
AlmaLinux:8postgresql-static12.12-1.module_el8.6.0+3336+e779e518ALSA-2022:7128
AlmaLinux:8postgresql-static13.10-1.module_el8.7.0+3498+cb1ef3c6ALSA-2023:1576
AlmaLinux:9postgresql-static13.10-1.el9_1ALSA-2023:1693
AlmaLinux:8postgresql-test13.10-1.module_el8.7.0+3498+cb1ef3c6ALSA-2023:1576
AlmaLinux:8postgresql-test10.23-1.module_el8.7.0+3379+54d21c26ALSA-2023:0113
AlmaLinux:8postgresql-test12.12-1.module_el8.6.0+3336+e779e518ALSA-2022:7128
AlmaLinux:9postgresql-test13.10-1.el9_1ALSA-2023:1693
AlmaLinux:8postgresql-test-rpm-macros13.10-1.module_el8.7.0+3498+cb1ef3c6ALSA-2023:1576
AlmaLinux:8postgresql-test-rpm-macros12.12-1.module_el8.6.0+3336+e779e518ALSA-2022:7128
AlmaLinux:8postgresql-test-rpm-macros10.23-1.module_el8.7.0+3379+54d21c26ALSA-2023:0113
AlmaLinux:8postgresql-upgrade13.10-1.module_el8.7.0+3498+cb1ef3c6ALSA-2023:1576
AlmaLinux:8postgresql-upgrade12.12-1.module_el8.6.0+3336+e779e518ALSA-2022:7128
AlmaLinux:8postgresql-upgrade10.23-1.module_el8.7.0+3379+54d21c26ALSA-2023:0113
AlmaLinux:9postgresql-upgrade13.10-1.el9_1ALSA-2023:1693
AlmaLinux:8postgresql-upgrade-devel12.12-1.module_el8.6.0+3336+e779e518ALSA-2022:7128
AlmaLinux:8postgresql-upgrade-devel13.10-1.module_el8.7.0+3498+cb1ef3c6ALSA-2023:1576
AlmaLinux:8postgresql-upgrade-devel10.23-1.module_el8.7.0+3379+54d21c26ALSA-2023:0113
AlmaLinux:9postgresql-upgrade-devel13.10-1.el9_1ALSA-2023:1693
Alpine:v3.20postgresql1414.5-r0ALPINE-CVE-2022-2625
Alpine:v3.20postgresql1514.5-r0ALPINE-CVE-2022-2625
Rocky Linux:8pg_repack0:1.4.6-3.module+el8.5.0+684+c3892ef9RLSA-2022:7128
Rocky Linux:8pg_repack0:1.4.6-3.module+el8.5.0+684+c3892ef9RLSA-2023:1576
Rocky Linux:8pgaudit0:1.4.0-5.module+el8.5.0+686+20453eccRLSA-2022:7128
Rocky Linux:8pgaudit0:1.5.0-1.module+el8.5.0+684+c3892ef9RLSA-2023:1576
Rocky Linux:8postgres-decoderbufs0:0.10.0-2.module+el8.4.0+424+71d47d9aRLSA-2022:7128
Rocky Linux:8postgres-decoderbufs0:0.10.0-2.module+el8.5.0+684+c3892ef9RLSA-2022:7128
Rocky Linux:8postgres-decoderbufs0:0.10.0-2.module+el8.5.0+684+c3892ef9RLSA-2023:1576
Rocky Linux:8postgresql0:13.10-1.module+el8.7.0+1175+026203e7RLSA-2023:1576
Rocky Linux:8postgresql0:10.23-1.module+el8.7.0+1118+c6c6f44aRLSA-2023:0113
Rocky Linux:8postgresql0:12.12-1.module+el8.6.0+1049+f8fc4c36RLSA-2022:7128
Ubuntu:22.04:LTSpostgresql-1414.5-0ubuntu0.22.04.1USN-5571-1
Ubuntu:22.04:LTSpostgresql-1414.5-0ubuntu0.22.04.1UBUNTU-CVE-2022-2625

Affected products (as reported)

VendorProductVersions
n/a postgresql postgresql 14.5, postgresql 13.8, postgresql 12.12, postgresql 11.17, postgresql 10.22

Weakness: CWE-915

References