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.
CVE-2022-2625
CVSS base score
8.0 (v3.1)
Severity
HIGH
Attack vector
Network
Weakness
CWE-915, CWE-1321
Last modified
November 2, 2026
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Affected products
postgresql postgresql
fedoraproject fedora
redhat enterprise linux
References
- bugzilla.redhat.com Issue Tracking, Third Party Advisory
- security.gentoo.org Third Party Advisory
- www.postgresql.org Release Notes, Vendor Advisory
- bugzilla.redhat.com Issue Tracking, Third Party Advisory
- security.gentoo.org Third Party Advisory
- www.postgresql.org Release Notes, Vendor Advisory