CVE-2020-25696

High

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.

SeverityHigh
CVSS7.5
Exploit probability—
ProductPostgresql
PublishedNov 23, 2020
First seenNov 23, 2020
Weakness typeCWE-183CWE-183

How to fix

Update
  • postgresql postgresql9.5.24, 9.6.20, 10.15, 11.10, 12.5, 13.1 or later

Affected products

ProductAffected versionsFixed in
postgresql postgresql9.5.0 ≤ v < 9.5.24, 9.6.0 ≤ v < 9.6.20, 10.0 ≤ v < 10.15, 11.0 ≤ v < 11.10, 12.0 ≤ v < 12.5, 13.0 ≤ v < 13.19.5.24, 9.6.20, 10.15, 11.10, 12.5, 13.1
debian debian_linux9.0—

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2020-25696 · Postgresql · Dark Radar