Description
A flaw was found in postgresql. Using an UPDATE ... RETURNING command on a purpose-crafted table, an authenticated database user could read arbitrary bytes of server memory. The highest threat from this vulnerability is to data confidentiality.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | postgresql | postgresql 13.3, postgresql 12.7, postgresql 11.12 | — |
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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 11 | postgresql-13 | 13.3-1 | — |
| Debian 10 | postgresql-11 | 11.12-0+deb10u1 | DSA-4915-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | postgresql-12 | 12.7-0ubuntu0.20.04.1 | USN-4972-1 |
| Ubuntu 18.04 LTS | postgresql-10 | 10.17-0ubuntu0.18.04.1 | USN-4972-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 14.04 LTS | postgresql-9.3 | No fix yet | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 8 | pgaudit | 1.4.0-6.module+el8.4.0+11288+c193d6d7 | RHSA-2021:2375, RHSA-2021:2372 |
| RHEL 8 | postgres-decoderbufs | 0.10.0-2.module+el8.4.0+8873+b821c30a | RHSA-2021:2375, RHSA-2021:2372 |
| RHEL 8 | postgresql +12 | 12.7-1.module+el8.4.0+11288+c193d6d7 | RHSA-2021:2375, RHSA-2021:2372 |
| RHEL 3 | rh-postgresql12-postgresql +13 | 12.7-1.el7 | RHSA-2021:2394 |
| RHEL 3 | rh-postgresql13-postgresql +14 | 13.3-1.el7 | RHSA-2021:2396 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 8.2 EUS | pgaudit | 1.4.0-4.module+el8.2.0+9043+1dbb5661 | RHSA-2021:2389 |
| RHEL 8.2 EUS | postgres-decoderbufs | 0.10.0-2.module+el8.2.0+9043+1dbb5661 | RHSA-2021:2389 |
| RHEL 8.2 EUS | postgresql +12 | 12.7-1.module+el8.2.0+11251+7a3cc531 | RHSA-2021:2389 |
AlmaLinux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux 8 | pgaudit | 1.5.0-1.module_el8.5.0+2607+8c0fd184 | ALSA-2021:2375 |
| AlmaLinux 8 | postgres-decoderbufs | 0.10.0-2.module_el8.5.0+2607+8c0fd184 | ALSA-2021:2375, ALSA-2021:2372 |
Rocky Linux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Rocky Linux 8 | pgaudit | 1.4.0-6.module+el8.4.0+587+d46efd10 | RLSA-2021:2375, RLSA-2021:2372 |
| Rocky Linux 8 | postgres-decoderbufs | 0.10.0-2.module+el8.4.0+424+71d47d9a | RLSA-2021:2375, RLSA-2021:2372 |
| Rocky Linux 8 | postgresql | 12.7-1.module+el8.4.0+545+ca56da2e | RLSA-2021:2375, RLSA-2021:2372 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP3 | postgresql12 | 12.7-8.20.1 | SUSE-SU-2021:1994-1 |
| SLES 15 SP3 | postgresql13 | 13.3-5.10.1 | SUSE-SU-2021:1785-2, SUSE-SU-2021:1785-1 |
| SLES 15 SP2 | postgresql12 | 12.7-8.20.1 | SUSE-SU-2021:1994-1 |
| SLES 15 SP2 | postgresql13 | 13.3-5.10.1 | SUSE-SU-2021:1785-1 |
| SLES 15 SP1 | postgresql12 | 12.12-150100.3.33.1 | SUSE-SU-2022:2958-1 |
| SLES 12 SP5 | postgresql12 | 12.7-3.15.3 | SUSE-SU-2021:1783-1 |
| SLES 12 SP5 | postgresql13 | 13.3-3.9.3 | SUSE-SU-2021:1784-1 |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 15 SP1 | postgresql12 | 12.12-150100.3.33.1 | SUSE-SU-2022:2958-1 |
| SLES for SAP 12 SP5 | postgresql12 | 12.7-3.15.3 | SUSE-SU-2021:1783-1 |
| SLES for SAP 12 SP5 | postgresql13 | 13.3-3.9.3 | SUSE-SU-2021:1784-1 |
| SLE HPC 15 SP1 | postgresql12 | 12.12-150100.3.33.1 | SUSE-SU-2022:2958-1 |
| SUSE Enterprise Storage 6 | postgresql12 | 12.12-150100.3.33.1 | SUSE-SU-2022:2958-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 Tumbleweed | postgresql13 | 13.4-1.3 | openSUSE-SU-2024:11187-1 |
| openSUSE Tumbleweed | postgresql14 | 14.5-2.1 | openSUSE-SU-2024:12387-1 |
| openSUSE Tumbleweed | postgresql15 | 15.4-2.1 | openSUSE-SU-2024:13243-1 |
| openSUSE Tumbleweed | postgresql16 | 16.4-1.1 | openSUSE-SU-2024:14360-1 |
| openSUSE Tumbleweed | postgresql17 | 17.6-2.1 | openSUSE-SU-2025:15580-1 |
| openSUSE Leap 15.3 | postgresql12 | 12.7-8.20.1 | openSUSE-SU-2021:1994-1 |
| openSUSE Leap 15.3 | postgresql13 | 13.3-5.10.1 | openSUSE-SU-2021:1785-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.20 | postgresql14 +1 | 13.3-r0 | — |
| Alpine v3.19 | postgresql13 +2 | 13.3-r0 | — |
| Alpine v3.18 | postgresql13 +2 | 13.3-r0 | — |
| Alpine v3.17 | postgresql13 +2 | 13.3-r0 | — |
| Alpine v3.16 | postgresql13 +1 | 13.3-r0 | — |
Show 6 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.15 | postgresql13 +1 | 13.3-r0 | — |
| Alpine v3.14 | postgresql | 13.3-r0 | — |
| Alpine v3.13 | postgresql | 13.3-r0 | — |
| Alpine v3.12 | postgresql | 12.7-r0 | — |
| Alpine v3.11 | postgresql | 12.7-r0 | — |
| Alpine v3.10 | postgresql | 11.12-r0 | — |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 8 | pgaudit | 1.4.0-6.module+el8.4.0+20191+2f8d0e59 | ELSA-2021-2375, ELSA-2021-2372 |
| Oracle Linux 8 | postgres-decoderbufs | 0.10.0-2.module+el8.4.0+20016+06fd4df3 | ELSA-2021-2375, ELSA-2021-2372 |
| Oracle Linux 8 | postgresql +12 | 12.7-1.module+el8.4.0+20191+2f8d0e59 | ELSA-2021-2375, ELSA-2021-2372 |
Advisories 29
- ALSA-2021:2375 Important: postgresql:13 security update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2021:2372 Important: postgresql:12 security update AlmaLinux Security Advisories · Oct 29, 2026
- RHSA-2021:2396 Red Hat Security Advisory: rh-postgresql13-postgresql security update Red Hat Security Advisories (RHSA) · Aug 5, 2026
- RHSA-2021:2394 Red Hat Security Advisory: rh-postgresql12-postgresql security update Red Hat Security Advisories (RHSA) · Aug 5, 2026
- RHSA-2021:2389 Red Hat Security Advisory: postgresql:12 security update Red Hat Security Advisories (RHSA) · Aug 5, 2026
- RHSA-2021:2372 Red Hat Security Advisory: postgresql:12 security update Red Hat Security Advisories (RHSA) · Aug 5, 2026
- RHSA-2021:2375 Red Hat Security Advisory: postgresql:13 security update Red Hat Security Advisories (RHSA) · Aug 5, 2026
- USN-4972-1 postgresql-10, postgresql-12, postgresql-13 vulnerabilities Ubuntu Security Notices (USN) · Apr 27, 2026
- openSUSE-SU-2025:15580-1 postgresql17-17.6-2.1 on GA media SUSE / openSUSE Security Updates · Mar 23, 2026
- DSA-4915-1 postgresql-11 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- RLSA-2021:2375 Important: postgresql:13 security update Rocky Linux Security Advisories · Feb 5, 2026
- RLSA-2021:2372 Important: postgresql:12 security update Rocky Linux Security Advisories · Feb 4, 2026
- openSUSE-SU-2024:11185-1 postgresql11-11.13-1.3 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:12387-1 postgresql14-14.5-2.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2021:1785-1 Security update for postgresql13 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2021:1994-1 Security update for postgresql12 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:13243-1 postgresql15-15.4-2.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2021:1994-1 Security update for postgresql12 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2021:1784-1 Security update for postgresql13 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:14360-1 postgresql16-16.4-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:2958-1 Security update for postgresql12 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2021:1785-2 Security update for postgresql13 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2021:1785-1 Security update for postgresql13 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:11187-1 libecpg6-13.4-1.3 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2021:1783-1 Security update for postgresql12 SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2022-1241 PostgreSQL: Mehrere Schwachstellen BSI CERT-Bund (WID) · Sep 28, 2025
- openSUSE-SU-2024:11186-1 postgresql12-12.8-1.3 on GA media SUSE / openSUSE Security Updates · May 7, 2025
- ELSA-2021-2375 Important: postgresql:13 security update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · Jun 11, 2021
- ELSA-2021-2372 Important: postgresql:12 security update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · Jun 11, 2021