Vulnerability database / CVE-2022-2625
CVE-2022-2625
HIGH 8.0 CVSS 3.1 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.
Published 18 Aug 2022
Last modified 2 Nov 2026 Assigned by secalert@redhat.com NVD status Modified Weakness
CWE-1321 CWE-915 Sources
NVD JSON Scores
Source Scored by Version Score Vector / decision
NVD
nvd@nist.gov (Primary)
CVSS 3.1
HIGH 8.0
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Affected
Source Vendor / ecosystem Product / package Affected versions Fixed in
NVD
postgresql
postgresqlcpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*
>= 10.0, < 10.22
10.22 NVD
postgresql
postgresqlcpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*
>= 11.0, < 11.17
11.17 NVD
postgresql
postgresqlcpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*
>= 12.0, < 12.12
12.12 NVD
postgresql
postgresqlcpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*
>= 13.0, < 13.8
13.8 NVD
postgresql
postgresqlcpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*
>= 14.0, < 14.5
14.5 NVD
postgresql
postgresqlcpe:2.3:a:postgresql:postgresql:15:beta1:*:*:*:*:*:*
= 15
NVD
postgresql
postgresqlcpe:2.3:a:postgresql:postgresql:15:beta2:*:*:*:*:*:*
= 15
NVD
fedoraproject
fedoracpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*
= 36
NVD
redhat
enterprise_linuxcpe:2.3:o:redhat:enterprise_linux:6.0:*:*:*:*:*:*:*
= 6.0
NVD
redhat
enterprise_linuxcpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*
= 7.0
NVD
redhat
enterprise_linuxcpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*
= 8.0
NVD
redhat
enterprise_linuxcpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*
= 9.0
References
History
25 Nov 2026 20:34 UTC · NVD: first stored (published 18 Aug 2022)