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?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « 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- 2022-08-1819:15CVE publishedNVD
Observed activity
isMalicious corpus · updated 2026-10-23 21:37 UTCBlock 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| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 14.x | ≥ 14.0, < 14.5 | 14.5 | NVD |
| 13.x | ≥ 13.0, < 13.8 | 13.8 | NVD |
| 12.x | ≥ 12.0, < 12.12 | 12.12 | NVD |
| 11.x | ≥ 11.0, < 11.17 | 11.17 | NVD |
| 10.x | ≥ 10.0, < 10.22 | 10.22 | NVD |
| 15.x | = 15 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 14.x | ≥ 14.0.0, < 14.5.0 | 14.5.0 | OSV |
| 13.x | ≥ 13.0.0, < 13.8.0 | 13.8.0 | OSV |
| 12.x | ≥ 12.0.0, < 12.12.0 | 12.12.0 | OSV |
| 11.x | ≥ 11.0.0, < 11.17.0 | 11.17.0 | OSV |
| 10.x | ≥ 10.0.0, < 10.22.0 | 10.22.0 | OSV |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 6.0 | = 6.0 | no fix published | NVD |
| 7.0 | = 7.0 | no fix published | NVD |
| 8.0 | = 8.0 | no fix published | NVD |
| 9.0 | = 9.0 | no fix published | NVD |
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
Red Hat Security Advisory: postgresql:13 security update
Red Hat Security Advisory: postgresql:12 security update
Red Hat Security Advisory: postgresql:12 security update
Red Hat Security Advisory: postgresql:13 security update
Red Hat Security Advisory: postgresql security update
Fix
- Update PostgreSQL to 14.5 · 13.8 · 12.12 · 11.17 · 10.22
- 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
- www.postgresql.orgRelease Notes · Vendor Advisory
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?
Is CVE-2022-2625 actively exploited?
What is the CVSS score for CVE-2022-2625?
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
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.