CVE-2020-25696
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| postgresql | Alpine | 12.5-r0, 11.10-r0 |
| postgresql15 | Alpine | 12.5-r0 |
| postgresql-10 | Ubuntu:18.04:LTS | 10.15-0ubuntu0.18.04.1 |
| postgresql | postgresql | 13.1, 12.5, 11.10, 10.15, 9.6.20, 9.5.24 |
| postgresql-12 | Ubuntu:20.04:LTS | 12.5-0ubuntu0.20.04.1 |
| postgresql | Bitnami | 13.1.0, 12.5.0, 11.10.0, 10.15.0, 9.6.20, 9.5.24 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | PostgreSQL | All PostgreSQL versions before 13.1, before 12.5, before 11.10, before 10.15, before 9.6.20 and before 9.5.24 |
| alpine | postgresql | 0, 0 |
| alpine | postgresql15 | 0 |
| n/a | PostgreSQL | All PostgreSQL versions before 13.1, before 12.5, before 11.10, before 10.15, before 9.6.20 and before 9.5.24 |
| arch | postgresql | 0 |
| alpine | postgresql12 | 0 |
| alpine | postgresql14 | 0 |
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
- x_refsource_MISC
- x_refsource_MISC
- [debian-lts-announce] 20201202 [SECURITY] [DLA 2478-1] postgresql-9.6 security update mailing-listx_refsource_MLIST
- GLSA-202012-07 vendor-advisoryx_refsource_GENTOO