Description
It was found that PostgreSQL versions before 12.4, before 11.9 and before 10.14 did not properly sanitize the search_path during logical replication. An authenticated attacker could use this flaw in an attack similar to CVE-2018-1058, in order to execute arbitrary SQL command in the context of the user used for replication.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | PostgreSQL | PostgreSQL versions before 12.4, before 11.9 and before 10.14 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | postgresql-12 | 12.4-0ubuntu0.20.04.1 | USN-4472-1 |
| Ubuntu 18.04 LTS | postgresql-10 | 10.14-0ubuntu0.18.04.1 | USN-4472-1 |
| Ubuntu 16.04 LTS | postgresql-9.5 | 9.5.23-0ubuntu0.16.04.1 | USN-4472-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 8 | pgaudit | 1.4.0-4.module+el8.3.0+9042+664538f4 | RHSA-2020:5620 |
| RHEL 8 | postgres-decoderbufs | 0.10.0-2.module+el8.3.0+9042+664538f4 | RHSA-2020:5620 |
| RHEL 8 | postgresql +12 | 10.14-1.module+el8.2.0+7801+be0fed80 | RHSA-2020:5620, RHSA-2020:3669 |
| RHEL 3 | rh-postgresql10-postgresql +13 | 10.14-1.el7 | RHSA-2020:5110 |
| RHEL 3 | rh-postgresql12-postgresql +13 | 12.4-1.el7 | RHSA-2020:5112 |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat Rhev Hypervisor 4 | rhvm-appliance | 2:4.4-20210310.0.el8ev | RHSA-2021:0988 |
| RHEL 8.2 EUS | pgaudit | 1.4.0-4.module+el8.2.0+9043+1dbb5661 | RHSA-2021:0163 |
| RHEL 8.2 EUS | postgres-decoderbufs | 0.10.0-2.module+el8.2.0+9043+1dbb5661 | RHSA-2021:0163 |
| RHEL 8.2 EUS | postgresql +12 | 12.5-1.module+el8.2.0+9043+1dbb5661 | RHSA-2021:0163 |
| RHEL 8.1 EUS | postgresql +12 | 10.15-1.module+el8.1.0+9154+cd474635 | RHSA-2021:0166 |
| RHEL 8.0 E4S | postgresql +12 | 10.15-1.module+el8.0.0+9155+4a85661a | RHSA-2020:5664 |
AlmaLinux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux 8 | postgres-decoderbufs | 0.10.0-2.module_el8.6.0+2758+4f4474df | ALSA-2020:5620 |
Rocky Linux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Rocky Linux 8 | pgaudit | 1.4.0-4.module+el8.4.0+545+ca56da2e | RLSA-2020:5620 |
| Rocky Linux 8 | postgres-decoderbufs | 0.10.0-2.module+el8.4.0+424+71d47d9a | RLSA-2020:5620 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP2 | postgresql10 | 10.14-8.19.1 | SUSE-SU-2020:2355-1 |
| SLES 15 SP2 | postgresql12 | 12.4-8.6.1 | SUSE-SU-2020:2265-1 |
| SLES 15 SP1 | postgresql10 | 10.14-8.19.1 | SUSE-SU-2020:2355-1 |
| SLES 15 SP1 | postgresql12 | 12.4-3.11.1 | SUSE-SU-2020:2271-1 |
| SLES 15 | postgresql10 | 10.14-4.25.1 | SUSE-SU-2020:2264-1 |
| SLES 12 SP5 | postgresql10 | 10.15-4.9.1 | SUSE-SU-2020:3464-1 |
| SLES 12 SP5 | postgresql12 | 12.5-3.9.3 | SUSE-SU-2020:3630-1 |
| SLES 12 SP4 | postgresql10 | 10.15-4.9.1 | SUSE-SU-2020:3464-1 |
| SLES 12 SP4 | postgresql12 | 12.5-3.9.3 | SUSE-SU-2020:3630-1 |
Show 15 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP3 | postgresql10 | 10.15-4.9.1 | SUSE-SU-2020:3464-1 |
| SLES 12 SP3 | postgresql12 | 12.5-3.9.3 | SUSE-SU-2020:3630-1 |
| SLES 12 SP2 | postgresql10 | 10.15-4.9.1 | SUSE-SU-2020:3464-1 |
| SLES 12 SP2 | postgresql12 | 12.5-3.9.3 | SUSE-SU-2020:3630-1 |
| SLES for SAP 15 | postgresql10 | 10.14-4.25.1 | SUSE-SU-2020:2264-1 |
| SLES for SAP 12 SP5 | postgresql10 | 10.15-4.9.1 | SUSE-SU-2020:3464-1 |
| SLES for SAP 12 SP5 | postgresql12 | 12.5-3.9.3 | SUSE-SU-2020:3630-1 |
| SLES for SAP 12 SP4 | postgresql10 | 10.15-4.9.1 | SUSE-SU-2020:3464-1 |
| SLES for SAP 12 SP4 | postgresql12 | 12.5-3.9.3 | SUSE-SU-2020:3630-1 |
| SLES for SAP 12 SP3 | postgresql10 | 10.15-4.9.1 | SUSE-SU-2020:3464-1 |
| SLES for SAP 12 SP3 | postgresql12 | 12.5-3.9.3 | SUSE-SU-2020:3630-1 |
| SLES for SAP 12 SP2 | postgresql10 | 10.15-4.9.1 | SUSE-SU-2020:3464-1 |
| SLES for SAP 12 SP2 | postgresql12 | 12.5-3.9.3 | SUSE-SU-2020:3630-1 |
| SLE HPC 15 | postgresql10 | 10.14-4.25.1 | SUSE-SU-2020:2264-1 |
| SUSE OpenStack Cloud Crowbar 9 | postgresql10 | 10.15-4.9.1 | SUSE-SU-2020:3464-1 |
| SUSE OpenStack Cloud Crowbar 9 | postgresql12 | 12.5-3.9.3 | SUSE-SU-2020:3630-1 |
| SUSE OpenStack Cloud Crowbar 8 | postgresql10 | 10.15-4.9.1 | SUSE-SU-2020:3464-1 |
| SUSE OpenStack Cloud Crowbar 8 | postgresql12 | 12.5-3.9.3 | SUSE-SU-2020:3630-1 |
| SUSE OpenStack Cloud 9 | postgresql10 | 10.15-4.9.1 | SUSE-SU-2020:3464-1 |
| SUSE OpenStack Cloud 9 | postgresql12 | 12.5-3.9.3 | SUSE-SU-2020:3630-1 |
| SUSE OpenStack Cloud 8 | postgresql10 | 10.15-4.9.1 | SUSE-SU-2020:3464-1 |
| SUSE OpenStack Cloud 8 | postgresql12 | 12.5-3.9.3 | SUSE-SU-2020:3630-1 |
| SUSE OpenStack Cloud 7 | postgresql10 | 10.15-4.9.1 | SUSE-SU-2020:3464-1 |
| SUSE OpenStack Cloud 7 | postgresql12 | 12.5-3.9.3 | SUSE-SU-2020:3630-1 |
| SUSE HPE Helion OpenStack 8 | postgresql10 | 10.15-4.9.1 | SUSE-SU-2020:3464-1 |
| SUSE HPE Helion OpenStack 8 | postgresql12 | 12.5-3.9.3 | SUSE-SU-2020:3630-1 |
| SUSE Enterprise Storage 5 | postgresql10 | 10.15-4.9.1 | SUSE-SU-2020:3464-1 |
| SUSE Enterprise Storage 5 | postgresql12 | 12.5-3.9.3 | SUSE-SU-2020:3630-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | postgresql10 | 10.18-1.3 | openSUSE-SU-2024:11184-1 |
| openSUSE Tumbleweed | postgresql11 | 11.13-1.3 | openSUSE-SU-2024:11185-1 |
| openSUSE Tumbleweed | postgresql12 | 12.8-1.3 | openSUSE-SU-2024:11186-1 |
| openSUSE Leap 15.2 | postgresql | 12.0.1-lp152.3.3.2 | openSUSE-SU-2020:1228-1 |
| openSUSE Leap 15.2 | postgresql10 | 10.13-lp152.2.3.1 | openSUSE-SU-2020:1326-1, openSUSE-SU-2020:1228-1 |
| openSUSE Leap 15.2 | postgresql11 | 11.9-lp152.3.3.1 | openSUSE-SU-2020:1228-1 |
| openSUSE Leap 15.2 | postgresql12 | 12.3-lp152.3.4.1 | openSUSE-SU-2020:1244-1, openSUSE-SU-2020:1228-1 |
| openSUSE Leap 15.2 | postgresql96 | 9.6.19-lp152.2.3.1 | openSUSE-SU-2020:1228-1 |
| openSUSE Leap 15.1 | postgresql10 | 10.14-lp151.2.18.1 | openSUSE-SU-2020:1312-1 |
| openSUSE Leap 15.1 | postgresql12 | 12.4-lp151.6.1 | openSUSE-SU-2020:1243-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.20 | postgresql14 +1 | 12.4-r0 | — |
| Alpine v3.19 | postgresql14 +1 | 12.4-r0 | — |
| Alpine v3.18 | postgresql12 +2 | 12.4-r0 | — |
| Alpine v3.17 | postgresql12 +2 | 12.4-r0 | — |
| Alpine v3.16 | postgresql12 +1 | 12.4-r0 | — |
Show 7 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.15 | postgresql12 +1 | 12.4-r0 | — |
| Alpine v3.14 | postgresql | 12.4-r0 | — |
| Alpine v3.13 | postgresql | 12.4-r0 | — |
| Alpine v3.12 | postgresql | 12.4-r0 | — |
| Alpine v3.11 | postgresql | 12.4-r0 | — |
| Alpine v3.10 | postgresql | 11.9-r0 | — |
| Alpine v3.9 | postgresql | 11.9-r0 | — |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 8 | postgresql +12 | 10.14-1.module+el8.2.0+7785+0ea9f177 | ELSA-2020-3669 |
| Oracle Linux 7 | rh-postgresql10-postgresql +13 | 10.15-1.el7 | ELSA-2021-9290 |
Advisories 27
- ALSA-2020:5620 Important: postgresql:12 security update AlmaLinux Security Advisories · Oct 29, 2026
- RHSA-2021:0988 Red Hat Security Advisory: rhvm-appliance security, bug fix, and enhancement update Red Hat Security Advisories (RHSA) · Aug 5, 2026
- RHSA-2021:0166 Red Hat Security Advisory: postgresql:10 security update Red Hat Security Advisories (RHSA) · Aug 5, 2026
- RHSA-2021:0163 Red Hat Security Advisory: postgresql:12 security update Red Hat Security Advisories (RHSA) · Aug 5, 2026
- RHSA-2020:5664 Red Hat Security Advisory: postgresql:10 security update Red Hat Security Advisories (RHSA) · Aug 5, 2026
- RHSA-2020:5620 Red Hat Security Advisory: postgresql:12 security update Red Hat Security Advisories (RHSA) · Aug 5, 2026
- RHSA-2020:5112 Red Hat Security Advisory: rh-postgresql12-postgresql security update Red Hat Security Advisories (RHSA) · Aug 5, 2026
- RHSA-2020:5110 Red Hat Security Advisory: rh-postgresql10-postgresql security update Red Hat Security Advisories (RHSA) · Aug 5, 2026
- RHSA-2020:3669 Red Hat Security Advisory: postgresql:10 security and bug fix update Red Hat Security Advisories (RHSA) · Aug 5, 2026
- USN-4472-1 postgresql-10, postgresql-12, postgresql-9.5 vulnerabilities Ubuntu Security Notices (USN) · Apr 27, 2026
- RLSA-2020:5620 Important: postgresql:12 security update Rocky Linux Security Advisories · Feb 4, 2026
- SUSE-SU-2020:2264-1 Security update for postgresql10 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:11185-1 postgresql11-11.13-1.3 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2020:3464-1 Security update for postgresql10 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2020:1244-1 Security update for postgresql12 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2020:2355-1 Security update for postgresql10 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2020:1243-1 Security update for postgresql12 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2020:1312-1 Security update for postgresql10 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:11184-1 postgresql10-10.18-1.3 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2020:3630-1 Security update for postgresql12 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2020:1228-1 Security update for postgresql, postgresql96, postgresql10, postgresql12 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2020:2271-1 Security update for postgresql12 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2020:2265-1 Security update for postgresql12 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:11186-1 postgresql12-12.8-1.3 on GA media SUSE / openSUSE Security Updates · May 7, 2025
- openSUSE-SU-2020:1326-1 Security update for postgresql10 SUSE / openSUSE Security Updates · May 7, 2025
- ELSA-2021-9290 Important: rh-postgresql10-postgresql security update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · Jun 11, 2021
- ELSA-2020-3669 Moderate: postgresql:10 security and bug fix update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · Sep 9, 2020
References
- openSUSE-SU-2020:1228 vendor-advisory
- openSUSE-SU-2020:1244 vendor-advisory
- openSUSE-SU-2020:1243 vendor-advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1865744
- GLSA-202008-13 vendor-advisory
- USN-4472-1 vendor-advisory
- openSUSE-SU-2020:1312 vendor-advisory
- openSUSE-SU-2020:1326 vendor-advisory
- https://security.netapp.com/advisory/ntap-20200918-0002/