CVE-2020-25696

postgresql: psql's \gset allows overwriting specially treated variables

Published Nov 23, 2020 CVSS 3.1 · 7.5 High EPSS 2.7% KEV · Not listed
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.

Analysis

No analysis available yet

Remediation

No remediation available yet

Tracking

Sign in to view the affected projects.

Exploits

Explore public exploit intelligence with OpenCVE Pro.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-2478-1 postgresql-9.6 security update
EUVD EUVD EUVD-2020-18357 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.
Ubuntu USN Ubuntu USN USN-4633-1 PostgreSQL vulnerabilities
History

No history.

Weaknesses
  • CWE-183

    Permissive List of Allowed Inputs

  • CWE-270

    Privilege Context Switching Error

  • CWE-697

    Incorrect Comparison

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Aug 4, 2024, 3:40 PM
Reserved
Sep 16, 2020, 12:00 AM
Status
Modified
Published
Nov 23, 2020, 10:15 PM
Modified
Jun 17, 2026, 3:07 AM
Severity
Moderate
Public date
Nov 12, 2020, 12:00 AM