CVE-2020-25696
HIGHPostgreSQL < 9.5.24 - Remote Code Execution via \gset in psql Interactive Terminal
Title source: llmDescription
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.
References (4)
Core 4
Core References
Issue Tracking, Patch, Third Party Advisory x_refsource_misc
https://bugzilla.redhat.com/show_bug.cgi?id=1894430
Release Notes, Vendor Advisory x_refsource_misc
https://www.postgresql.org/about/news/postgresql-131-125-1110-1015-9620-and-9524-released-2111/
Mailing List, Third Party Advisory mailing-list
x_refsource_mlist
https://lists.debian.org/debian-lts-announce/2020/12/msg00005.html
Third Party Advisory vendor-advisory
x_refsource_gentoo
https://security.gentoo.org/glsa/202012-07
Scores
CVSS v3
7.5
EPSS
0.0266
EPSS Percentile
83.7%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Details
CWE
CWE-697
CWE-183
Status
published
Products (2)
debian/debian_linux
9.0
postgresql/postgresql
9.5.0 - 9.5.24
Published
Nov 23, 2020
Tracked Since
Feb 18, 2026