Description
A flaw was found in the way Postgresql allowed a user to modify the behavior of a query for other users. An attacker with a user account could use this flaw to execute code with the permissions of superuser in the database. Versions 9.3 through 10 are affected.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| The PostgreSQL Global Development Group | postgresql | 9.3 - 10 | — |
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 18.04 LTS | postgresql-10 | 10.3-1 | — |
| Ubuntu 16.04 LTS | postgresql-9.5 | 9.5.12-0ubuntu0.16.04 | USN-3589-1 |
| Ubuntu 14.04 LTS | postgresql-9.3 | 9.3.22-0ubuntu0.14.04 | USN-3589-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 12 SP3 | postgresql96 +1 | 9.6.8-3.16.1 | SUSE-SU-2018:0756-1 |
| SLES 12 SP2 | postgresql94 +1 | 9.4.17-21.19.1 | SUSE-SU-2018:0876-1 |
| SLES 12 SP2 | postgresql96 +1 | 9.6.8-3.16.1 | SUSE-SU-2018:0756-1 |
| SLES 11 SP4 | postgresql94 +1 | 9.4.17-0.23.16.1 | SUSE-SU-2018:0755-1 |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 12 SP3 | postgresql96 +1 | 9.6.8-3.16.1 | SUSE-SU-2018:0756-1 |
| SLES for SAP 12 SP2 | postgresql94 | 9.4.17-21.19.1 | SUSE-SU-2018:0876-1 |
| SLES for SAP 12 SP2 | postgresql96 +1 | 9.6.8-3.16.1 | SUSE-SU-2018:0756-1 |
| SLES for SAP 11 SP4 | postgresql94 +1 | 9.4.17-0.23.16.1 | SUSE-SU-2018:0755-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | kubectl-cnpg | 1.29.2-1.1 | openSUSE-SU-2026:11167-1 |
| openSUSE Tumbleweed | postgresql10 | 10.18-1.3 | openSUSE-SU-2024:11184-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.20 | postgresql14 +1 | 10.3-r0 | — |
| Alpine v3.19 | postgresql14 +1 | 10.3-r0 | — |
| Alpine v3.18 | postgresql14 +1 | 10.3-r0 | — |
| Alpine v3.17 | postgresql14 +1 | 10.3-r0 | — |
| Alpine v3.16 | postgresql14 | 10.3-r0 | — |
Show 12 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.15 | postgresql14 | 10.3-r0 | — |
| Alpine v3.14 | postgresql | 10.3-r0 | — |
| Alpine v3.13 | postgresql | 10.3-r0 | — |
| Alpine v3.12 | postgresql | 10.3-r0 | — |
| Alpine v3.11 | postgresql | 10.3-r0 | — |
| Alpine v3.10 | postgresql | 10.3-r0 | — |
| Alpine v3.9 | postgresql | 10.3-r0 | — |
| Alpine v3.8 | postgresql | 10.3-r0 | — |
| Alpine v3.7 | postgresql | 10.3-r0 | — |
| Alpine v3.6 | postgresql | 9.6.8-r0 | — |
| Alpine v3.5 | postgresql | 9.6.8-r0 | — |
| Alpine v3.4 | postgresql | 9.5.12-r0 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 2 repositories
-
mthamil107/DB_Audit_Research ★ 0 · Aug 19, 2026
Self-Defeating Audits: reproducible lab showing a low-privilege PostgreSQL role reversibly blinding a trigger-based auditor + poisoning attribution (PG14/16), with defenses. Synthetic data; CVE-2018-…
-
ccchme/CVE-2018-1058 ★ 0 · May 9, 2026
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 9
- 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:2511 Red Hat Security Advisory: rh-postgresql95-postgresql security update Red Hat Security Advisories (RHSA) · Aug 5, 2026
- openSUSE-SU-2026:11167-1 kubectl-cnpg-1.29.2-1.1 on GA media SUSE / openSUSE Security Updates · Jul 2, 2026
- USN-3589-1 postgresql-9.3, postgresql-9.5, postgresql-9.6 vulnerability Ubuntu Security Notices (USN) · Apr 22, 2026
- SUSE-SU-2018:0755-1 Security update for postgresql94 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2018:0756-1 Security update for postgresql96 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:0876-1 Security update for postgresql94 SUSE / openSUSE Security Updates · May 2, 2025
References
- https://bugzilla.redhat.com/show_bug.cgi?id=1547044
- USN-3589-1 vendor-advisory
- 103221 vdb-entry
- https://www.postgresql.org/about/news/1834/
- RHSA-2018:2511 vendor-advisory
- RHSA-2018:2566 vendor-advisory
- RHSA-2018:3816 vendor-advisory