Vulnerability · Published Nov 23, 2020 · Assigned by redhat
CVE-2020-25696
High 7.5
In plain English
A high-severity security flaw in PostgreSQL. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.7% (higher than 86% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | postgres-decoderbufs | 0.10.0-2.module_el8.6.0+2760+1746ec94 | ALSA-2020:5620 |
| AlmaLinux:8 | postgres-decoderbufs | 0.10.0-2.module_el8.6.0+2758+4f4474df | ALSA-2020:5620 |
| Alpine:v3.20 | postgresql14 | 12.5-r0 | ALPINE-CVE-2020-25696 |
| Alpine:v3.20 | postgresql15 | 12.5-r0 | ALPINE-CVE-2020-25696 |
| Rocky Linux:8 | pgaudit | 0:1.4.0-4.module+el8.4.0+545+ca56da2e | RLSA-2020:5620 |
| Rocky Linux:8 | postgres-decoderbufs | 0:0.10.0-2.module+el8.5.0+684+c3892ef9 | RLSA-2020:5620 |
| Rocky Linux:8 | postgres-decoderbufs | 0:0.10.0-2.module+el8.4.0+424+71d47d9a | RLSA-2020:5620 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 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 |
Weakness: CWE-183
References
- https://bugzilla.redhat.com/show_bug.cgi?id=1894430 x_refsource_MISC
- https://www.postgresql.org/about/news/postgresql-131-125-1110-1015-9620-and-9524-released-2111/ x_refsource_MISC
- [debian-lts-announce] 20201202 [SECURITY] [DLA 2478-1] postgresql-9.6 security update mailing-list, x_refsource_MLIST
- GLSA-202012-07 vendor-advisory, x_refsource_GENTOO