CVE-2022-2625

published 18 Aug 2022 · updated 2 Nov 2026

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.

8.0HighCVSS 8.0EPSS 2%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 2%. No fixed version is recorded.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
=postgresql 14.5, postgresql 13.8, postgresql 12.12, postgresql 11.17, postgresql 10.22

Timeline

Every event on this vulnerability

Severity changedCVE-2022-2625·
8.0High

Embed

A live severity badge for an advisory, README or ticket

CVE-2022-2625 severity on Zeptric[![CVE-2022-2625](https://zeptric.io/badge/cve/CVE-2022-2625.svg)](https://zeptric.io/cve/CVE-2022-2625)