Skip to content
OpenAdvisories
High · 8.0 CVE-2018-16850 EUVD-2018-8644GHSA-h6p9-49w4-8mm8

postgresql before versions 11.1, 10.6 is vulnerable to a to SQL injection in pg_upgrade and pg_dump via CREATE TRIGGER ... REFERENCING. Usi…

Published Nov 13, 2018 · Updated Aug 5, 2024 · Assigned by redhat

Description

postgresql before versions 11.1, 10.6 is vulnerable to a to SQL injection in pg_upgrade and pg_dump via CREATE TRIGGER ... REFERENCING. Using a purpose-crafted trigger definition, an attacker can cause arbitrary SQL statements to run, with superuser privileges.

Affected products

VendorProductAffectedFixed
The PostgreSQL Project postgresql 11.1, 10.6 —

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.

ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS postgresql-10 10.6-0ubuntu0.18.04.1 USN-3818-1
ReleasePackageFixed inAdvisory
RHEL 3 rh-postgresql10-postgresql +13 10.6-1.el7 RHSA-2018:3757
ReleasePackageFixed inAdvisory
SLES 15 postgresql10 10.6-4.8.1 SUSE-SU-2018:3942-1
SLES 12 SP4 postgresql10 +1 10.6-1.6.1 SUSE-SU-2018:3770-2
SLES 12 SP3 postgresql10 +1 10.6-1.6.1 SUSE-SU-2018:3770-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 12 SP4 postgresql10 +1 10.6-1.6.1 SUSE-SU-2018:3770-2
SLES for SAP 12 SP3 postgresql10 +1 10.6-1.6.1 SUSE-SU-2018:3770-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed postgresql10 10.18-1.3 openSUSE-SU-2024:11184-1
openSUSE Tumbleweed postgresql11 11.13-1.3 openSUSE-SU-2024:11185-1
ReleasePackageFixed inAdvisory
Alpine v3.20 postgresql14 +1 11.1-r0 —
Alpine v3.19 postgresql14 +1 11.1-r0 —
Alpine v3.18 postgresql14 +1 11.1-r0 —
Alpine v3.17 postgresql14 +1 11.1-r0 —
Alpine v3.16 postgresql14 11.1-r0 —
Show 7 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.15 postgresql14 11.1-r0 —
Alpine v3.14 postgresql 11.1-r0 —
Alpine v3.13 postgresql 11.1-r0 —
Alpine v3.12 postgresql 11.1-r0 —
Alpine v3.11 postgresql 11.1-r0 —
Alpine v3.10 postgresql 11.1-r0 —
Alpine v3.9 postgresql 11.1-r0 —

Advisories 7

References