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.

Published: 2022-08-18 Last update: 2026-06-17 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2022-2625 is rated Moderate Risk (57/100): CVSS High severity, with medium exploitation likelihood (EPSS 1.47%). Mandatory action: Review affected assets and schedule remediation.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Exploit prediction scoring system (EPSS) score for CVE-2022-2625

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-06-15 0.97% 1.47% +0.49%
2 2026-01-25 0.86% 0.97% +0.11%
3 2026-01-08 0.86%

Full EPSS history (18 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2022-2625

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
8.0 3.1 HIGH
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:L)
A normal user session is enough; they don’t have to be admin.
User interaction (UI:R)
A real person has to do something—click, install, enable—otherwise it doesn’t land.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.
2.1 5.9 [email protected]

Weakness enumeration for CVE-2022-2625

OS Trackers for CVE-2022-2625

vendor priority summary link
alpine high CVE-2022-2625: 5 source package rows (postgresql, postgresql12, postgresql13, postgresql14, postgresql15); 36 state rows across 10 repos (3.17-community, 3.17-main, 3.18-community, 3.18-main, 3.19-community, 3.19-main, 3.20-community, 3.20-main, edge-community, edge-main); fixed 21, open 15. https://security.alpinelinux.org/vuln/CVE-2022-2625
debian not yet assigned CVE-2022-2625 not yet assigned priority: Debian including 1 source packages (postgresql-13), 1 status rows across 1 suites (bullseye): resolved 1. https://security-tracker.debian.org/tracker/CVE-2022-2625
gentoo high CVE-2022-2625: 1 GLSA(s) (202211-04), 1 atom(s) (dev-db/postgresql); latest impact high. https://bugs.gentoo.org/buglist.cgi?quicksearch=CVE-2022-2625
redhat medium https://access.redhat.com/security/cve/CVE-2022-2625
suse high CVE-2022-2625 severity important: SUSE including 498 source package names (12.14-21.1:libpq5-14.5-150200.5.17.1, 12.14-21.1:postgresql12-12.12-150200.8.35.1, …), 1655 product×package rows across 73 product lines (Container suse/postgres, Container trento/trento-db, … (73 product lines)): Fixed 1424, Known Affected 231. https://www.suse.com/security/cve/CVE-2022-2625/
ubuntu medium CVE-2022-2625 medium priority: Ubuntu including 7 source packages (postgresql-10, postgresql-12, …), 91 status rows across 13 suites (bionic, focal, jammy, kinetic, lunar, mantic, noble, oracular, plucky, questing, trusty, upstream, xenial): DNE 78, released 7, ignored 3, deferred 1, needs-triage 1, not-affected 1. https://ubuntu.com/security/CVE-2022-2625

Affected software / configurations for CVE-2022-2625

Vendor Product Version Raw CPE
postgresql postgresql >= 10.0, < 10.22 cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*
postgresql postgresql >= 11.0, < 11.17 cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*
postgresql postgresql >= 12.0, < 12.12 cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*
postgresql postgresql >= 13.0, < 13.8 cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*
postgresql postgresql >= 14.0, < 14.5 cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*
postgresql postgresql 15 cpe:2.3:a:postgresql:postgresql:15:beta1:*:*:*:*:*:*
postgresql postgresql 15 cpe:2.3:a:postgresql:postgresql:15:beta2:*:*:*:*:*:*
fedoraproject fedora 36 cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*
redhat enterprise_linux 6.0 cpe:2.3:o:redhat:enterprise_linux:6.0:*:*:*:*:*:*:*
redhat enterprise_linux 7.0 cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*
redhat enterprise_linux 8.0 cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*
redhat enterprise_linux 9.0 cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*

References for CVE-2022-2625

cvelogic Threat Intelligence