
CVE catalog
CVE-2020-25696
ALPINE-CVE-2020-25696
- Severity
- High · CVSS 8
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H - Published
- Updated
- Source
- [NVD] · [CVE record]
- EPSS
- 2.70% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Alpine | postgresql | 3.10 | 11.10-r0 | fixed |
| Alpine | postgresql | 3.11 | 12.5-r0 | fixed |
| Alpine | postgresql | 3.12 | 12.5-r0 | fixed |
| Alpine | postgresql | 3.13 | 12.5-r0 | fixed |
| Alpine | postgresql | 3.14 | 12.5-r0 | fixed |
| Alpine | postgresql | 3.9 | 11.10-r0 | fixed |
| Alpine | postgresql14 | 3.15 | 12.5-r0 | fixed |
| Alpine | postgresql14 | 3.16 | 12.5-r0 | fixed |
| Alpine | postgresql14 | 3.17 | 12.5-r0 | fixed |
| Alpine | postgresql14 | 3.18 | 12.5-r0 | fixed |
| Alpine | postgresql15 | 3.17 | 12.5-r0 | fixed |
| Alpine | postgresql15 | 3.18 | 12.5-r0 | fixed |
| Alpine | postgresql15 | 3.19 | 12.5-r0 | fixed |
| Alpine | postgresql15 | 3.20 | 12.5-r0 | fixed |
| Debian | postgresql-13 | 11 | 13.1-1 | fixed |
| Ubuntu | postgresql-9.3 | pro | 9.3.1-1 | vulnerable |
| Ubuntu | postgresql-9.3 | pro | 9.3.2-1 | vulnerable |
| Ubuntu | postgresql-9.3 | pro | 9.3.2-1ubuntu1 | vulnerable |
| Ubuntu | postgresql-9.3 | pro | 9.3.2-1ubuntu2 | vulnerable |
| Ubuntu | postgresql-9.3 | pro | 9.3.3-1 | vulnerable |
| Ubuntu | postgresql-9.3 | pro | 9.3.3-1bzr1 | vulnerable |
| Ubuntu | postgresql-9.3 | pro | 9.3.3-1bzr2 | vulnerable |
| Ubuntu | postgresql-9.3 | pro | 9.3.4-1 | vulnerable |
| Ubuntu | postgresql-9.3 | pro | 9.3.5-0ubuntu0.14.04.1 | vulnerable |
| Ubuntu | postgresql-9.3 | pro | 9.3.6-0ubuntu0.14.04 | vulnerable |
| Ubuntu | postgresql-9.3 | pro | 9.3.7-0ubuntu0.14.04 | vulnerable |
| Ubuntu | postgresql-9.3 | pro | 9.3.8-0ubuntu0.4.04 | vulnerable |
| Ubuntu | postgresql-9.3 | pro | 9.3.9-0ubuntu0.14.04 | vulnerable |
| Ubuntu | postgresql-9.3 | pro | 9.3.10-0ubuntu0.14.04 | vulnerable |
| Ubuntu | postgresql-9.3 | pro | 9.3.11-0ubuntu0.14.04 | vulnerable |
| Ubuntu | postgresql-9.3 | pro | 9.3.12-0ubuntu0.14.04 | vulnerable |
| Ubuntu | postgresql-9.3 | pro | 9.3.13-0ubuntu0.14.04 | vulnerable |
| Ubuntu | postgresql-9.3 | pro | 9.3.14-0ubuntu0.14.04 | vulnerable |
| Ubuntu | postgresql-9.3 | pro | 9.3.15-0ubuntu0.14.04 | vulnerable |
| Ubuntu | postgresql-9.3 | pro | 9.3.16-0ubuntu0.14.04 | vulnerable |
| Ubuntu | postgresql-9.3 | pro | 9.3.17-0ubuntu0.14.04 | vulnerable |
| Ubuntu | postgresql-9.3 | pro | 9.3.18-0ubuntu0.14.04.1 | vulnerable |
| Ubuntu | postgresql-9.3 | pro | 9.3.19-0ubuntu0.14.04 | vulnerable |
| Ubuntu | postgresql-9.3 | pro | 9.3.20-0ubuntu0.14.04 | vulnerable |
| Ubuntu | postgresql-9.3 | pro | 9.3.21-0ubuntu0.14.04 | vulnerable |
| Ubuntu | postgresql-9.3 | pro | 9.3.22-0ubuntu0.14.04 | vulnerable |
| Ubuntu | postgresql-9.3 | pro | 9.3.23-0ubuntu0.14.04 | vulnerable |
| Ubuntu | postgresql-9.3 | pro | 9.3.24-0ubuntu0.14.04 | vulnerable |
| Ubuntu | postgresql-9.3 | pro | 9.3.24-0ubuntu0.14.04+esm1 | vulnerable |
| Ubuntu | postgresql-9.5 | 16.04 | 9.5.0-1 | vulnerable |
| Ubuntu | postgresql-9.5 | 16.04 | 9.5.0-2 | vulnerable |
| Ubuntu | postgresql-9.5 | 16.04 | 9.5.0-3 | vulnerable |
| Ubuntu | postgresql-9.5 | 16.04 | 9.5.1-1 | vulnerable |
| Ubuntu | postgresql-9.5 | 16.04 | 9.5.2-1 | vulnerable |
| Ubuntu | postgresql-9.5 | 16.04 | 9.5.3-0ubuntu0.16.04 | vulnerable |
| Ubuntu | postgresql-9.5 | 16.04 | 9.5.4-0ubuntu0.16.04 | vulnerable |
| Ubuntu | postgresql-9.5 | 16.04 | 9.5.5-0ubuntu0.16.04 | vulnerable |
| Ubuntu | postgresql-9.5 | 16.04 | 9.5.6-0ubuntu0.16.04 | vulnerable |
| Ubuntu | postgresql-9.5 | 16.04 | 9.5.7-0ubuntu0.16.04 | vulnerable |
| Ubuntu | postgresql-9.5 | 16.04 | 9.5.8-0ubuntu0.16.04.1 | vulnerable |
| Ubuntu | postgresql-9.5 | 16.04 | 9.5.9-0ubuntu0.16.04 | vulnerable |
| Ubuntu | postgresql-9.5 | 16.04 | 9.5.10-0ubuntu0.16.04 | vulnerable |
| Ubuntu | postgresql-9.5 | 16.04 | 9.5.11-0ubuntu0.16.04 | vulnerable |
| Ubuntu | postgresql-9.5 | 16.04 | 9.5.12-0ubuntu0.16.04 | vulnerable |
| Ubuntu | postgresql-9.5 | 16.04 | 9.5.13-0ubuntu0.16.04 | vulnerable |
| Ubuntu | postgresql-9.5 | 16.04 | 9.5.14-0ubuntu0.16.04 | vulnerable |
| Ubuntu | postgresql-9.5 | 16.04 | 9.5.16-0ubuntu0.16.04.1 | vulnerable |
| Ubuntu | postgresql-9.5 | 16.04 | 9.5.17-0ubuntu0.16.04.1 | vulnerable |
| Ubuntu | postgresql-9.5 | 16.04 | 9.5.18-0ubuntu0.16.04.1 | vulnerable |
| Ubuntu | postgresql-9.5 | 16.04 | 9.5.19-0ubuntu0.16.04.1 | vulnerable |
| Ubuntu | postgresql-9.5 | 16.04 | 9.5.21-0ubuntu0.16.04.1 | vulnerable |
| Ubuntu | postgresql-9.5 | 16.04 | 9.5.23-0ubuntu0.16.04.1 | vulnerable |
| Ubuntu | postgresql-9.5 | 16.04 | 9.5.24-0ubuntu0.16.04.1 | fixed |
| Ubuntu | postgresql-10 | 18.04 | 10.1-1 | vulnerable |
| Ubuntu | postgresql-10 | 18.04 | 10.1-2 | vulnerable |
| Ubuntu | postgresql-10 | 18.04 | 10.2-1 | vulnerable |
| Ubuntu | postgresql-10 | 18.04 | 10.3-1 | vulnerable |
| Ubuntu | postgresql-10 | 18.04 | 10.4-0ubuntu0.18.04 | vulnerable |
| Ubuntu | postgresql-10 | 18.04 | 10.5-0ubuntu0.18.04 | vulnerable |
| Ubuntu | postgresql-10 | 18.04 | 10.6-0ubuntu0.18.04.1 | vulnerable |
| Ubuntu | postgresql-10 | 18.04 | 10.7-0ubuntu0.18.04.1 | vulnerable |
| Ubuntu | postgresql-10 | 18.04 | 10.8-0ubuntu0.18.04.1 | vulnerable |
| Ubuntu | postgresql-10 | 18.04 | 10.9-0ubuntu0.18.04.1 | vulnerable |
| Ubuntu | postgresql-10 | 18.04 | 10.10-0ubuntu0.18.04.1 | vulnerable |
| Ubuntu | postgresql-10 | 18.04 | 10.12-0ubuntu0.18.04.1 | vulnerable |
| Ubuntu | postgresql-10 | 18.04 | 10.14-0ubuntu0.18.04.1 | vulnerable |
| Ubuntu | postgresql-10 | 18.04 | 10.15-0ubuntu0.18.04.1 | fixed |
| Ubuntu | postgresql-12 | 20.04 | 12.0-1 | vulnerable |
| Ubuntu | postgresql-12 | 20.04 | 12.1-1 | vulnerable |
| Ubuntu | postgresql-12 | 20.04 | 12.1-2build1 | vulnerable |
| Ubuntu | postgresql-12 | 20.04 | 12.2-1 | vulnerable |
| Ubuntu | postgresql-12 | 20.04 | 12.2-1ubuntu2 | vulnerable |
| Ubuntu | postgresql-12 | 20.04 | 12.2-4 | vulnerable |
| Ubuntu | postgresql-12 | 20.04 | 12.4-0ubuntu0.20.04.1 | vulnerable |
| Ubuntu | postgresql-12 | 20.04 | 12.5-0ubuntu0.20.04.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Alpine | postgresql | apk | 3.10 | 11.10-r0 | Not reported | ALPINE-CVE-2020-25696 | Not reported |
| Alpine | postgresql | apk | 3.11 | 12.5-r0 | Not reported | ALPINE-CVE-2020-25696 | Not reported |
| Alpine | postgresql | apk | 3.12 | 12.5-r0 | Not reported | ALPINE-CVE-2020-25696 | Not reported |
| Alpine | postgresql | apk | 3.13 | 12.5-r0 | Not reported | ALPINE-CVE-2020-25696 | Not reported |
| Alpine | postgresql | apk | 3.14 | 12.5-r0 | Not reported | ALPINE-CVE-2020-25696 | Not reported |
| Alpine | postgresql | apk | 3.9 | 11.10-r0 | Not reported | ALPINE-CVE-2020-25696 | Not reported |
| Alpine | postgresql14 | apk | 3.15 | 12.5-r0 | Not reported | ALPINE-CVE-2020-25696 | Not reported |
| Alpine | postgresql14 | apk | 3.16 | 12.5-r0 | Not reported | ALPINE-CVE-2020-25696 | Not reported |
| Alpine | postgresql14 | apk | 3.17 | 12.5-r0 | Not reported | ALPINE-CVE-2020-25696 | Not reported |
| Alpine | postgresql14 | apk | 3.18 | 12.5-r0 | Not reported | ALPINE-CVE-2020-25696 | Not reported |
| Alpine | postgresql15 | apk | 3.17 | 12.5-r0 | Not reported | ALPINE-CVE-2020-25696 | Not reported |
| Alpine | postgresql15 | apk | 3.18 | 12.5-r0 | Not reported | ALPINE-CVE-2020-25696 | Not reported |
| Alpine | postgresql15 | apk | 3.19 | 12.5-r0 | Not reported | ALPINE-CVE-2020-25696 | Not reported |
| Alpine | postgresql15 | apk | 3.20 | 12.5-r0 | Not reported | ALPINE-CVE-2020-25696 | Not reported |
| Debian | postgresql-13 | deb | 11 | 13.1-1 | Not reported | DEBIAN-CVE-2020-25696 | Not reported |
| Ubuntu | postgresql-9.5 | deb | 16.04 | 9.5.24-0ubuntu0.16.04.1 | Not reported | UBUNTU-CVE-2020-25696 | Not reported |
| Ubuntu | postgresql-10 | deb | 18.04 | 10.15-0ubuntu0.18.04.1 | Not reported | UBUNTU-CVE-2020-25696 | Not reported |
| Ubuntu | postgresql-12 | deb | 20.04 | 12.5-0ubuntu0.20.04.1 | Not reported | UBUNTU-CVE-2020-25696 | Not reported |
OpenFactory catalog packages
No matching packages in this catalog.
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/rhsa-2020_5401.json]
- [https://osv.dev/vulnerability/ALPINE-CVE-2020-25696]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2020-25696]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2020-25696]
- [https://security.access.redhat.com/data/csaf/v2/vex/2020/cve-2020-25696.json]
[FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]