vulnerability
Arch Linux: Arbitrary code execution (CVE-2020-25696)
| Severity | CVSS | Published | Added | Modified |
|---|---|---|---|---|
| 8 | (AV:N/AC:H/Au:N/C:C/I:C/A:C) | Nov 23, 2020 | Jul 11, 2025 | Nov 27, 2025 |
Severity
8
CVSS
(AV:N/AC:H/Au:N/C:C/I:C/A:C)
Published
Nov 23, 2020
Added
Jul 11, 2025
Modified
Nov 27, 2025
Description
A security issue has been found in PostgreSQL before 12.5, where psql's \gset allows overwriting specially treated variables. The \gset meta-command, which sets psql variables based on query results, does not distinguish variables that control psql behavior. 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. Using \gset with a prefix not found among specially treated variables, e.g. any lowercase string, precludes the attack in an unpatched psql.
Solution
arch-linux-upgrade-latest
References
- CVE-2020-25696
- https://attackerkb.com/topics/CVE-2020-25696
- URL-https://bugzilla.redhat.com/show_bug.cgi?id=1894430
- URL-https://lists.debian.org/debian-lts-announce/2020/12/msg00005.html
- URL-https://security.archlinux.org/ASA-202011-14
- URL-https://security.gentoo.org/glsa/202012-07
- URL-https://www.postgresql.org/about/news/postgresql-131-125-1110-1015-9620-and-9524-released-2111/
- CWE-183
- CWE-697
NEW
Explore Exposure Command
Confidently identify and prioritize exposures from endpoint to cloud with full attack surface visibility and threat-aware risk context.