VDB

CVE-2022-2625

CVE-2022-2625 PUBLISHED

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.

PackageEcosystemFixed in
postgresqlAlpine13.8-r0
postgresql14Alpine14.5-r0
postgresql13Alpine13.8-r0
postgresql15Alpine14.5-r0
postgresqlBitnami14.5.0, 13.8.0, 12.12.0, 11.17.0, 10.22.0

Affected products

VendorProductVersions
n/apostgresqlpostgresql 14.5, postgresql 13.8, postgresql 12.12, postgresql 11.17, postgresql 10.22
alpinepostgresql0
alpinepostgresql140
alpinepostgresql130
alpinepostgresql150
n/apostgresqlpostgresql 14.5, postgresql 13.8, postgresql 12.12, postgresql 11.17, postgresql 10.22
alpinepostgresql120

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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›