{"id":"CVE-2018-1058","details":"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.","modified":"2026-04-16T06:16:36.330964123Z","published":"2018-03-02T15:29:00.337Z","related":["SUSE-SU-2018:0755-1","SUSE-SU-2018:0756-1","SUSE-SU-2018:0876-1","openSUSE-SU-2024:11184-1"],"references":[{"type":"ADVISORY","url":"https://www.postgresql.org/about/news/1834/"},{"type":"ADVISORY","url":"http://www.securityfocus.com/bid/103221"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2018:2511"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2018:2566"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2018:3816"},{"type":"ADVISORY","url":"https://usn.ubuntu.com/3589-1/"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=1547044"}],"affected":[{"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-1058.json","unresolved_ranges":[{"events":[{"introduced":"9.3"},{"fixed":"9.3.22"}]},{"events":[{"introduced":"9.4"},{"fixed":"9.4.17"}]},{"events":[{"introduced":"9.5"},{"fixed":"9.5.12"}]},{"events":[{"introduced":"9.6"},{"fixed":"9.6.8"}]},{"events":[{"introduced":"10.0"},{"fixed":"10.3"}]},{"events":[{"introduced":"0"},{"last_affected":"14.04"}]},{"events":[{"introduced":"0"},{"last_affected":"16.04"}]},{"events":[{"introduced":"0"},{"last_affected":"17.10"}]},{"events":[{"introduced":"0"},{"last_affected":"4.6"}]}]}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}