Skip to main content
No exploitation reportedFix available

CVE-2022-2625

No exploitation reported by the sources we read.

  • Published2022-08-18
  • Fixed in14.5 · 13.8 · 12.12 · 11.17 · 10.22
  • WeaknessCWE-1321 · CWE-915

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

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.

Timeline

dates in UTC
  1. 2022-08-1819:15CVE publishedNVD

Observed activity

isMalicious corpus · updated 2026-10-23 21:37 UTC
Indicators tagged with this CVE, per day0 indicators over 7 days
Block these indicators
  • Firewall list (EDL, text): https://api.ismalicious.com/edl/cve/CVE-2022-2625?format=txt
  • CSV export: https://api.ismalicious.com/edl/cve/CVE-2022-2625?format=csv
  • TAXII collection of exploited CVEs
  • The EDL and CSV take an API key on the Pro plan.

Versions per branch

NVD · OSV
PostgreSQL
BranchAffectedFixed in
14.x≥ 14.0, < 14.514.5
13.x≥ 13.0, < 13.813.8
12.x≥ 12.0, < 12.1212.12
11.x≥ 11.0, < 11.1711.17
10.x≥ 10.0, < 10.2210.22
15.x= 15no fix published
postgresql
BranchAffectedFixed in
14.x≥ 14.0.0, < 14.5.014.5.0
13.x≥ 13.0.0, < 13.8.013.8.0
12.x≥ 12.0.0, < 12.12.012.12.0
11.x≥ 11.0.0, < 11.17.011.17.0
10.x≥ 10.0.0, < 10.22.010.22.0
Redhat enterprise linux
BranchAffectedFixed in
6.0= 6.0no fix published
7.0= 7.0no fix published
8.0= 8.0no fix published
9.0= 9.0no fix published

1 more product in the sources.

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • pg_repackAlmaLinux:8all versions · fixed in 1.4.6-3.module_el8.6.0+2760+1746ec94
  • pg_repackAlmaLinux:8all versions · fixed in 1.4.6-3.module_el8.6.0+3095+ee60d910
  • pgauditAlmaLinux:8all versions · fixed in 1.4.0-5.module_el8.6.0+2758+4f4474df
  • pgauditAlmaLinux:8all versions · fixed in 1.4.0-5.module_el8.6.0+3094+eb237fb8
  • pgauditAlmaLinux:8all versions · fixed in 1.5.0-1.module_el8.6.0+2760+1746ec94
  • pgauditAlmaLinux:8all versions · fixed in 1.5.0-1.module_el8.6.0+3095+ee60d910
  • postgres-decoderbufsAlmaLinux:8all versions · fixed in 0.10.0-2.module_el8.6.0+2760+1746ec94
  • postgres-decoderbufsAlmaLinux:8all versions · fixed in 0.10.0-2.module_el8.6.0+3095+ee60d910

4 more package ranges on OSV.dev

Vendor advisories

  • RHSA-2023:7695 Red Hat Product Security192 products fixed

    Red Hat Security Advisory: postgresql:13 security update

  • RHSA-2023:7694 Red Hat Product Security192 products fixed

    Red Hat Security Advisory: postgresql:12 security update

  • RHSA-2023:7667 Red Hat Product Security132 products fixed

    Red Hat Security Advisory: postgresql:12 security update

  • RHSA-2023:7580 Red Hat Product Security137 products fixed

    Red Hat Security Advisory: postgresql:13 security update

  • RHSA-2023:7545 Red Hat Product Security149 products fixed

    Red Hat Security Advisory: postgresql security update

Full record on NVD

Fix

  1. Update PostgreSQL to 14.5 · 13.8 · 12.12 · 11.17 · 10.22
  2. Vendor fix Red Hat Product Security RHSA-2023:7695 · 192 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258 If the postgresql service is running, it will be automatically restarted after installing this update.

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof-of-concept repositories
none listed
PoC-in-GitHub

Sources

  • NVDCVSS 3.18read 2026-10-23
  • CNAweakness (CWE)CWE-915read 2026-10-23
  • NVDweakness (CWE)CWE-1321read 2026-10-23
  • FIRST EPSSEPSS score2.0 %2026-10-23
  • OSVaffected packages—

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Published
2022-08-18
Last Modified
2026-06-17
NVD status
Modified

Frequently asked questions

What is 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.

Is CVE-2022-2625 actively exploited?

Active exploitation of CVE-2022-2625 has not been confirmed. Its EPSS score was 2.0% on 2026-10-23, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2022-2625?

CVE-2022-2625 has a CVSS v3 base score of 8 (HIGH severity), with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H.

Running PostgreSQL? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month