Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2020-25696

published

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

Title from Red Hat VEX

Published
23 Nov 2020, 21:15:47 UTC
Updated
04 Aug 2024, 15:40:36 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
n/a — PostgreSQLAll PostgreSQL versions before 13.1, before 12.5, before 11.10, before 10.15, before 9.6.20 and before 9.5.24 Affected Not stated redhat
AlmaLinux 8 postgres-decoderbufs Advisory build 0.10.0-2.module_el8.6.0+2758+4f4474df ALSA-2020:5620
Alpine Linux v3.10 postgresql Fixed 11.10-r0 Package fix record
Debian stretch postgresql-9.6 Advisory build 9.6.20-0+deb9u1 DLA-2478-1
Oracle Linux 7 rh-postgresql10-postgresqlx86_64 Advisory build 0:10.15-1.el7 ELSA-2021-9290
AlmaLinux 8 postgres-decoderbufs Advisory build 0.10.0-2.module_el8.6.0+2760+1746ec94 ALSA-2020:5620
Alpine Linux v3.11 postgresql Fixed 12.5-r0 Package fix record
Alpine Linux v3.12 postgresql Fixed 12.5-r0 Package fix record
Show 93 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Alpine Linux v3.13 postgresql Fixed 12.5-r0 Package fix record
Alpine Linux v3.14 postgresql Fixed 12.5-r0 Package fix record
Alpine Linux v3.15 postgresql12 Fixed 12.5-r0 Package fix record
Alpine Linux v3.15 postgresql14 Fixed 12.5-r0 Package fix record
Alpine Linux v3.16 postgresql12 Fixed 12.5-r0 Package fix record
Alpine Linux v3.16 postgresql14 Fixed 12.5-r0 Package fix record
Alpine Linux v3.17 postgresql12 Fixed 12.5-r0 Package fix record
Alpine Linux v3.17 postgresql14 Fixed 12.5-r0 Package fix record
Alpine Linux v3.17 postgresql15 Fixed 12.5-r0 Package fix record
Alpine Linux v3.18 postgresql12 Fixed 12.5-r0 Package fix record
Alpine Linux v3.18 postgresql14 Fixed 12.5-r0 Package fix record
Alpine Linux v3.18 postgresql15 Fixed 12.5-r0 Package fix record
Alpine Linux v3.19 postgresql14 Fixed 12.5-r0 Package fix record
Alpine Linux v3.19 postgresql15 Fixed 12.5-r0 Package fix record
Alpine Linux v3.20 postgresql14 Fixed 12.5-r0 Package fix record
Alpine Linux v3.20 postgresql15 Fixed 12.5-r0 Package fix record
Alpine Linux v3.9 postgresql Fixed 11.10-r0 Package fix record
Oracle Linux 7 rh-postgresql10-postgresql-contribx86_64 Advisory build 0:10.15-1.el7 ELSA-2021-9290
Oracle Linux 7 rh-postgresql10-postgresql-contrib-syspathsx86_64 Advisory build 0:10.15-1.el7 ELSA-2021-9290
Oracle Linux 7 rh-postgresql10-postgresql-develx86_64 Advisory build 0:10.15-1.el7 ELSA-2021-9290
Oracle Linux 7 rh-postgresql10-postgresql-docsx86_64 Advisory build 0:10.15-1.el7 ELSA-2021-9290
Oracle Linux 7 rh-postgresql10-postgresql-libsx86_64 Advisory build 0:10.15-1.el7 ELSA-2021-9290
Oracle Linux 7 rh-postgresql10-postgresql-plperlx86_64 Advisory build 0:10.15-1.el7 ELSA-2021-9290
Oracle Linux 7 rh-postgresql10-postgresql-plpythonx86_64 Advisory build 0:10.15-1.el7 ELSA-2021-9290
Oracle Linux 7 rh-postgresql10-postgresql-pltclx86_64 Advisory build 0:10.15-1.el7 ELSA-2021-9290
Oracle Linux 7 rh-postgresql10-postgresql-serverx86_64 Advisory build 0:10.15-1.el7 ELSA-2021-9290
Oracle Linux 7 rh-postgresql10-postgresql-server-syspathsx86_64 Advisory build 0:10.15-1.el7 ELSA-2021-9290
Oracle Linux 7 rh-postgresql10-postgresql-staticx86_64 Advisory build 0:10.15-1.el7 ELSA-2021-9290
Oracle Linux 7 rh-postgresql10-postgresql-syspathsx86_64 Advisory build 0:10.15-1.el7 ELSA-2021-9290
Oracle Linux 7 rh-postgresql10-postgresql-testx86_64 Advisory build 0:10.15-1.el7 ELSA-2021-9290
Oracle Linux 8 libpqaarch64 Advisory build 0:12.5-1.el8_3 ELSA-2020-5401
Oracle Linux 8 libpqx86_64 Advisory build 0:12.5-1.el8_3 ELSA-2020-5401
Oracle Linux 8 libpq-develaarch64 Advisory build 0:12.5-1.el8_3 ELSA-2020-5401
Oracle Linux 8 libpq-develx86_64 Advisory build 0:12.5-1.el8_3 ELSA-2020-5401
Oracle Linux 8 pgauditaarch64 · postgresql · 12b Advisory build 0:1.4.0-4.module+el8.3.0+9608+b210d254 ELSA-2020-5620-1
Oracle Linux 8 pgauditx86_64 · postgresql · 12b Advisory build 0:1.4.0-4.module+el8.3.0+9608+b210d254 ELSA-2020-5620-1
Oracle Linux 8 postgres-decoderbufsaarch64 · postgresql · 12b Advisory build 0:0.10.0-2.module+el8.3.0+9608+b210d254 ELSA-2020-5620-1
Oracle Linux 8 postgres-decoderbufsx86_64 · postgresql · 12b Advisory build 0:0.10.0-2.module+el8.3.0+9608+b210d254 ELSA-2020-5620-1
Oracle Linux 8 postgresqlaarch64 · postgresql · 10b Advisory build 0:10.15-1.module+el8.3.0+7894+eae4ce42 ELSA-2020-5567-1
Oracle Linux 8 postgresqlaarch64 · postgresql · 12b Advisory build 0:12.5-1.module+el8.3.0+9608+b210d254 ELSA-2020-5620-1
Oracle Linux 8 postgresqlaarch64 · postgresql · 9.6b Advisory build 0:9.6.20-1.module+el8.3.0+9604+f0f52296 ELSA-2020-5619-1
Oracle Linux 8 postgresqlx86_64 · postgresql · 10b Advisory build 0:10.15-1.module+el8.3.0+7894+eae4ce42 ELSA-2020-5567-1
Oracle Linux 8 postgresqlx86_64 · postgresql · 12b Advisory build 0:12.5-1.module+el8.3.0+9608+b210d254 ELSA-2020-5620-1
Oracle Linux 8 postgresqlx86_64 · postgresql · 9.6b Advisory build 0:9.6.20-1.module+el8.3.0+9604+f0f52296 ELSA-2020-5619-1
Oracle Linux 8 postgresql-contribaarch64 · postgresql · 10b Advisory build 0:10.15-1.module+el8.3.0+7894+eae4ce42 ELSA-2020-5567-1
Oracle Linux 8 postgresql-contribaarch64 · postgresql · 12b Advisory build 0:12.5-1.module+el8.3.0+9608+b210d254 ELSA-2020-5620-1
Oracle Linux 8 postgresql-contribaarch64 · postgresql · 9.6b Advisory build 0:9.6.20-1.module+el8.3.0+9604+f0f52296 ELSA-2020-5619-1
Oracle Linux 8 postgresql-contribx86_64 · postgresql · 10b Advisory build 0:10.15-1.module+el8.3.0+7894+eae4ce42 ELSA-2020-5567-1
Oracle Linux 8 postgresql-contribx86_64 · postgresql · 12b Advisory build 0:12.5-1.module+el8.3.0+9608+b210d254 ELSA-2020-5620-1
Oracle Linux 8 postgresql-contribx86_64 · postgresql · 9.6b Advisory build 0:9.6.20-1.module+el8.3.0+9604+f0f52296 ELSA-2020-5619-1
Oracle Linux 8 postgresql-docsaarch64 · postgresql · 10b Advisory build 0:10.15-1.module+el8.3.0+7894+eae4ce42 ELSA-2020-5567-1
Oracle Linux 8 postgresql-docsaarch64 · postgresql · 12b Advisory build 0:12.5-1.module+el8.3.0+9608+b210d254 ELSA-2020-5620-1
Oracle Linux 8 postgresql-docsaarch64 · postgresql · 9.6b Advisory build 0:9.6.20-1.module+el8.3.0+9604+f0f52296 ELSA-2020-5619-1
Oracle Linux 8 postgresql-docsx86_64 · postgresql · 10b Advisory build 0:10.15-1.module+el8.3.0+7894+eae4ce42 ELSA-2020-5567-1
Oracle Linux 8 postgresql-docsx86_64 · postgresql · 12b Advisory build 0:12.5-1.module+el8.3.0+9608+b210d254 ELSA-2020-5620-1
Oracle Linux 8 postgresql-docsx86_64 · postgresql · 9.6b Advisory build 0:9.6.20-1.module+el8.3.0+9604+f0f52296 ELSA-2020-5619-1
Oracle Linux 8 postgresql-plperlaarch64 · postgresql · 10b Advisory build 0:10.15-1.module+el8.3.0+7894+eae4ce42 ELSA-2020-5567-1
Oracle Linux 8 postgresql-plperlaarch64 · postgresql · 12b Advisory build 0:12.5-1.module+el8.3.0+9608+b210d254 ELSA-2020-5620-1
Oracle Linux 8 postgresql-plperlaarch64 · postgresql · 9.6b Advisory build 0:9.6.20-1.module+el8.3.0+9604+f0f52296 ELSA-2020-5619-1
Oracle Linux 8 postgresql-plperlx86_64 · postgresql · 10b Advisory build 0:10.15-1.module+el8.3.0+7894+eae4ce42 ELSA-2020-5567-1
Oracle Linux 8 postgresql-plperlx86_64 · postgresql · 12b Advisory build 0:12.5-1.module+el8.3.0+9608+b210d254 ELSA-2020-5620-1
Oracle Linux 8 postgresql-plperlx86_64 · postgresql · 9.6b Advisory build 0:9.6.20-1.module+el8.3.0+9604+f0f52296 ELSA-2020-5619-1
Oracle Linux 8 postgresql-plpython3aarch64 · postgresql · 10b Advisory build 0:10.15-1.module+el8.3.0+7894+eae4ce42 ELSA-2020-5567-1
Oracle Linux 8 postgresql-plpython3aarch64 · postgresql · 12b Advisory build 0:12.5-1.module+el8.3.0+9608+b210d254 ELSA-2020-5620-1
Oracle Linux 8 postgresql-plpython3aarch64 · postgresql · 9.6b Advisory build 0:9.6.20-1.module+el8.3.0+9604+f0f52296 ELSA-2020-5619-1
Oracle Linux 8 postgresql-plpython3x86_64 · postgresql · 10b Advisory build 0:10.15-1.module+el8.3.0+7894+eae4ce42 ELSA-2020-5567-1
Oracle Linux 8 postgresql-plpython3x86_64 · postgresql · 12b Advisory build 0:12.5-1.module+el8.3.0+9608+b210d254 ELSA-2020-5620-1
Oracle Linux 8 postgresql-plpython3x86_64 · postgresql · 9.6b Advisory build 0:9.6.20-1.module+el8.3.0+9604+f0f52296 ELSA-2020-5619-1
Oracle Linux 8 postgresql-pltclaarch64 · postgresql · 10b Advisory build 0:10.15-1.module+el8.3.0+7894+eae4ce42 ELSA-2020-5567-1
Oracle Linux 8 postgresql-pltclaarch64 · postgresql · 12b Advisory build 0:12.5-1.module+el8.3.0+9608+b210d254 ELSA-2020-5620-1
Oracle Linux 8 postgresql-pltclaarch64 · postgresql · 9.6b Advisory build 0:9.6.20-1.module+el8.3.0+9604+f0f52296 ELSA-2020-5619-1
Oracle Linux 8 postgresql-pltclx86_64 · postgresql · 10b Advisory build 0:10.15-1.module+el8.3.0+7894+eae4ce42 ELSA-2020-5567-1
Oracle Linux 8 postgresql-pltclx86_64 · postgresql · 12b Advisory build 0:12.5-1.module+el8.3.0+9608+b210d254 ELSA-2020-5620-1
Oracle Linux 8 postgresql-pltclx86_64 · postgresql · 9.6b Advisory build 0:9.6.20-1.module+el8.3.0+9604+f0f52296 ELSA-2020-5619-1
Oracle Linux 8 postgresql-serveraarch64 · postgresql · 10b Advisory build 0:10.15-1.module+el8.3.0+7894+eae4ce42 ELSA-2020-5567-1
Oracle Linux 8 postgresql-serveraarch64 · postgresql · 12b Advisory build 0:12.5-1.module+el8.3.0+9608+b210d254 ELSA-2020-5620-1
Oracle Linux 8 postgresql-serveraarch64 · postgresql · 9.6b Advisory build 0:9.6.20-1.module+el8.3.0+9604+f0f52296 ELSA-2020-5619-1
Oracle Linux 8 postgresql-serverx86_64 · postgresql · 10b Advisory build 0:10.15-1.module+el8.3.0+7894+eae4ce42 ELSA-2020-5567-1
Oracle Linux 8 postgresql-serverx86_64 · postgresql · 12b Advisory build 0:12.5-1.module+el8.3.0+9608+b210d254 ELSA-2020-5620-1
Oracle Linux 8 postgresql-serverx86_64 · postgresql · 9.6b Advisory build 0:9.6.20-1.module+el8.3.0+9604+f0f52296 ELSA-2020-5619-1
Oracle Linux 8 postgresql-server-develaarch64 · postgresql · 10b Advisory build 0:10.15-1.module+el8.3.0+7894+eae4ce42 ELSA-2020-5567-1
Oracle Linux 8 postgresql-server-develaarch64 · postgresql · 12b Advisory build 0:12.5-1.module+el8.3.0+9608+b210d254 ELSA-2020-5620-1
Oracle Linux 8 postgresql-server-develaarch64 · postgresql · 9.6b Advisory build 0:9.6.20-1.module+el8.3.0+9604+f0f52296 ELSA-2020-5619-1
Oracle Linux 8 postgresql-server-develx86_64 · postgresql · 10b Advisory build 0:10.15-1.module+el8.3.0+7894+eae4ce42 ELSA-2020-5567-1
Oracle Linux 8 postgresql-server-develx86_64 · postgresql · 12b Advisory build 0:12.5-1.module+el8.3.0+9608+b210d254 ELSA-2020-5620-1
Oracle Linux 8 postgresql-server-develx86_64 · postgresql · 9.6b Advisory build 0:9.6.20-1.module+el8.3.0+9604+f0f52296 ELSA-2020-5619-1
Oracle Linux 8 postgresql-staticaarch64 · postgresql · 10b Advisory build 0:10.15-1.module+el8.3.0+7894+eae4ce42 ELSA-2020-5567-1
Oracle Linux 8 postgresql-staticaarch64 · postgresql · 12b Advisory build 0:12.5-1.module+el8.3.0+9608+b210d254 ELSA-2020-5620-1
Oracle Linux 8 postgresql-staticaarch64 · postgresql · 9.6b Advisory build 0:9.6.20-1.module+el8.3.0+9604+f0f52296 ELSA-2020-5619-1
Oracle Linux 8 postgresql-staticx86_64 · postgresql · 10b Advisory build 0:10.15-1.module+el8.3.0+7894+eae4ce42 ELSA-2020-5567-1
Oracle Linux 8 postgresql-staticx86_64 · postgresql · 12b Advisory build 0:12.5-1.module+el8.3.0+9608+b210d254 ELSA-2020-5620-1
Oracle Linux 8 postgresql-staticx86_64 · postgresql · 9.6b Advisory build 0:9.6.20-1.module+el8.3.0+9604+f0f52296 ELSA-2020-5619-1
Oracle Linux 8 postgresql-testaarch64 · postgresql · 10b Advisory build 0:10.15-1.module+el8.3.0+7894+eae4ce42 ELSA-2020-5567-1

Package entries are limited to the first 100 builds and 100 linked advisories.

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.

en · redhat · cna

Vendor advisories explicitly linked to this CVE.

81

Assessment

CVSS risk assessment and additional context for this vulnerability.

No normalized assessments.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
n/a PostgreSQL All PostgreSQL versions before 13.1, before 12.5, before 11.10, before 10.15, before 9.6.20 and before 9.5.24 (affected) redhat · cna

Weaknesses

1
  • CWE-183 CWE-183->CWE-270 (redhat · cna)

References

4

Provider assertions

2

redhat · cna

CVE · adp

CVE Program Container

Provenance

Schema
5.1
Searchable
yes
Content hash
2520781386ae219ddb1b898c46954523d897d720368d0b979817f52756b00756
Ingested
23 Sep 2026, 07:49:45 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected