---
id: CVE-2022-2625
title: A vulnerability was found in PostgreSQL
summary: >-
  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, a…
severity: none
cwe:
  - CWE-915
product: postgresql
affected:
  - >-
    postgresql postgresql 14.5, postgresql 13.8, postgresql 12.12, postgresql
    11.17, postgresql 10.22
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-10-08T21:09:28.001555Z'
published: '2022-08-18'
updated: '2026-11-02'
sourceUpdated: '2026-11-02T18:24:37.778Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2022-2625'
references:
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2113825'
  - url: >-
      https://www.postgresql.org/about/news/postgresql-145-138-1212-1117-1022-and-15-beta-3-released-2496/
  - url: 'https://security.gentoo.org/glsa/202211-04'
    label: GLSA-202211-04
tags:
  - cve.org
epss: 0.02154
epssPercentile: 0.82215
ingestedAt: '2026-11-05T19:30:42.772Z'
---

## Overview

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

- `postgresql postgresql 14.5, postgresql 13.8, postgresql 12.12, postgresql 11.17, postgresql 10.22`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
