Description
It was discovered that PostgreSQL versions before 10.5, 9.6.10, 9.5.14, 9.4.19, and 9.3.24 failed to properly check authorization on certain statements involved with "INSERT ... ON CONFLICT DO UPDATE". An attacker with "CREATE TABLE" privileges could exploit this to read arbitrary bytes server memory. If the attacker also had certain "INSERT" and limited "UPDATE" privileges to a particular table, they could exploit this to update other columns in the same table.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| PostgreSQL Global Development Group | postgresql | 10.5, 9.6.10, 9.5.14, 9.4.19, 9.3.24 | — |
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 9 | postgresql-9.6 | 9.6.10-0+deb9u1 | DSA-4269-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | postgresql-10 | 10.5-0ubuntu0.18.04 | USN-3744-1 |
| Ubuntu 16.04 LTS | postgresql-9.5 | 9.5.14-0ubuntu0.16.04 | USN-3744-1 |
| Ubuntu 14.04 LTS | postgresql-9.3 | 9.3.24-0ubuntu0.14.04 | USN-3744-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 3 | rh-postgresql10-postgresql +13 | 10.5-1.el7 | RHSA-2018:2565 |
| RHEL 3 | rh-postgresql95-postgresql +10 | 9.5.14-1.el6 | RHSA-2018:2511 |
| RHEL 3 | rh-postgresql96-postgresql +13 | 9.6.10-1.el6 | RHSA-2018:2566 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat CloudForms 5 | cfme | 5.9.6.5-3.el7cf | RHSA-2018:3816 |
| Red Hat CloudForms 5 | cfme-appliance +2 | 5.9.6.5-1.el7cf | RHSA-2018:3816 |
| Red Hat CloudForms 5 | cfme-gemset +1 | 5.9.6.5-2.el7cf | RHSA-2018:3816 |
| Red Hat CloudForms 5 | dbus-api-service | 1.0.1-3.1.el7cf | RHSA-2018:3816 |
| Red Hat CloudForms 5 | httpd-configmap-generator | 0.2.2-1.2.el7cf | RHSA-2018:3816 |
| Red Hat CloudForms 5 | postgresql96 +9 | 9.6.10-1PGDG.el7at | RHSA-2018:3816 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 | postgresql10 | 10.5-4.5.1 | SUSE-SU-2018:2564-1 |
| SLES 12 SP3 | postgresql96 | 9.6.10-3.22.7 | SUSE-SU-2018:3377-1 |
| SLES 12 SP3 | postgresql96-libs | 9.6.10-3.22.1 | SUSE-SU-2018:3377-1 |
| SLES 12 SP2 | postgresql96 | 9.6.10-3.22.7 | SUSE-SU-2018:3377-1 |
| SLES 12 SP2 | postgresql96-libs | 9.6.10-3.22.1 | SUSE-SU-2018:3377-1 |
| SLES 12 SP1 | postgresql96 | 9.6.10-3.22.7 | SUSE-SU-2018:3377-1 |
| SLES 12 SP1 | postgresql96-libs | 9.6.10-3.22.1 | SUSE-SU-2018:3377-1 |
| SLES 12 | postgresql96 | 9.6.10-3.22.7 | SUSE-SU-2018:3377-1 |
| SLES 12 | postgresql96-libs | 9.6.10-3.22.1 | SUSE-SU-2018:3377-1 |
Show 5 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 12 SP3 | postgresql96 | 9.6.10-3.22.7 | SUSE-SU-2018:3377-1 |
| SLES for SAP 12 SP3 | postgresql96-libs | 9.6.10-3.22.1 | SUSE-SU-2018:3377-1 |
| SLES for SAP 12 SP2 | postgresql96 | 9.6.10-3.22.7 | SUSE-SU-2018:3377-1 |
| SLES for SAP 12 SP2 | postgresql96-libs | 9.6.10-3.22.1 | SUSE-SU-2018:3377-1 |
| SLES for SAP 12 SP1 | postgresql96 | 9.6.10-3.22.7 | SUSE-SU-2018:3377-1 |
| SLES for SAP 12 SP1 | postgresql96-libs | 9.6.10-3.22.1 | SUSE-SU-2018:3377-1 |
| SUSE OpenStack Cloud 7 | postgresql96 | 9.6.10-3.22.7 | SUSE-SU-2018:3377-1 |
| SUSE OpenStack Cloud 7 | postgresql96-libs | 9.6.10-3.22.1 | SUSE-SU-2018:3377-1 |
| SUSE Enterprise Storage 4 | postgresql96 | 9.6.10-3.22.7 | SUSE-SU-2018:3377-1 |
| SUSE Enterprise Storage 4 | postgresql96-libs | 9.6.10-3.22.1 | SUSE-SU-2018:3377-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 Leap 15.1 | postgresql | 12.0.1-lp151.6.9.1 | openSUSE-SU-2020:1227-1 |
| openSUSE Leap 15.1 | postgresql10 | 10.13-lp151.2.14.1 | openSUSE-SU-2020:1227-1 |
| openSUSE Leap 15.1 | postgresql12 | 12.3-lp151.2.1 | openSUSE-SU-2020:1227-1 |
| openSUSE Leap 15.1 | postgresql96 | 9.6.19-lp151.3.3.1 | openSUSE-SU-2020:1227-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.20 | postgresql14 +1 | 10.5-r0 | — |
| Alpine v3.19 | postgresql14 +1 | 10.5-r0 | — |
| Alpine v3.18 | postgresql14 +1 | 10.5-r0 | — |
| Alpine v3.17 | postgresql14 +1 | 10.5-r0 | — |
| Alpine v3.16 | postgresql14 | 10.5-r0 | — |
Show 11 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.15 | postgresql14 | 10.5-r0 | — |
| Alpine v3.14 | postgresql | 10.5-r0 | — |
| Alpine v3.13 | postgresql | 10.5-r0 | — |
| Alpine v3.12 | postgresql | 10.5-r0 | — |
| Alpine v3.11 | postgresql | 10.5-r0 | — |
| Alpine v3.10 | postgresql | 10.5-r0 | — |
| Alpine v3.9 | postgresql | 10.5-r0 | — |
| Alpine v3.8 | postgresql | 10.5-r0 | — |
| Alpine v3.7 | postgresql | 10.5-r0 | — |
| Alpine v3.6 | postgresql | 9.6.10-r0 | — |
| Alpine v3.5 | postgresql | 9.6.10-r0 | — |
Advisories 12
- RHSA-2018:3816 Red Hat Security Advisory: CloudForms 4.6.6 security, bug fix and enhancement update Red Hat Security Advisories (RHSA) · Aug 5, 2026
- RHSA-2018:2566 Red Hat Security Advisory: rh-postgresql96-postgresql security update Red Hat Security Advisories (RHSA) · Aug 5, 2026
- RHSA-2018:2565 Red Hat Security Advisory: rh-postgresql10-postgresql security update Red Hat Security Advisories (RHSA) · Aug 5, 2026
- RHSA-2018:2511 Red Hat Security Advisory: rh-postgresql95-postgresql security update Red Hat Security Advisories (RHSA) · Aug 5, 2026
- USN-3744-1 postgresql-10, postgresql-9.3, postgresql-9.5 vulnerabilities Ubuntu Security Notices (USN) · Apr 22, 2026
- DSA-4269-1 postgresql-9.6 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- openSUSE-SU-2024:11185-1 postgresql11-11.13-1.3 on GA media 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-2018:3377-1 Security update for postgresql96 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2018:2564-1 Security update for postgresql10 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2020:1227-1 Security update for postgresql96, postgresql10 and postgresql12 SUSE / openSUSE Security Updates · May 7, 2025
- WID-SEC-2024-3749 PostgreSQL: Mehrere Schwachstellen BSI CERT-Bund (WID) · Dec 23, 2024
References
- GLSA-201810-08 vendor-advisory
- DSA-4269 vendor-advisory
- 105052 vdb-entry
- RHSA-2018:2511 vendor-advisory
- USN-3744-1 vendor-advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-10925
- RHSA-2018:2566 vendor-advisory
- RHSA-2018:2565 vendor-advisory
- RHSA-2018:3816 vendor-advisory
- https://www.postgresql.org/about/news/1878/
- 1041446 vdb-entry
- openSUSE-SU-2020:1227 vendor-advisory