---
title: "CVE-2022-2625"
canonical_url: "https://pkgseek.com/security/CVE-2022-2625"
locale: "en"
source: "pkgseek"
entity_type: "cve"
severity: "high"
---

# CVE-2022-2625

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 is rated HIGH (8.0), with 66 indexed affected package builds across 4 distributions.

- **Severity / Score**: HIGH (8.0)
- **Affected builds**: 66
- **Affected distros**: 4
- **Distros with fixed_in**: Alibaba Cloud Linux, Oracle Linux, Red Hat Enterprise Linux, Ubuntu

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Alibaba Cloud Linux | 3 | postgresql | 13.7-2.0.1.al8 | 13.10-1.0.1.al8 |
| Alibaba Cloud Linux | 3 | postgresql-contrib | 13.7-2.0.1.al8 | 13.10-1.0.1.al8 |
| Alibaba Cloud Linux | 3 | postgresql-docs | 13.7-2.0.1.al8 | 13.10-1.0.1.al8 |
| Alibaba Cloud Linux | 3 | postgresql-plperl | 13.7-2.0.1.al8 | 13.10-1.0.1.al8 |
| Alibaba Cloud Linux | 3 | postgresql-plpython3 | 13.7-2.0.1.al8 | 13.10-1.0.1.al8 |
| Alibaba Cloud Linux | 3 | postgresql-pltcl | 13.7-2.0.1.al8 | 13.10-1.0.1.al8 |
| Alibaba Cloud Linux | 3 | postgresql-server | 13.7-2.0.1.al8 | 13.10-1.0.1.al8 |
| Alibaba Cloud Linux | 3 | postgresql-server-devel | 13.7-2.0.1.al8 | 13.10-1.0.1.al8 |
| Alibaba Cloud Linux | 3 | postgresql-static | 13.7-2.0.1.al8 | 13.10-1.0.1.al8 |
| Alibaba Cloud Linux | 3 | postgresql-test | 13.7-2.0.1.al8 | 13.10-1.0.1.al8 |
| Alibaba Cloud Linux | 3 | postgresql-test-rpm-macros | 13.7-2.0.1.al8 | 13.10-1.0.1.al8 |
| Alibaba Cloud Linux | 3 | postgresql-upgrade | 13.7-2.0.1.al8 | 13.10-1.0.1.al8 |
| Alibaba Cloud Linux | 3 | postgresql-upgrade-devel | 13.7-2.0.1.al8 | 13.10-1.0.1.al8 |
| Oracle Linux | 8 | pgaudit | 1.4.0-7.module+el8.10.0+90397+67dad74f | 1.5.0-1.module+el8.4.0+20016+06fd4df3 |
| Oracle Linux | 8 | pg_repack | 1.4.6-3.module+el8.5.0+20333+86306fc7 | 1.4.6-3.module+el8.5.0+20353+e924f9ed |
| Oracle Linux | 8 | postgres-decoderbufs | 0.10.0-2.module+el8.4.0+20191+2f8d0e59 | 0.10.0-2.module+el8.5.0+20333+86306fc7 |
| Oracle Linux | 8 | postgresql | 12.22-12.module+el8.10.0+91045+f9258fff | 13.10-1.module+el8.7.0+21022+658346a0 |
| Oracle Linux | 8 | postgresql-contrib | 12.22-12.module+el8.10.0+91045+f9258fff | 13.10-1.module+el8.7.0+21022+658346a0 |
| Oracle Linux | 8 | postgresql-docs | 12.22-12.module+el8.10.0+91045+f9258fff | 13.10-1.module+el8.7.0+21022+658346a0 |
| Oracle Linux | 8 | postgresql-plperl | 12.22-12.module+el8.10.0+91045+f9258fff | 13.10-1.module+el8.7.0+21022+658346a0 |
| Oracle Linux | 8 | postgresql-plpython3 | 12.22-12.module+el8.10.0+91045+f9258fff | 13.10-1.module+el8.7.0+21022+658346a0 |
| Oracle Linux | 8 | postgresql-pltcl | 12.22-12.module+el8.10.0+91045+f9258fff | 13.10-1.module+el8.7.0+21022+658346a0 |
| Oracle Linux | 8 | postgresql-server | 12.22-12.module+el8.10.0+91045+f9258fff | 13.10-1.module+el8.7.0+21022+658346a0 |
| Oracle Linux | 8 | postgresql-server-devel | 12.22-12.module+el8.10.0+91045+f9258fff | 13.10-1.module+el8.7.0+21022+658346a0 |
| Oracle Linux | 8 | postgresql-static | 12.22-12.module+el8.10.0+91045+f9258fff | 13.10-1.module+el8.7.0+21022+658346a0 |
| Oracle Linux | 8 | postgresql-test | 12.22-12.module+el8.10.0+91045+f9258fff | 13.10-1.module+el8.7.0+21022+658346a0 |
| Oracle Linux | 8 | postgresql-test-rpm-macros | 12.22-12.module+el8.10.0+91045+f9258fff | 13.10-1.module+el8.7.0+21022+658346a0 |
| Oracle Linux | 8 | postgresql-upgrade | 12.22-12.module+el8.10.0+91045+f9258fff | 13.10-1.module+el8.7.0+21022+658346a0 |
| Oracle Linux | 8 | postgresql-upgrade-devel | 12.22-12.module+el8.10.0+91045+f9258fff | 13.10-1.module+el8.7.0+21022+658346a0 |
| Oracle Linux | 9 | postgresql | 13.7-1.el9_0 | 13.10-1.el9_1 |
| Oracle Linux | 9 | postgresql-contrib | 13.7-1.el9_0 | 13.10-1.el9_1 |
| Oracle Linux | 9 | postgresql-plperl | 13.7-1.el9_0 | 13.10-1.el9_1 |
| Oracle Linux | 9 | postgresql-plpython3 | 13.7-1.el9_0 | 13.10-1.el9_1 |
| Oracle Linux | 9 | postgresql-pltcl | 13.7-1.el9_0 | 13.10-1.el9_1 |
| Oracle Linux | 9 | postgresql-private-libs | 13.7-1.el9_0 | 13.10-1.el9_1 |
| Oracle Linux | 9 | postgresql-server | 13.7-1.el9_0 | 13.10-1.el9_1 |
| Oracle Linux | 9 | postgresql-upgrade | 13.7-1.el9_0 | 13.10-1.el9_1 |
| Red Hat Enterprise Linux | 9.8 | postgresql | 13.7-1.el9_0 | 13.10-1.el9_1 |
| Red Hat Enterprise Linux | 9.8 | postgresql-contrib | 13.7-1.el9_0 | 13.10-1.el9_1 |
| Red Hat Enterprise Linux | 9.8 | postgresql-plperl | 13.7-1.el9_0 | 13.10-1.el9_1 |
| Red Hat Enterprise Linux | 9.8 | postgresql-plpython3 | 13.7-1.el9_0 | 13.10-1.el9_1 |
| Red Hat Enterprise Linux | 9.8 | postgresql-pltcl | 13.7-1.el9_0 | 13.10-1.el9_1 |
| Red Hat Enterprise Linux | 9.8 | postgresql-private-libs | 13.7-1.el9_0 | 13.10-1.el9_1 |
| Red Hat Enterprise Linux | 9.8 | postgresql-server | 13.7-1.el9_0 | 13.10-1.el9_1 |
| Red Hat Enterprise Linux | 9.8 | postgresql-upgrade | 13.7-1.el9_0 | 13.10-1.el9_1 |
| Ubuntu | focal | libecpg6 | 12.2-4 | 12.12-0ubuntu0.20.04.1 |
| Ubuntu | focal | libecpg-compat3 | 12.2-4 | 12.12-0ubuntu0.20.04.1 |
| Ubuntu | focal | libecpg-dev | 12.2-4 | 12.12-0ubuntu0.20.04.1 |
| Ubuntu | focal | libpgtypes3 | 12.2-4 | 12.12-0ubuntu0.20.04.1 |
| Ubuntu | focal | libpq5 | 12.2-4 | 12.12-0ubuntu0.20.04.1 |
| Ubuntu | focal | libpq-dev | 12.2-4 | 12.12-0ubuntu0.20.04.1 |
| Ubuntu | focal | postgresql-12 | 12.2-4 | 12.12-0ubuntu0.20.04.1 |
| Ubuntu | focal | postgresql-client-12 | 12.2-4 | 12.12-0ubuntu0.20.04.1 |
| Ubuntu | focal | postgresql-doc-12 | 12.2-4 | 12.12-0ubuntu0.20.04.1 |
| Ubuntu | jammy | libecpg6 | 14.2-1ubuntu1 | 14.5-0ubuntu0.22.04.1 |
| Ubuntu | jammy | libecpg-compat3 | 14.2-1ubuntu1 | 14.5-0ubuntu0.22.04.1 |
| Ubuntu | jammy | libecpg-dev | 14.2-1ubuntu1 | 14.5-0ubuntu0.22.04.1 |
| Ubuntu | jammy | libpgtypes3 | 14.2-1ubuntu1 | 14.5-0ubuntu0.22.04.1 |
| Ubuntu | jammy | libpq5 | 14.2-1ubuntu1 | 14.5-0ubuntu0.22.04.1 |
| Ubuntu | jammy | libpq-dev | 14.2-1ubuntu1 | 14.5-0ubuntu0.22.04.1 |
| Ubuntu | jammy | postgresql-14 | 14.2-1ubuntu1 | 14.5-0ubuntu0.22.04.1 |
| Ubuntu | jammy | postgresql-client-14 | 14.2-1ubuntu1 | 14.5-0ubuntu0.22.04.1 |
| Ubuntu | jammy | postgresql-doc-14 | 14.2-1ubuntu1 | 14.5-0ubuntu0.22.04.1 |
| Ubuntu | jammy | postgresql-plperl-14 | 14.2-1ubuntu1 | 14.5-0ubuntu0.22.04.1 |
| Ubuntu | jammy | postgresql-plpython3-14 | 14.2-1ubuntu1 | 14.5-0ubuntu0.22.04.1 |
| Ubuntu | jammy | postgresql-pltcl-14 | 14.2-1ubuntu1 | 14.5-0ubuntu0.22.04.1 |
