# CVE-2020-25696

- Priority: **Routine**
- Reason: Not severe (CVSS 7.5, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2020-11-23 · Modified: 2024-08-04
- Aliases: ALPINE-CVE-2020-25696, UBUNTU-CVE-2020-25696, DEBIAN-CVE-2020-25696
- Record: https://cvemate.com/vulnerability/CVE-2020-25696 · JSON: https://cvemate.com/vulnerability/CVE-2020-25696/json

## Description

```text
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.
```

## Signals

- CVSS: 7.6 high (v2.0, NVD) AV:N/AC:H/Au:N/C:C/I:C/A:C
- EPSS: 2.698%, percentile 86.407%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine postgresql (Alpine Linux): ≥ 9.5.0, \< 11.10-r0 \| ≥ 9.5.0, \< 12.5-r0 \| ≥ 11.0, \< 11.10-r0 \| ≥ 12.0, \< 12.5-r0
- alpine postgresql12 (Alpine Linux): \< 12.5-r0
- alpine postgresql14 (Alpine Linux): \< 12.5-r0
- alpine postgresql15 (Alpine Linux): \< 12.5-r0
- debian postgresql-13 (Debian): \< 13.1-1
- ubuntu postgresql-10 (Ubuntu): \< 10.15-0ubuntu0.18.04.1
- ubuntu postgresql-12 (Ubuntu): \< 12.5-0ubuntu0.20.04.1
- ubuntu postgresql-9.3 (Ubuntu): All versions (No fix recorded)
- ubuntu postgresql-9.5 (Ubuntu): \< 9.5.24-0ubuntu0.16.04.1
- debian debian\_linux: 9.0
- postgresql postgresql: ≥ 9.5.0, \< 9.5.24 \| ≥ 9.6.0, \< 9.6.20 \| ≥ 10.0, \< 10.15 \| ≥ 11.0, \< 11.10 \| ≥ 12.0, \< 12.5 \| ≥ 13.0, \< 13.1

## References

- <https://bugzilla.redhat.com/show_bug.cgi?id=1894430>
- <https://www.postgresql.org/about/news/postgresql-131-125-1110-1015-9620-and-9524-released-2111/>
- <https://lists.debian.org/debian-lts-announce/2020/12/msg00005.html>
- <https://security.gentoo.org/glsa/202012-07>
- <https://security.alpinelinux.org/vuln/CVE-2020-25696>
- <https://ubuntu.com/security/CVE-2020-25696>
- <https://ubuntu.com/security/notices/USN-4633-1>
- <https://www.cve.org/CVERecord?id=CVE-2020-25696>
- <https://security-tracker.debian.org/tracker/CVE-2020-25696>
- <https://nvd.nist.gov/vuln/detail/CVE-2020-25696>

---

Data as of 2026-12-05T06:51:11.023Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
