Live threats

All CVEs / Postgresql

CVE-2020-25696Postgresql

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
2.7%
probability of exploitation in 30 days · percentile 87
Auth required
No
Published
Nov 23, 2020
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-183, CWE-697
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Postgresql.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products (CPE)

VendorProductVersions
postgresqlpostgresql≥ 9.5.0 < 9.5.24
postgresqlpostgresql≥ 9.6.0 < 9.6.20
postgresqlpostgresql≥ 10.0 < 10.15
postgresqlpostgresql≥ 11.0 < 11.10
postgresqlpostgresql≥ 12.0 < 12.5
postgresqlpostgresql≥ 13.0 < 13.1
debiandebian_linux9.0

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.