Description
Client use of server error message in PostgreSQL allows a server not trusted under current SSL or GSS settings to furnish arbitrary non-NUL bytes to the libpq application. For example, a man-in-the-middle attacker could send a long error message that a human or screen-scraper user of psql mistakes for valid query results. This is probably not a concern for clients where the user interface unambiguously indicates the boundary between one error message and other text. Versions before PostgreSQL 17.1, 16.5, 15.9, 14.14, 13.17, and 12.21 are affected.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | PostgreSQL | 17 – < 17.1, 16 – < 16.5, 15 – < 15.9, 14 – < 14.14, 13 – < 13.17, < 12.21 | 17.1 |
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 13 | postgresql-17 | 17.1-1 | — |
| Debian 12 | postgresql-15 | 15.9-0+deb12u1 | DSA-5812-1 |
| Debian 11 | postgresql-13 | 13.17-0+deb11u1 | DLA-3954-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 24.04 LTS | postgresql-16 | 16.6-0ubuntu0.24.04.1 | USN-7132-1 |
| Ubuntu 22.04 LTS | postgresql-14 | 14.15-0ubuntu0.22.04.1 | USN-7132-1 |
| Ubuntu 20.04 LTS | postgresql-12 | 12.22-0ubuntu0.20.04.1 | USN-7132-1 |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 18.04 LTS | postgresql-10 | No fix yet | — |
| Ubuntu Pro 16.04 LTS | postgresql-9.5 | 9.5.25-0ubuntu0.16.04.1+esm10 | USN-7358-1 |
| Ubuntu Pro 14.04 LTS | postgresql-9.3 | No fix yet | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP6 | postgresql | 17-150600.17.6.1 | SUSE-SU-2024:4063-1 |
| SLES 15 SP6 | postgresql14 | 14.15-150600.16.9.1 | SUSE-SU-2024:4118-1 |
| SLES 15 SP6 | postgresql15 | 15.10-150600.16.9.1 | SUSE-SU-2024:4098-1 |
| SLES 15 SP6 | postgresql16 | 16.6-150600.16.10.1 | SUSE-SU-2024:4063-1 |
| SLES 15 SP6 | postgresql17 | 17.2-150600.13.5.1 | SUSE-SU-2024:4063-1 |
| SLES 15 SP5 | postgresql | 17-150500.10.9.1 | SUSE-SU-2024:4173-1 |
| SLES 15 SP5 | postgresql14 | 14.15-150200.5.50.1 | SUSE-SU-2024:4176-1 |
| SLES 15 SP5 | postgresql15 | 15.10-150200.5.33.1 | SUSE-SU-2024:4174-1 |
| SLES 15 SP5 | postgresql16 | 16.6-150200.5.21.1 | SUSE-SU-2024:4173-1 |
| SLES 15 SP5 | postgresql17 | 17.2-150200.5.5.1 | SUSE-SU-2024:4173-1 |
| SLES 15 SP4 | postgresql | 17-150400.4.18.1 | SUSE-SU-2024:4173-1 |
| SLES 15 SP4 | postgresql13 | 13.18-150200.5.64.1 | SUSE-SU-2024:4175-1 |
| SLES 15 SP4 | postgresql14 | 14.15-150200.5.50.1 | SUSE-SU-2024:4176-1 |
| SLES 15 SP4 | postgresql15 | 15.10-150200.5.33.1 | SUSE-SU-2024:4174-1 |
| SLES 15 SP4 | postgresql16 | 16.6-150200.5.21.1 | SUSE-SU-2024:4173-1 |
| SLES 15 SP4 | postgresql17 | 17.2-150200.5.5.1 | SUSE-SU-2024:4173-1 |
| SLES 15 SP3 | postgresql | 17-150300.10.27.1 | SUSE-SU-2024:4173-1 |
| SLES 15 SP3 | postgresql12 | 12.22-150200.8.66.1 | SUSE-SU-2024:4099-1 |
| SLES 15 SP3 | postgresql13 | 13.18-150200.5.64.1 | SUSE-SU-2024:4175-1 |
| SLES 15 SP3 | postgresql14 | 14.15-150200.5.50.1 | SUSE-SU-2024:4176-1 |
| SLES 15 SP3 | postgresql15 | 15.10-150200.5.33.1 | SUSE-SU-2024:4174-1 |
| SLES 15 SP3 | postgresql16 | 16.6-150200.5.21.1 | SUSE-SU-2024:4173-1 |
| SLES 15 SP3 | postgresql17 | 17.2-150200.5.5.1 | SUSE-SU-2024:4173-1 |
| SLES 15 SP2 | postgresql | 17-150200.4.30.1 | SUSE-SU-2024:4173-1 |
| SLES 15 SP2 | postgresql12 | 12.22-150200.8.66.1 | SUSE-SU-2024:4099-1 |
| SLES 15 SP2 | postgresql13 | 13.18-150200.5.64.1 | SUSE-SU-2024:4175-1 |
| SLES 15 SP2 | postgresql14 | 14.15-150200.5.50.1 | SUSE-SU-2024:4176-1 |
Show 10 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP5 | postgresql | 17-4.29.1 | SUSE-SU-2025:01799-1 |
| SLES 12 SP5 | postgresql12 | 12.22-3.63.1 | SUSE-SU-2024:4097-1 |
| SLES 12 SP5 | postgresql13 | 13.18-3.55.2 | SUSE-SU-2024:4114-1 |
| SLES 12 SP5 | postgresql14 | 14.15-3.49.1 | SUSE-SU-2024:4096-1 |
| SLES 12 SP5 | postgresql15 | 15.10-3.33.1 | SUSE-SU-2024:4095-1 |
| SLES 12 SP5 | postgresql16 | 16.6-3.21.1 | SUSE-SU-2025:01799-1 |
| SLES 12 SP5 | postgresql17 | 17.2-3.5.1 | SUSE-SU-2025:01799-1 |
| SLES for SAP 15 SP4 | postgresql | 17-150400.4.18.1 | SUSE-SU-2024:4173-1 |
| SLES for SAP 15 SP4 | postgresql13 | 13.18-150200.5.64.1 | SUSE-SU-2024:4175-1 |
| SLES for SAP 15 SP4 | postgresql14 | 14.15-150200.5.50.1 | SUSE-SU-2024:4176-1 |
| SLES for SAP 15 SP4 | postgresql15 | 15.10-150200.5.33.1 | SUSE-SU-2024:4174-1 |
| SLES for SAP 15 SP4 | postgresql16 | 16.6-150200.5.21.1 | SUSE-SU-2024:4173-1 |
| SLES for SAP 15 SP4 | postgresql17 | 17.2-150200.5.5.1 | SUSE-SU-2024:4173-1 |
| SLES for SAP 15 SP3 | postgresql | 17-150300.10.27.1 | SUSE-SU-2024:4173-1 |
| SLES for SAP 15 SP3 | postgresql12 | 12.22-150200.8.66.1 | SUSE-SU-2024:4099-1 |
| SLES for SAP 15 SP3 | postgresql13 | 13.18-150200.5.64.1 | SUSE-SU-2024:4175-1 |
| SLES for SAP 15 SP3 | postgresql14 | 14.15-150200.5.50.1 | SUSE-SU-2024:4176-1 |
| SLES for SAP 15 SP3 | postgresql15 | 15.10-150200.5.33.1 | SUSE-SU-2024:4174-1 |
| SLES for SAP 15 SP3 | postgresql16 | 16.6-150200.5.21.1 | SUSE-SU-2024:4173-1 |
| SLES for SAP 15 SP3 | postgresql17 | 17.2-150200.5.5.1 | SUSE-SU-2024:4173-1 |
| SLES for SAP 15 SP2 | postgresql | 17-150200.4.30.1 | SUSE-SU-2024:4173-1 |
| SLES for SAP 15 SP2 | postgresql12 | 12.22-150200.8.66.1 | SUSE-SU-2024:4099-1 |
| SLES for SAP 15 SP2 | postgresql13 | 13.18-150200.5.64.1 | SUSE-SU-2024:4175-1 |
| SLES for SAP 15 SP2 | postgresql14 | 14.15-150200.5.50.1 | SUSE-SU-2024:4176-1 |
| SLE HPC 15 SP4 | postgresql | 17-150400.4.18.1 | SUSE-SU-2024:4173-1 |
| SLE HPC 15 SP4 | postgresql13 | 13.18-150200.5.64.1 | SUSE-SU-2024:4175-1 |
| SLE HPC 15 SP4 | postgresql14 | 14.15-150200.5.50.1 | SUSE-SU-2024:4176-1 |
| SLE HPC 15 SP4 | postgresql15 | 15.10-150200.5.33.1 | SUSE-SU-2024:4174-1 |
| SLE HPC 15 SP4 | postgresql16 | 16.6-150200.5.21.1 | SUSE-SU-2024:4173-1 |
| SLE HPC 15 SP4 | postgresql17 | 17.2-150200.5.5.1 | SUSE-SU-2024:4173-1 |
| SLE HPC 15 SP3 | postgresql | 17-150300.10.27.1 | SUSE-SU-2024:4173-1 |
| SLE HPC 15 SP3 | postgresql12 | 12.22-150200.8.66.1 | SUSE-SU-2024:4099-1 |
| SLE HPC 15 SP3 | postgresql13 | 13.18-150200.5.64.1 | SUSE-SU-2024:4175-1 |
| SLE HPC 15 SP3 | postgresql14 | 14.15-150200.5.50.1 | SUSE-SU-2024:4176-1 |
| SLE HPC 15 SP3 | postgresql15 | 15.10-150200.5.33.1 | SUSE-SU-2024:4174-1 |
| SLE HPC 15 SP3 | postgresql16 | 16.6-150200.5.21.1 | SUSE-SU-2024:4173-1 |
| SLE HPC 15 SP3 | postgresql17 | 17.2-150200.5.5.1 | SUSE-SU-2024:4173-1 |
| SLE HPC 15 SP2 | postgresql | 17-150200.4.30.1 | SUSE-SU-2024:4173-1 |
| SLE HPC 15 SP2 | postgresql12 | 12.22-150200.8.66.1 | SUSE-SU-2024:4099-1 |
| SLE HPC 15 SP2 | postgresql13 | 13.18-150200.5.64.1 | SUSE-SU-2024:4175-1 |
| SLE HPC 15 SP2 | postgresql14 | 14.15-150200.5.50.1 | SUSE-SU-2024:4176-1 |
| SUSE Manager Server 4.3 | postgresql | 17-150400.4.18.1 | SUSE-SU-2024:4173-1 |
| SUSE Manager Server 4.3 | postgresql14 | 14.15-150200.5.50.1 | SUSE-SU-2024:4176-1 |
| SUSE Manager Server 4.3 | postgresql15 | 15.10-150200.5.33.1 | SUSE-SU-2024:4174-1 |
| SUSE Manager Server 4.3 | postgresql16 | 16.6-150200.5.21.1 | SUSE-SU-2024:4173-1 |
| SUSE Manager Server 4.3 | postgresql17 | 17.2-150200.5.5.1 | SUSE-SU-2024:4173-1 |
| SUSE Manager Proxy 4.3 | postgresql | 17-150400.4.18.1 | SUSE-SU-2024:4173-1 |
| SUSE Manager Proxy 4.3 | postgresql14 | 14.15-150200.5.50.1 | SUSE-SU-2024:4176-1 |
| SUSE Manager Proxy 4.3 | postgresql15 | 15.10-150200.5.33.1 | SUSE-SU-2024:4174-1 |
| SUSE Manager Proxy 4.3 | postgresql16 | 16.6-150200.5.21.1 | SUSE-SU-2024:4173-1 |
| SUSE Manager Proxy 4.3 | postgresql17 | 17.2-150200.5.5.1 | SUSE-SU-2024:4173-1 |
| SUSE Enterprise Storage 7.1 | postgresql | 17-150300.10.27.1 | SUSE-SU-2024:4173-1 |
| SUSE Enterprise Storage 7.1 | postgresql12 | 12.22-150200.8.66.1 | SUSE-SU-2024:4099-1 |
| SUSE Enterprise Storage 7.1 | postgresql13 | 13.18-150200.5.64.1 | SUSE-SU-2024:4175-1 |
| SUSE Enterprise Storage 7.1 | postgresql14 | 14.15-150200.5.50.1 | SUSE-SU-2024:4176-1 |
| SUSE Enterprise Storage 7.1 | postgresql15 | 15.10-150200.5.33.1 | SUSE-SU-2024:4174-1 |
| SUSE Enterprise Storage 7.1 | postgresql16 | 16.6-150200.5.21.1 | SUSE-SU-2024:4173-1 |
| SUSE Enterprise Storage 7.1 | postgresql17 | 17.2-150200.5.5.1 | SUSE-SU-2024:4173-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | postgresql12 | 12.21-1.1 | openSUSE-SU-2024:14501-1 |
| openSUSE Tumbleweed | postgresql13 | 13.17-1.1 | openSUSE-SU-2024:14502-1 |
| openSUSE Tumbleweed | postgresql14 | 14.14-1.1 | openSUSE-SU-2024:14503-1 |
| openSUSE Tumbleweed | postgresql15 | 15.9-1.1 | openSUSE-SU-2024:14504-1 |
| openSUSE Tumbleweed | postgresql16 | 16.5-1.1 | openSUSE-SU-2024:14505-1 |
| openSUSE Tumbleweed | postgresql17 | 17.1-1.1 | openSUSE-SU-2024:14506-1 |
| openSUSE Leap 15.6 | postgresql | 17-150600.17.6.1 | SUSE-SU-2024:4063-1 |
| openSUSE Leap 15.6 | postgresql12 | 12.22-150200.8.66.1 | SUSE-SU-2024:4099-1 |
| openSUSE Leap 15.6 | postgresql13 | 13.18-150200.5.64.1 | SUSE-SU-2024:4175-1 |
| openSUSE Leap 15.6 | postgresql14 | 14.15-150600.16.9.1 | SUSE-SU-2024:4118-1 |
| openSUSE Leap 15.6 | postgresql15 | 15.10-150600.16.9.1 | SUSE-SU-2024:4098-1 |
| openSUSE Leap 15.6 | postgresql16 | 16.6-150600.16.10.1 | SUSE-SU-2024:4063-1 |
| openSUSE Leap 15.6 | postgresql17 | 17.2-150600.13.5.1 | SUSE-SU-2024:4063-1 |
| openSUSE Leap 15.5 | postgresql | 17-150500.10.9.1 | SUSE-SU-2024:4173-1 |
| openSUSE Leap 15.5 | postgresql12 | 12.22-150200.8.66.1 | SUSE-SU-2024:4099-1 |
| openSUSE Leap 15.5 | postgresql13 | 13.18-150200.5.64.1 | SUSE-SU-2024:4175-1 |
| openSUSE Leap 15.5 | postgresql14 | 14.15-150200.5.50.1 | SUSE-SU-2024:4176-1 |
| openSUSE Leap 15.5 | postgresql15 | 15.10-150200.5.33.1 | SUSE-SU-2024:4174-1 |
| openSUSE Leap 15.5 | postgresql16 | 16.6-150200.5.21.1 | SUSE-SU-2024:4173-1 |
| openSUSE Leap 15.5 | postgresql17 | 17.2-150200.5.5.1 | SUSE-SU-2024:4173-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | postgresql16 | 16.5-r0 | — |
| Alpine v3.24 | postgresql17 | 17.1-r0 | — |
| Alpine v3.23 | postgresql16 | 16.5-r0 | — |
| Alpine v3.23 | postgresql17 | 17.1-r0 | — |
| Alpine v3.22 | postgresql15 | 15.9-r0 | — |
| Alpine v3.22 | postgresql16 | 16.5-r0 | — |
| Alpine v3.22 | postgresql17 | 17.1-r0 | — |
| Alpine v3.21 | postgresql15 | 15.9-r0 | — |
| Alpine v3.21 | postgresql16 | 16.5-r0 | — |
| Alpine v3.21 | postgresql17 | 17.1-r0 | — |
| Alpine v3.20 | postgresql14 | 14.14-r0 | — |
| Alpine v3.20 | postgresql15 | 15.9-r0 | — |
| Alpine v3.20 | postgresql16 | 16.5-r0 | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | postgresql13 | 13.17-r0 | — |
| Alpine v3.19 | postgresql14 | 14.14-r0 | — |
| Alpine v3.19 | postgresql15 | 15.9-r0 | — |
| Alpine v3.19 | postgresql16 | 16.5-r0 | — |
| Alpine v3.18 | postgresql13 | 13.17-r0 | — |
| Alpine v3.18 | postgresql14 | 14.14-r0 | — |
| Alpine v3.18 | postgresql15 | 15.9-r0 | — |
| Alpine v3.17 | postgresql13 | 13.17-r0 | — |
| Alpine v3.17 | postgresql14 | 14.14-r0 | — |
| Alpine v3.17 | postgresql15 | 15.9-r0 | — |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | postgresql15 +15 | 15.9-1.amzn2023.0.1 | ALAS2023-2024-787 |
| Amazon Linux 2023 | postgresql16 +15 | 16.5-1.amzn2023.0.1 | ALAS2023-2024-786 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | postgresql | 16.5-1 | — |
| Azure Linux 2 (CBL-Mariner) | postgresql | 14.14-1 | — |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | postgresql-12 | 12.21-r0 | — |
| Wolfi rolling | postgresql-13 | 13.17-r0 | — |
| Wolfi rolling | postgresql-14 | 14.14-r0 | — |
| Wolfi rolling | postgresql-14-client | 14.24-r2 | — |
| Wolfi rolling | postgresql-15 | 15.9-r0 | — |
| Wolfi rolling | postgresql-15-client | 15.19-r2 | — |
| Wolfi rolling | postgresql-16 | 16.5-r0 | — |
| Wolfi rolling | postgresql-17 | 17.1-r0 | — |
Advisories 26
- WID-SEC-2024-3475 PostgreSQL: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 21, 2026
- USN-7358-1 postgresql-9.5 vulnerabilities Ubuntu Security Notices (USN) · Jun 25, 2026
- USN-7132-1 postgresql-12, postgresql-14, postgresql-16 vulnerabilities Ubuntu Security Notices (USN) · Apr 27, 2026
- DSA-5812-1 postgresql-15 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-3954-1 postgresql-13 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- SUSE-SU-2024:4095-1 Security update for postgresql15 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:14505-1 postgresql16-16.5-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:4174-1 Security update for postgresql15 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:14504-1 postgresql15-15.9-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:14503-1 postgresql14-14.14-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:4098-1 Security update for postgresql15 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:14506-1 libecpg6-17.1-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:4175-1 Security update for postgresql13 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:14501-1 postgresql12-12.21-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:4096-1 Security update for postgresql14 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:4114-1 Security update for postgresql13 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:4063-1 Security update for postgresql, postgresql16, postgresql17 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:4097-1 Security update for postgresql12 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:4173-1 Security update for postgresql, postgresql16, postgresql17 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2025:01799-1 Security update for postgresql, postgresql16, postgresql17 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:4118-1 Security update for postgresql14 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:14502-1 postgresql13-13.17-1.1 on GA media SUSE / openSUSE Security Updates · May 7, 2025
- SUSE-SU-2024:4176-1 Security update for postgresql14 SUSE / openSUSE Security Updates · May 2, 2025
- SUSE-SU-2024:4099-1 Security update for postgresql12 SUSE / openSUSE Security Updates · May 2, 2025
- ALAS2023-2024-786 Important: postgresql16 security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Dec 16, 2024
- ALAS2023-2024-787 Important: postgresql15 security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Dec 16, 2024