{"id":"CVE-2018-16850","details":"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.","modified":"2026-03-15T14:29:53.400379Z","published":"2018-11-13T15:29:00.233Z","related":["SUSE-SU-2018:3770-1","SUSE-SU-2018:3770-2","SUSE-SU-2018:3942-1","openSUSE-SU-2024:11184-1","openSUSE-SU-2024:11185-1"],"references":[{"type":"ADVISORY","url":"https://usn.ubuntu.com/3818-1/"},{"type":"ADVISORY","url":"https://www.postgresql.org/about/news/1905/"},{"type":"ADVISORY","url":"http://www.securityfocus.com/bid/105923"},{"type":"ADVISORY","url":"http://www.securitytracker.com/id/1042144"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2018:3757"},{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/201811-24"},{"type":"FIX","url":"https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16850"}],"affected":[{"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-16850.json","unresolved_ranges":[{"events":[{"introduced":"10.0"},{"fixed":"10.6"}]},{"events":[{"introduced":"11.0"},{"fixed":"11.1"}]},{"events":[{"introduced":"0"},{"last_affected":"7.0"}]},{"events":[{"introduced":"0"},{"last_affected":"7.4"}]},{"events":[{"introduced":"0"},{"last_affected":"7.5"}]},{"events":[{"introduced":"0"},{"last_affected":"7.6"}]},{"events":[{"introduced":"0"},{"last_affected":"18.04"}]},{"events":[{"introduced":"0"},{"last_affected":"18.10"}]}]}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}