CVE-2018-1058 in the critical feed json
A flaw was found in the way Postgresql allowed a user to modify the behavior of a query for other users.
published 2018-03-02 8 y ago modified 2026-06-17 4 mo ago also EUVD-2018-11711
- cvss
- 8.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 13.1%
- EPSS 13.1% chance of exploitation in 30 days, percentile 96%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- postgresql postgresql 9.3.22, 9.4.17, 9.5.12, 9.6.8, 10.3
- postgresql-10 Ubuntu 18.04 LTS 10.3-1
- postgresql-9.3 Ubuntu 14.04 LTS 9.3.22-0ubuntu0.14.04
- postgresql-9.5 Ubuntu 16.04 LTS 9.5.12-0ubuntu0.16.04
ubuntu advisories UBUNTU-CVE-2018-1058
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- cfme cloudforms managementengine 5.9 5.9.6.5-3.el7cf
- cfme-gemset cloudforms managementengine 5.9 5.9.6.5-2.el7cf
- postgresql96 cloudforms managementengine 5.9 9.6.10-1PGDG.el7at
- cfme-appliance cloudforms managementengine 5.9 5.9.6.5-1.el7cf
- dbus-api-service cloudforms managementengine 5.9 1.0.1-3.1.el7cf
- postgresql96-libs cloudforms managementengine 5.9 9.6.10-1PGDG.el7at
- postgresql96-test cloudforms managementengine 5.9 9.6.10-1PGDG.el7at
- postgresql96-pltcl cloudforms managementengine 5.9 9.6.10-1PGDG.el7at
red hat advisories RHSA-2018:3816RHSA-2018:2566RHSA-2018:2511
- postgresql94 SLES for SAP 12 SP2, SLES for Raspberry Pi 12 SP2, SLES 12 SP2 +1 more 9.4.17-21.19.1
- postgresql94-libs SLE Software Development Kit 12 SP2 9.4.17-21.19.1
- postgresql96 SLES for SAP 12 SP3, SLES for SAP 12 SP2, SLES for Raspberry Pi 12 SP2 +4 more 9.6.8-3.16.1
- postgresql96-libs SLES for SAP 12 SP3, SLES for SAP 12 SP2, SLES for Raspberry Pi 12 SP2 +6 more 9.6.8-3.16.1
- postgresql94 SLES for SAP 11 SP4, SLES 11 SP4 9.4.17-0.23.16.1
- postgresql94-libs SLES for SAP 11 SP4, SLES 11 SP4, SLE Software Development Kit 11 SP4 9.4.17-0.23.16.1
suse advisories SUSE-SU-2018:0876-1SUSE-SU-2018:0756-1SUSE-SU-2018:0755-1
- kubectl-cnpg openSUSE Tumbleweed 1.29.2-1.1
- postgresql10 openSUSE Tumbleweed 10.18-1.3
opensuse advisories openSUSE-SU-2026:11167-1openSUSE-SU-2024:11184-1
- postgresql Alpine 3.14, Alpine 3.13, Alpine 3.12 +5 more 10.3-r0
- postgresql Alpine 3.4 9.5.12-r0
- postgresql Alpine 3.6, Alpine 3.5 9.6.8-r0
- postgresql14 Alpine 3.20, Alpine 3.19, Alpine 3.18 +3 more 10.3-r0
- postgresql15 Alpine 3.20, Alpine 3.19, Alpine 3.18 +1 more 10.3-r0
alpine advisories ALPINE-CVE-2018-1058
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- postgresql Arch Linux 10.3-1
arch linux advisories AVG-643
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2018-1058 updated cvss 8.8
postgresql: Uncontrolled search path element in pg_dump and other client applications
-
Red Hat CloudForms Management Engine 5 postgresql94, postgresql94-libs, postgresql94-test, postgresql94-pltcl, postgresql94-plperl, postgresql94-server, +2 more Red Hat Enterprise Linux 5 postgresql, postgresql84 Red Hat Enterprise Linux 6 postgresql, postgresql-libs, postgresql-test, postgresql-pltcl, postgresql-plperl, postgresql-server, +2 more Red Hat Enterprise Linux 7 postgresql, postgresql-libs, postgresql-test, postgresql-pltcl, postgresql-plperl, postgresql-server, +3 more Red Hat Satellite 5 postgresql95-postgresql Red Hat Software Collections rh-postgresql94-postgresql, rh-postgresql94-postgresql-libs, rh-postgresql94-postgresql-test, rh-postgresql94-postgresql-pltcl, rh-postgresql94-postgresql-plperl, rh-postgresql94-postgresql-server, +3 moreaffected: workaround, no fix planned “Upstream suggests the following mitigation can be used to protect against this security flaw: https://wiki.postgresql.org/wiki/A_Guide_to_CVE-2018-1058:_Protect_Your_Search_Path”
-
Red Hat CloudForms Management Engine 5.9 cfme 5.9.6.5-3.el7cf, cfme-gemset 5.9.6.5-2.el7cf, cfme-appliance 5.9.6.5-1.el7cf, postgresql96 9.6.10-1PGDG.el7at, dbus-api-service 1.0.1-3.1.el7cf, cfme-appliance-tools 5.9.6.5-1.el7cf, +10 morefixed: vendor fix “Upstream suggests the following mitigation can be used to protect against this security flaw: https://wiki.postgresql.org/wiki/A_Guide_to_CVE-2018-1058:_Protect_Your_Search_Path” RHSA-2018:3816
-
Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) rh-postgresql95-postgresql 9.5.14-1.el6, rh-postgresql96-postgresql 9.6.10-1.el6, rh-postgresql95-postgresql-libs 9.5.14-1.el6, rh-postgresql95-postgresql-test 9.5.14-1.el6, rh-postgresql96-postgresql-libs 9.6.10-1.el6, rh-postgresql96-postgresql-test 9.6.10-1.el6, +13 more Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) rh-postgresql95-postgresql 9.5.14-1.el7, rh-postgresql96-postgresql 9.6.10-1.el7, rh-postgresql95-postgresql-libs 9.5.14-1.el7, rh-postgresql95-postgresql-test 9.5.14-1.el7, rh-postgresql96-postgresql-libs 9.6.10-1.el7, rh-postgresql96-postgresql-test 9.6.10-1.el7, +13 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.7) rh-postgresql95-postgresql 9.5.14-1.el6, rh-postgresql96-postgresql 9.6.10-1.el6, rh-postgresql95-postgresql-libs 9.5.14-1.el6, rh-postgresql95-postgresql-test 9.5.14-1.el6, rh-postgresql96-postgresql-libs 9.6.10-1.el6, rh-postgresql96-postgresql-test 9.6.10-1.el6, +13 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.3) rh-postgresql95-postgresql 9.5.14-1.el7, rh-postgresql96-postgresql 9.6.10-1.el7, rh-postgresql95-postgresql-libs 9.5.14-1.el7, rh-postgresql95-postgresql-test 9.5.14-1.el7, rh-postgresql96-postgresql-libs 9.6.10-1.el7, rh-postgresql96-postgresql-test 9.6.10-1.el7, +13 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.4) rh-postgresql95-postgresql 9.5.14-1.el7, rh-postgresql96-postgresql 9.6.10-1.el7, rh-postgresql95-postgresql-libs 9.5.14-1.el7, rh-postgresql95-postgresql-test 9.5.14-1.el7, rh-postgresql96-postgresql-libs 9.6.10-1.el7, rh-postgresql96-postgresql-test 9.6.10-1.el7, +13 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.5) rh-postgresql95-postgresql 9.5.14-1.el7, rh-postgresql96-postgresql 9.6.10-1.el7, rh-postgresql95-postgresql-libs 9.5.14-1.el7, rh-postgresql95-postgresql-test 9.5.14-1.el7, rh-postgresql96-postgresql-libs 9.6.10-1.el7, rh-postgresql96-postgresql-test 9.6.10-1.el7, +13 morefixed: vendor fix “Upstream suggests the following mitigation can be used to protect against this security flaw: https://wiki.postgresql.org/wiki/A_Guide_to_CVE-2018-1058:_Protect_Your_Search_Path” RHSA-2018:2511
+2 more productsfewer
Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) rh-postgresql95-postgresql 9.5.14-1.el6, rh-postgresql96-postgresql 9.6.10-1.el6, rh-postgresql95-postgresql-libs 9.5.14-1.el6, rh-postgresql95-postgresql-test 9.5.14-1.el6, rh-postgresql96-postgresql-libs 9.6.10-1.el6, rh-postgresql96-postgresql-test 9.6.10-1.el6, +13 more Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) rh-postgresql95-postgresql 9.5.14-1.el7, rh-postgresql96-postgresql 9.6.10-1.el7, rh-postgresql95-postgresql-libs 9.5.14-1.el7, rh-postgresql95-postgresql-test 9.5.14-1.el7, rh-postgresql96-postgresql-libs 9.6.10-1.el7, rh-postgresql96-postgresql-test 9.6.10-1.el7, +13 more -
Red Hat Enterprise Linux 8 pgaudit, pg_repack, postgresql, postgresql-test, postgresql-pltcl, postgresql-plperl, +7 more Red Hat JBoss Fuse Service Works 6 postgresql Red Hat JBoss Operations Network 3 postgresql Red Hat Mobile Application Platform 4 postgresql Red Hat Single Sign-On 7 postgresql Red Hat Software Collections rh-postgresql10-postgresql, rh-postgresql10-postgresql-libs, rh-postgresql10-postgresql-test, rh-postgresql10-postgresql-pltcl, rh-postgresql10-postgresql-plperl, rh-postgresql10-postgresql-server, +5 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
13.10% chance of exploitation in the next 30 days, higher than 96% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 6.5 | AV:N/AC:L/Au:S/C:P/I:P/A:P |
Affected products
- The PostgreSQL Global Development Group postgresql
Classification
- Weakness
-
- CWE-20 Improper Input Validation
- Technology feeds
References
-
usn.ubuntu.com
/3589-1/
vendor-advisory, third-party-advisory
-
access.redhat.com
/errata/RHSA-2018:2511
vendor-advisory, third-party-advisory
-
access.redhat.com
/errata/RHSA-2018:2566
vendor-advisory, third-party-advisory
-
access.redhat.com
/errata/RHSA-2018:3816
vendor-advisory, third-party-advisory
-
postgresql.org
/about/news/1834/
vendor-advisory
-
bugzilla.redhat.com
/show_bug.cgi?id=1547044
issue-tracking, third-party-advisory
-
securityfocus.com
/bid/103221
vdb-entry, third-party-advisory
Sources
- CVE List CVE-2018-1058
- NVD CVE-2018-1058
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.