VDB

CVE-2020-25696

CVE-2020-25696 PUBLISHED

Reported by redhat · Published November 23, 2020

A flaw was found in the psql interactive terminal of PostgreSQL in versions before 13.1, before 12.5, before 11.10, before 10.15, before 9.6.20 and before 9.5.24. If an interactive psql session uses \gset when querying a compromised server, the attacker can execute arbitrary code as the operating system account running psql. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
postgresqlAlpine12.5-r0, 11.10-r0
postgresql15Alpine12.5-r0
postgresql-10Ubuntu:18.04:LTS10.15-0ubuntu0.18.04.1
postgresqlpostgresql13.1, 12.5, 11.10, 10.15, 9.6.20, 9.5.24
postgresql-12Ubuntu:20.04:LTS12.5-0ubuntu0.20.04.1
postgresqlBitnami13.1.0, 12.5.0, 11.10.0, 10.15.0, 9.6.20, 9.5.24

Affected products

VendorProductVersions
n/aPostgreSQLAll PostgreSQL versions before 13.1, before 12.5, before 11.10, before 10.15, before 9.6.20 and before 9.5.24
alpinepostgresql0, 0
alpinepostgresql150
n/aPostgreSQLAll PostgreSQL versions before 13.1, before 12.5, before 11.10, before 10.15, before 9.6.20 and before 9.5.24
archpostgresql0
alpinepostgresql120
alpinepostgresql140

Timeline

  • Nov 12, 2020 CVE Published
  • Apr 14, 2021 EPSS Score (30 in total, the first dated here)
  • Mar 6, 2026 Distribution Patch (19 in total, the first dated here)
  • Mar 6, 2026 Security Advisory (29 in total, the first dated here)
  • Sep 2, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2020-25696
vulnetix vdb fixes CVE-2020-25696

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-2020-25696/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 ›