CVE-2020-25696
publishedpostgresql: psql's \gset allows overwriting specially treated variables
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| 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 / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
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.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| 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
References
4- https://bugzilla.redhat.com/show_bug.cgi?id=1894430
- [debian-lts-announce] 20201202 [SECURITY] [DLA 2478-1] postgresql-9.6 security update https://lists.debian.org/debian-lts-announce/2020/12/msg00005.html
- GLSA-202012-07 https://security.gentoo.org/glsa/202012-07
- https://www.postgresql.org/about/news/postgresql-131-125-1110-1015-9620-and-9524-released-2111/
Provider assertions
2redhat · 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