CVE-2020-25696

Summary

CVECVE-2020-25696
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2020-11-23 22:15:00 UTC
Updated2023-11-07 03:20:00 UTC
DescriptionA 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.

Risk And Classification

Problem Types: CWE-183

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Debian Debian Linux 9.0 All All All
Operating System Debian Debian Linux 9.0 All All All
Application Postgresql Postgresql All All All All
Application Postgresql Postgresql All All All All

References

ReferenceSourceLinkTags
PostgreSQL: PostgreSQL 13.1, 12.5, 11.10, 10.15, 9.6.20, and 9.5.24 Released! MISC www.postgresql.org Release Notes, Vendor Advisory
1894430 – (CVE-2020-25696) CVE-2020-25696 postgresql: psql's \gset allows overwriting specially treated variables MISC bugzilla.redhat.com Issue Tracking, Patch, Third Party Advisory
PostgreSQL: Multiple vulnerabilities (GLSA 202012-07) — Gentoo security GENTOO security.gentoo.org Third Party Advisory
[SECURITY] [DLA 2478-1] postgresql-9.6 security update MLIST lists.debian.org Mailing List, Third Party Advisory
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Legacy QID Mappings

  • 159270 Oracle Enterprise Linux Security Update for rh-postgresql10-postgresql (ELSA-2021-9290)
  • 376872 Alibaba Cloud Linux Security Update for libpq (ALINUX3-SA-2021:0002)
  • 377113 Alibaba Cloud Linux Security Update for postgresql:12 (ALINUX3-SA-2021:0017)
  • 500540 Alpine Linux Security Update for postgresql
  • 502008 Alpine Linux Security Update for postgresql14
  • 502162 Alpine Linux Security Update for postgresql12
  • 502774 Alpine Linux Security Update for postgresql15
  • 504307 Alpine Linux Security Update for postgresql14
  • 505666 Alpine Linux Security Update for postgresql15
  • 750347 OpenSUSE Security Update for postgresql, postgresql13 (openSUSE-SU-2021:0337-1)
  • 750566 OpenSUSE Security Update for postgresql10 (openSUSE-SU-2020:2028-1)
  • 750567 OpenSUSE Security Update for postgresql12 (openSUSE-SU-2020:2029-1)
  • 750573 OpenSUSE Security Update for postgresql12 (openSUSE-SU-2020:2018-1)
  • 750575 OpenSUSE Security Update for postgresql10 (openSUSE-SU-2020:2019-1)
  • 900020 CBL-Mariner Linux Security Update for postgresql 12.5
  • 903127 Common Base Linux Mariner (CBL-Mariner) Security Update for postgresql (3644)
  • 940127 AlmaLinux Security Update for postgresql:10 (ALSA-2020:5567)
  • 940130 AlmaLinux Security Update for postgresql:12 (ALSA-2020:5620)
  • 940246 AlmaLinux Security Update for libpq (ALSA-2020:5401)
  • 940299 AlmaLinux Security Update for postgresql:9.6 (ALSA-2020:5619)
  • 960242 Rocky Linux Security Update for postgresql:12 (RLSA-2020:5620)
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

CVE.report and Source URL Uptime Status status.cve.report