CVE-2022-2625: High severity postgresql vulnerability

Published Aug 2, 2022
·
Updated

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.

Other sources

Extension scripts replace objects not belonging to the extension.

Some extensions use CREATE OR REPLACE or CREATE IF NOT EXISTS commands. Some don't adhere to the documented rule to target only objects known to be extension members already. An attack requires permission to create non-temporary objects in at least one schema, ability to lure or wait for an administrator to create or update an affected extension in that schema, and 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, the attacker can run arbitrary code as the victim role, which may be a superuser. Known-affected extensions include both PostgreSQL-bundled and non-bundled extensions. PostgreSQL is blocking this attack in the core server, so there's no need to modify individual extensions.

Red Hat

Affected Software

17 affected componentsFixes available
redhat/postgresql<14.5
14.5
redhat/postgresql<13.8
13.8
redhat/postgresql<12.12
12.12
redhat/postgresql<11.17
11.17
redhat/postgresql<10.22
10.22
PostgreSQL postgresql>=10.0<10.22
PostgreSQL postgresql>=11.0<11.17
PostgreSQL postgresql>=12.0<12.12
PostgreSQL postgresql>=13.0<13.8
PostgreSQL postgresql>=14.0<14.5
PostgreSQL postgresql=15-beta1
PostgreSQL postgresql=15-beta2
Fedoraproject Fedora=36
redhat Enterprise Linux=6.0
redhat Enterprise Linux=7.0
redhat Enterprise Linux=8.0
redhat Enterprise Linux=9.0

Event History

Aug 18, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionWeakness

Frequently Asked Questions

1

What is the vulnerability ID for this PostgreSQL vulnerability?

The vulnerability ID for this PostgreSQL vulnerability is CVE-2022-2625.

2

What software versions are affected by this vulnerability?

The software versions affected by this vulnerability range from 10.0 to 14.5 of PostgreSQL.

3

What is the severity of CVE-2022-2625?

The severity of CVE-2022-2625 is high (8 out of 10).

4

How can I fix this vulnerability?

To fix this vulnerability, update your PostgreSQL software to version 14.5 or apply the appropriate patch provided by the vendor.

5

Where can I find more information about CVE-2022-2625?

You can find more information about CVE-2022-2625 on the official PostgreSQL website and the bugzilla pages provided in the references.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203