# CVE-2020-25696: 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.…

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.70%, higher than 86% of CVEs (2026-12-01)
- Published: 2020-11-23T21:15:47.000Z
- Modified: 2026-09-08T08:47:41.583Z
- Also known as: BIT-POSTGRESQL-2020-25696
- Weaknesses: CWE-183, CWE-697
- Assigned by: redhat

## Description

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.

(As written by CVE List.)

## Affected

- 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
- postgresql postgresql: from 9.5.0 before 9.5.24; from 9.6.0 before 9.6.20; from 10.0 before 10.15; from 11.0 before 11.10; from 12.0 before 12.5; from 13.0 before 13.1
- debian debian_linux: 9.0
- postgresql (Bitnami): from 9.5.0 before 9.5.24; from 9.6.0 before 9.6.20; from 10.0.0 before 10.15.0; from 11.0.0 before 11.10.0; from 12.0.0 before 12.5.0; from 13.0.0 before 13.1.0

## Every score

- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.6 High `AV:N/AC:H/Au:N/C:C/I:C/A:C`
- Bitnami Vulnerability Database: rating High

## References

- <https://bugzilla.redhat.com/show_bug.cgi?id=1894430> (advisory, issue-tracking, patch, third-party-advisory)
- <https://www.postgresql.org/about/news/postgresql-131-125-1110-1015-9620-and-9524-released-2111/> (advisory, release-notes, vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2020/12/msg00005.html> (advisory, mailing-list, third-party-advisory)
- <https://security.gentoo.org/glsa/202012-07> (advisory, third-party-advisory, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-25696> (web)

## Sources

- CVE List: [CVE-2020-25696](https://www.cve.org/CVERecord?id=CVE-2020-25696), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2020-25696](https://nvd.nist.gov/vuln/detail/CVE-2020-25696), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-POSTGRESQL-2020-25696](https://osv.dev/vulnerability/BIT-POSTGRESQL-2020-25696), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2020-25696 · Whole record: https://cve.day/CVE-2020-25696.json · Rebuilt by cve.day 2026-11-25T22:57:55.919Z
