Vulnerability · Published Nov 16, 2020 · Assigned by redhat
CVE-2020-25695
High 8.8
In plain English
A high-severity SQL injection in postgresql. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 46.4% (higher than 99% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
A flaw was found in PostgreSQL versions before 13.1, before 12.5, before 11.10, before 10.15, before 9.6.20 and before 9.5.24. An attacker having permission to create non-temporary objects in at least one schema can execute arbitrary SQL functions under the identity of a superuser. 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-25695 |
| Alpine:v3.20 | postgresql15 | 12.5-r0 | ALPINE-CVE-2020-25695 |
| 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-89
References
- https://www.postgresql.org/support/security/ x_refsource_MISC
- https://bugzilla.redhat.com/show_bug.cgi?id=1894425 x_refsource_MISC
- https://security.netapp.com/advisory/ntap-20201202-0003/ x_refsource_CONFIRM
- [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