CVE-2022-2625
Reported by redhat · Published August 18, 2022
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| postgresql | Alpine | 13.8-r0 |
| postgresql14 | Alpine | 14.5-r0 |
| postgresql13 | Alpine | 13.8-r0 |
| postgresql15 | Alpine | 14.5-r0 |
| postgresql | Bitnami | 14.5.0, 13.8.0, 12.12.0, 11.17.0, 10.22.0 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | postgresql | postgresql 14.5, postgresql 13.8, postgresql 12.12, postgresql 11.17, postgresql 10.22 |
| alpine | postgresql | 0 |
| alpine | postgresql14 | 0 |
| alpine | postgresql13 | 0 |
| alpine | postgresql15 | 0 |
| n/a | postgresql | postgresql 14.5, postgresql 13.8, postgresql 12.12, postgresql 11.17, postgresql 10.22 |
| alpine | postgresql12 | 0 |
Timeline
- Aug 11, 2022 CVE Published
- Aug 19, 2022 EPSS Score (30 in total, the first dated here)
- Jun 9, 2023 PoC Published (83 in total, the first dated here)
- Mar 31, 2026 Distribution Patch (12 in total, the first dated here)
- Mar 31, 2026 Security Advisory (15 in total, the first dated here)
- Jun 29, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2022-2625
vulnetix vdb fixes CVE-2022-2625
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-2625/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- GLSA-202211-04 vendor-advisory