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
Score 8.0 from GitHub Security Advisory (severity: HIGH) published 2022-08-19. NVD baseline CVSS 8.0; sources differ by 0.0.
- High severity, but no confirmed exploitation yet
A fix is available — apply it.
- CVSS v3
- 8.0
- EG Score
- 8.0(medium)
- EPSS
- 71.6%
- KEV
- Not listed
Published
August 18, 2022
Last Modified
November 21, 2024
References (6)
- secalert@redhathttps://bugzilla.redhat.com/show_bug.cgi?id=2113825
- secalert@redhathttps://security.gentoo.org/glsa/202211-04
- secalert@redhathttps://www.postgresql.org/about/news/postgresql-145-138-1212-1117-1022-and-15-beta-3-released-2496/
- af854a3a-2127-422b-91ae-364da2661108https://bugzilla.redhat.com/show_bug.cgi?id=2113825
- af854a3a-2127-422b-91ae-364da2661108https://security.gentoo.org/glsa/202211-04
- af854a3a-2127-422b-91ae-364da2661108https://www.postgresql.org/about/news/postgresql-145-138-1212-1117-1022-and-15-beta-3-released-2496/
Patch Availability(11)
| Vendor / Ecosystem | Fixed in / Patch | Released | Source |
|---|---|---|---|
| ubuntu | libecpg-compat3 (14.5-0ubuntu0.22.04.1) @ jammy | 2026-05-25 | ubuntu |
| redhat | postgresql:13-8040020231127154806.522a0ee4 | 2023-12-07 | redhat |
| redhat | postgresql:12-8040020231127153301.522a0ee4 | 2023-12-07 | redhat |
| redhat | postgresql:12-8020020231128165246.4cda2c84 | 2023-12-06 | redhat |
| redhat | postgresql:13-8060020231114115246.ad008a3a | 2023-11-29 | redhat |
| redhat | postgresql-0:13.13-1.el9_0 | 2023-11-28 | redhat |
| redhat | postgresql-0:13.10-1.el9_1 | 2023-04-11 | redhat |
| redhat | postgresql:13-8070020230227142544.bd1311ed | 2023-04-04 | redhat |
| redhat | rh-postgresql10-postgresql-0:10.23-1.el7 | 2023-01-12 | redhat |
| redhat | postgresql:10-8070020221124143148.bd1311ed | 2023-01-12 | redhat |
| redhat | postgresql:12-8060020221003080350.ad008a3a | 2022-10-25 | redhat |
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Weakness Classification(3)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
All Vendor Advisories
(12)
Every vendor that published an advisory referencing this CVE — pulled from our cve_vendor_advisories aggregation. Click any row for the vendor's original advisory page.
- Microsoft MSRCCVE-2022-26252022-08-20
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.
- Red HatRHSA-2022:7128MODERATE2022-08-11
RHSA-2022:7128 — Moderate
- Red HatRHSA-2023:0113MODERATE2022-08-11
RHSA-2023:0113 — Moderate
- Red HatRHSA-2023:0160MODERATE2022-08-11
RHSA-2023:0160 — Moderate
- Red HatRHSA-2023:1576MODERATE2022-08-11
RHSA-2023:1576 — Moderate
- Red HatRHSA-2023:1693MODERATE2022-08-11
RHSA-2023:1693 — Moderate
- Red HatRHSA-2023:7545MODERATE2022-08-11
RHSA-2023:7545 — Moderate
- Red HatRHSA-2023:7580MODERATE2022-08-11
RHSA-2023:7580 — Moderate
- Red HatRHSA-2023:7667MODERATE2022-08-11
RHSA-2023:7667 — Moderate
- Red HatRHSA-2023:7694MODERATE2022-08-11
RHSA-2023:7694 — Moderate
- Red HatRHSA-2023:7695MODERATE2022-08-11
RHSA-2023:7695 — Moderate
- UbuntuUSN-5571-1MEDIUM
PostgreSQL vulnerability
Data Freshness Timeline
(refreshed 11× in last 7d / 45× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-11 08:25 UTCEPSS rescore
- 2026-07-11 08:25 UTCEPSS rescore
- 2026-07-09 19:07 UTCEPSS rescore
- 2026-07-08 15:12 UTCEPSS rescore
- 2026-07-07 13:44 UTCEPSS rescore
- 2026-07-06 16:25 UTCEPSS rescore
- 2026-07-06 16:25 UTCEPSS rescore
- 2026-07-06 02:21 UTCEPSS rescore
- 2026-07-06 02:21 UTCEPSS rescore
- 2026-07-05 02:28 UTCEPSS rescore
- 2026-07-05 02:28 UTCEPSS rescore
- 2026-07-04 06:29 UTCEPSS rescore
- 2026-07-04 06:29 UTCEPSS rescore
- 2026-07-01 15:04 UTCEPSS rescore
- 2026-06-30 23:20 UTCEPSS rescore
- 2026-06-30 23:20 UTCEPSS rescore
- 2026-06-28 20:32 UTCOSV refresh
- 2026-06-28 14:06 UTCEPSS rescore
- 2026-06-28 04:54 UTCEPSS rescore
- 2026-06-27 03:07 UTCEPSS rescore
- 2026-06-25 13:48 UTCEPSS rescore
- 2026-06-25 13:48 UTCEPSS rescore
- 2026-06-24 14:03 UTCEPSS rescore
- 2026-06-24 14:03 UTCEPSS rescore
- 2026-06-23 21:31 UTCEPSS rescore
Show 63 moreShow fewer
- 2026-06-23 21:31 UTCEPSS rescore
- 2026-06-22 14:24 UTCEPSS rescore
- 2026-06-22 14:24 UTCEPSS rescore
- 2026-06-21 14:55 UTCEPSS rescore
- 2026-06-21 14:55 UTCEPSS rescore
- 2026-06-21 01:58 UTCEPSS rescore
- 2026-06-21 01:58 UTCEPSS rescore
- 2026-06-19 19:24 UTCEPSS rescore
- 2026-06-19 19:24 UTCEPSS rescore
- 2026-06-18 17:51 UTCEPSS rescore
- 2026-06-18 17:51 UTCEPSS rescore
- 2026-06-17 17:51 UTCEPSS rescore
- 2026-06-17 17:51 UTCEPSS rescore
- 2026-06-16 17:51 UTCEPSS rescore
- 2026-06-16 17:51 UTCEPSS rescore
- 2026-06-15 17:46 UTCEPSS rescore
- 2026-06-14 23:15 UTCEPSS rescore
- 2026-06-13 22:58 UTCEPSS rescore
- 2026-06-12 23:10 UTCEPSS rescore
- 2026-06-12 23:10 UTCEPSS rescore
- 2026-06-11 14:55 UTCOSV refresh
- 2026-06-11 13:58 UTCEPSS rescore
- 2026-06-11 13:58 UTCEPSS rescore
- 2026-06-10 22:16 UTCEPSS rescore
- 2026-06-10 13:20 UTCEPSS rescore
- 2026-06-08 14:15 UTCEPSS rescore
- 2026-06-08 14:15 UTCEPSS rescore
- 2026-06-07 15:23 UTCEPSS rescore
- 2026-06-07 15:23 UTCEPSS rescore
- 2026-06-07 15:23 UTCEPSS rescore
- 2026-06-06 13:46 UTCEPSS rescore
- 2026-06-06 13:46 UTCEPSS rescore
- 2026-06-05 22:45 UTCEPSS rescore
- 2026-06-05 22:45 UTCEPSS rescore
- 2026-06-05 06:09 UTCEPSS rescore
- 2026-06-05 06:09 UTCEPSS rescore
- 2026-06-04 13:11 UTCEPSS rescore
- 2026-06-04 13:11 UTCEPSS rescore
- 2026-06-02 20:11 UTCEPSS rescore
- 2026-06-02 20:11 UTCEPSS rescore
- 2026-06-02 20:11 UTCEPSS rescore
- 2026-06-01 13:50 UTCEPSS rescore
- 2026-06-01 13:50 UTCEPSS rescore
- 2026-05-31 22:29 UTCEPSS rescore
- 2026-05-31 22:29 UTCEPSS rescore
- 2026-05-31 22:29 UTCEPSS rescore
- 2026-05-31 00:15 UTCEPSS rescore
- 2026-05-31 00:15 UTCEPSS rescore
- 2026-05-29 13:43 UTCEPSS rescore
- 2026-05-29 13:42 UTCEPSS rescore
- 2026-05-28 13:43 UTCEPSS rescore
- 2026-05-28 13:43 UTCEPSS rescore
- 2026-05-28 13:43 UTCEPSS rescore
- 2026-05-27 13:39 UTCEPSS rescore
- 2026-05-27 13:39 UTCEPSS rescore
- 2026-05-26 13:43 UTCEPSS rescore
- 2026-05-26 07:17 UTCEPSS rescore
- 2026-05-26 07:17 UTCEPSS rescore
- 2026-05-26 07:17 UTCEPSS rescore
- 2026-05-25 16:57 UTCEG score recompute
- 2026-05-25 16:57 UTCVendor advisory
- 2026-05-25 16:57 UTCGHSA enrichment
- 2026-05-24 16:51 UTCEPSS rescore
Frequently asked(5)
What is CVE-2022-2625?
When was CVE-2022-2625 disclosed?
Is CVE-2022-2625 actively exploited?
What is the CVSS score of CVE-2022-2625?
How do I remediate CVE-2022-2625?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2022-2625
Is Your Infrastructure Affected by CVE-2022-2625?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.