CVE-2020-25696Permissive List of Allowed Inputs in Postgresql

Severity
7.5HIGHNVD
OSV8.1
EPSS
0.5%
top 35.27%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedNov 23
Latest updateFeb 15

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.

CVSS vector

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:HExploitability: 1.6 | Impact: 5.9

Affected Packages4 packages

debiandebian/postgresql-13< postgresql-13 13.1-1 (bullseye)
NVDpostgresql/postgresql9.5.09.5.24+5
CVEListV5postgresql/postgresqlAll PostgreSQL versions before 13.1, before 12.5, before 11.10, before 10.15, before 9.6.20 and before 9.5.24

Also affects: Debian Linux 9.0

Patches

🔴Vulnerability Details

3
GHSA
Incorrect Comparison, Permissive List of Allowed Inputs, and Privilege Context Switching Error in PostgreSQL2022-02-15
OSV
CVE-2020-25696: A flaw was found in the psql interactive terminal of PostgreSQL in versions before 132020-11-23
OSV
postgresql-10, postgresql-12, postgresql-9.5 vulnerabilities2020-11-17

📋Vendor Advisories

4
Ubuntu
PostgreSQL vulnerabilities2020-11-17
Red Hat
postgresql: psql's \gset allows overwriting specially treated variables2020-11-12
Microsoft
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 \gset2020-11-10
Debian
CVE-2020-25696: postgresql-13 - A flaw was found in the psql interactive terminal of PostgreSQL in versions befo...2020

💬Community

1
Bugzilla
CVE-2020-25696 postgresql: psql's \gset allows overwriting specially treated variables2020-11-04