CVE-2020-25695
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.
What to do
Likely to be exploited: EPSS gives a 46% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.
Fixed builds are available from AlmaLinux, Alpine, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 20.04 | postgresql-12 | Fixed | 12.5-0ubuntu0.20.04.1 | UBUNTU-CVE-2020-25695 |
| Ubuntu 18.04 | postgresql-10 | Fixed | 10.15-0ubuntu0.18.04.1 | UBUNTU-CVE-2020-25695 |
| Ubuntu 16.04 | postgresql-9.5 | Fixed | 9.5.24-0ubuntu0.16.04.1 | UBUNTU-CVE-2020-25695 |
| Ubuntu 14.04 | postgresql-9.1 | Fix pending | ||
| Ubuntu 14.04 | postgresql-9.3 | Fix pending | UBUNTU-CVE-2020-25695 | |
| Red Hat Enterprise Linux 9 | postgresql | Not affected | ||
| Red Hat Enterprise Linux 9 | postgresql-contrib | Not affected | ||
| Red Hat Enterprise Linux 9 | postgresql-docs | Not affected | ||
| Red Hat Enterprise Linux 9 | postgresql-plperl | Not affected | ||
| Red Hat Enterprise Linux 9 | postgresql-plpython3 | Not affected | ||
| Red Hat Enterprise Linux 9 | postgresql-pltcl | Not affected | ||
| Red Hat Enterprise Linux 9 | postgresql-private-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | postgresql-private-libs | Not affected | ||
| Red Hat Enterprise Linux 9 | postgresql-server | Not affected | ||
| Red Hat Enterprise Linux 9 | postgresql-server-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | postgresql-static | Not affected | ||
| Red Hat Enterprise Linux 9 | postgresql-test | Not affected | ||
| Red Hat Enterprise Linux 9 | postgresql-test-rpm-macros | Not affected | ||
| Red Hat Enterprise Linux 9 | postgresql-upgrade | Not affected | ||
| Red Hat Enterprise Linux 9 | postgresql-upgrade-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | libpq | Not affected | ||
| Red Hat Enterprise Linux 8 | libpq-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | pgaudit | Fixed | 0:1.4.0-4.module+el8.3.0+9042+664538f4 | RHSA-2020:5620 |
| Red Hat Enterprise Linux 8 | postgres-decoderbufs | Fixed | 0:0.10.0-2.module+el8.3.0+9042+664538f4 | RHSA-2020:5620 |
| Red Hat Enterprise Linux 8 | postgresql | Fixed | 0:12.5-1.module+el8.3.0+9042+664538f4 | RHSA-2020:5567 |
| Red Hat Enterprise Linux 8 | postgresql-contrib | Fixed | 0:9.6.20-1.module+el8.3.0+8938+7f0e88b6 | RHSA-2020:5567 |
| Red Hat Enterprise Linux 8 | postgresql-docs | Fixed | 0:10.15-1.module+el8.3.0+8944+1ca16b1f | RHSA-2020:5619 |
| Red Hat Enterprise Linux 8 | postgresql-plperl | Fixed | 0:9.6.20-1.module+el8.3.0+8938+7f0e88b6 | RHSA-2020:5567 |
| Red Hat Enterprise Linux 8 | postgresql-plpython3 | Fixed | 0:10.15-1.module+el8.3.0+8944+1ca16b1f | RHSA-2020:5619 |
| Red Hat Enterprise Linux 8 | postgresql-pltcl | Fixed | 0:9.6.20-1.module+el8.3.0+8938+7f0e88b6 | RHSA-2020:5620 |
| Red Hat Enterprise Linux 8 | postgresql-server | Fixed | 0:9.6.20-1.module+el8.3.0+8938+7f0e88b6 | RHSA-2020:5620 |
| Red Hat Enterprise Linux 8 | postgresql-server-devel | Fixed | 0:10.15-1.module+el8.3.0+8944+1ca16b1f | RHSA-2020:5620 |
| Red Hat Enterprise Linux 8 | postgresql-static | Fixed | 0:10.15-1.module+el8.3.0+8944+1ca16b1f | RHSA-2020:5620 |
| Red Hat Enterprise Linux 8 | postgresql-test | Fixed | 0:12.5-1.module+el8.3.0+9042+664538f4 | RHSA-2020:5619 |
| Red Hat Enterprise Linux 8 | postgresql-test-rpm-macros | Fixed | 0:9.6.20-1.module+el8.3.0+8938+7f0e88b6 | RHSA-2020:5620 |
| Red Hat Enterprise Linux 8 | postgresql-upgrade | Fixed | 0:12.5-1.module+el8.3.0+9042+664538f4 | RHSA-2020:5567 |
| Red Hat Enterprise Linux 8 | postgresql-upgrade-devel | Fixed | 0:10.15-1.module+el8.3.0+8944+1ca16b1f | RHSA-2020:5620 |
| Red Hat Enterprise Linux 7 | postgresql | Fixed | 0:9.2.24-6.el7_9 | RHSA-2021:1512 |
| Red Hat Enterprise Linux 7 | postgresql-contrib | Fixed | 0:9.2.24-6.el7_9 | RHSA-2021:1512 |
| Red Hat Enterprise Linux 7 | postgresql-devel | Fixed | 0:9.2.24-6.el7_9 | RHSA-2021:1512 |
| Red Hat Enterprise Linux 7 | postgresql-docs | Fixed | 0:9.2.24-6.el7_9 | RHSA-2021:1512 |
| Red Hat Enterprise Linux 7 | postgresql-libs | Fixed | 0:9.2.24-6.el7_9 | RHSA-2021:1512 |
| Red Hat Enterprise Linux 7 | postgresql-plperl | Fixed | 0:9.2.24-6.el7_9 | RHSA-2021:1512 |
| Red Hat Enterprise Linux 7 | postgresql-plpython | Fixed | 0:9.2.24-6.el7_9 | RHSA-2021:1512 |
| Red Hat Enterprise Linux 7 | postgresql-pltcl | Fixed | 0:9.2.24-6.el7_9 | RHSA-2021:1512 |
| Red Hat Enterprise Linux 7 | postgresql-server | Fixed | 0:9.2.24-6.el7_9 | RHSA-2021:1512 |
| Red Hat Enterprise Linux 7 | postgresql-static | Fixed | 0:9.2.24-6.el7_9 | RHSA-2021:1512 |
| Red Hat Enterprise Linux 7 | postgresql-test | Fixed | 0:9.2.24-6.el7_9 | RHSA-2021:1512 |
| Red Hat Enterprise Linux 7 | postgresql-upgrade | Fixed | 0:9.2.24-6.el7_9 | RHSA-2021:1512 |
| Red Hat Enterprise Linux 6 | postgresql | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | postgresql-contrib | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | postgresql-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | postgresql-docs | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | postgresql-libs | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | postgresql-plperl | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | postgresql-plpython | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | postgresql-pltcl | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | postgresql-server | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | postgresql-test | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 5 | postgresql | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 5 | postgresql84 | Will not fix Out of support scope | ||
| AlmaLinux 8 | postgres-decoderbufs | Fixed | 0.10.0-2.module_el8.6.0+2758+4f4474df | ALSA-2020:5620 |
| Rocky Linux 8 | pgaudit | Fixed | 0:1.4.0-4.module+el8.4.0+545+ca56da2e | RLSA-2020:5620 |
| Rocky Linux 8 | postgres-decoderbufs | Fixed | 0:0.10.0-2.module+el8.4.0+424+71d47d9a | RLSA-2020:5620 |
| Alpine Linux 3.20 | postgresql14 | Fixed | 12.5-r0 | ALPINE-CVE-2020-25695 |
| Alpine Linux 3.20 | postgresql15 | Fixed | 12.5-r0 | ALPINE-CVE-2020-25695 |
| Alpine Linux 3.19 | postgresql14 | Fixed | 12.5-r0 | ALPINE-CVE-2020-25695 |
| Alpine Linux 3.19 | postgresql15 | Fixed | 12.5-r0 | ALPINE-CVE-2020-25695 |
| Alpine Linux 3.18 | postgresql12 | Fixed | 12.5-r0 | ALPINE-CVE-2020-25695 |
| Alpine Linux 3.18 | postgresql14 | Fixed | 12.5-r0 | ALPINE-CVE-2020-25695 |
| Alpine Linux 3.18 | postgresql15 | Fixed | 12.5-r0 | ALPINE-CVE-2020-25695 |
| Alpine Linux 3.17 | postgresql12 | Fixed | 12.5-r0 | ALPINE-CVE-2020-25695 |
| Alpine Linux 3.17 | postgresql14 | Fixed | 12.5-r0 | ALPINE-CVE-2020-25695 |
| Alpine Linux 3.17 | postgresql15 | Fixed | 12.5-r0 | ALPINE-CVE-2020-25695 |
| Alpine Linux 3.16 | postgresql12 | Fixed | 12.5-r0 | ALPINE-CVE-2020-25695 |
| Alpine Linux 3.16 | postgresql14 | Fixed | 12.5-r0 | ALPINE-CVE-2020-25695 |
| Alpine Linux 3.15 | postgresql12 | Fixed | 12.5-r0 | ALPINE-CVE-2020-25695 |
| Alpine Linux 3.15 | postgresql14 | Fixed | 12.5-r0 | ALPINE-CVE-2020-25695 |
| Alpine Linux 3.14 | postgresql | Fixed | 12.5-r0 | ALPINE-CVE-2020-25695 |
| Alpine Linux 3.13 | postgresql | Fixed | 12.5-r0 | ALPINE-CVE-2020-25695 |
| Alpine Linux 3.12 | postgresql | Fixed | 12.5-r0 | ALPINE-CVE-2020-25695 |
| Alpine Linux 3.11 | postgresql | Fixed | 12.5-r0 | ALPINE-CVE-2020-25695 |
| Alpine Linux 3.10 | postgresql | Fixed | 11.10-r0 | ALPINE-CVE-2020-25695 |
| Alpine Linux 3.9 | postgresql | Fixed | 11.10-r0 | ALPINE-CVE-2020-25695 |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- postgresql: affected: All PostgreSQL versions before 13.1, before 12.5, before 11.10, before 10.15, before 9.6.20 and before 9.5.24
Vendor advisories:
- https://security.gentoo.org/glsa/202012-07 (vendor-advisory)
References
- https://www.postgresql.org/support/security/
- https://bugzilla.redhat.com/show_bug.cgi?id=1894425
- https://security.netapp.com/advisory/ntap-20201202-0003/
- https://lists.debian.org/debian-lts-announce/2020/12/msg00005.html
- https://security.gentoo.org/glsa/202012-07
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.