postgresql: Uncontrolled search path element in pg_dump and other client applications
Published Mar 2, 2018
8.8
HIGHCVSS 3.1
EPSS 13.10%
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
-
- Version 9.3 - 10StatusaffectedConstraints-
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| The PostgreSQL Global Development Group | PostgreSQL | n/a |
|
Configuration 1
- ≥ 9.3 · < 9.3.22
- ≥ 9.4 · < 9.4.17
- ≥ 9.5 · < 9.5.12
- ≥ 9.6 · < 9.6.8
- ≥ 10.0 · < 10.3
Configuration 2
- 14.04
- 16.04
- 17.10
Configuration 3
- 4.6
No data.
CloudForms Management Engine 5.9
cfme-0:5.9.6.5-3.el7cf
Fixed · RHSA-2018:3816
CloudForms Management Engine 5.9
cfme-amazon-smartstate-0:5.9.6.5-2.el7cf
Fixed · RHSA-2018:3816
CloudForms Management Engine 5.9
cfme-appliance-0:5.9.6.5-1.el7cf
Fixed · RHSA-2018:3816
CloudForms Management Engine 5.9
cfme-gemset-0:5.9.6.5-2.el7cf
Fixed · RHSA-2018:3816
CloudForms Management Engine 5.9
dbus-api-service-0:1.0.1-3.1.el7cf
Fixed · RHSA-2018:3816
CloudForms Management Engine 5.9
httpd-configmap-generator-0:0.2.2-1.2.el7cf
Fixed · RHSA-2018:3816
CloudForms Management Engine 5.9
postgresql96-0:9.6.10-1PGDG.el7at
Fixed · RHSA-2018:3816
Red Hat Software Collections for Red Hat Enterprise Linux 6
rh-postgresql95-postgresql-0:9.5.14-1.el6
Fixed · RHSA-2018:2511
Red Hat Software Collections for Red Hat Enterprise Linux 6
rh-postgresql96-postgresql-0:9.6.10-1.el6
Fixed · RHSA-2018:2566
Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS
rh-postgresql95-postgresql-0:9.5.14-1.el6
Fixed · RHSA-2018:2511
Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS
rh-postgresql96-postgresql-0:9.6.10-1.el6
Fixed · RHSA-2018:2566
Red Hat Software Collections for Red Hat Enterprise Linux 7
rh-postgresql95-postgresql-0:9.5.14-1.el7
Fixed · RHSA-2018:2511
Red Hat Software Collections for Red Hat Enterprise Linux 7
rh-postgresql96-postgresql-0:9.6.10-1.el7
Fixed · RHSA-2018:2566
Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS
rh-postgresql95-postgresql-0:9.5.14-1.el7
Fixed · RHSA-2018:2511
Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS
rh-postgresql96-postgresql-0:9.6.10-1.el7
Fixed · RHSA-2018:2566
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS
rh-postgresql95-postgresql-0:9.5.14-1.el7
Fixed · RHSA-2018:2511
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS
rh-postgresql96-postgresql-0:9.6.10-1.el7
Fixed · RHSA-2018:2566
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS
rh-postgresql95-postgresql-0:9.5.14-1.el7
Fixed · RHSA-2018:2511
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS
rh-postgresql96-postgresql-0:9.6.10-1.el7
Fixed · RHSA-2018:2566
CloudForms Management Engine 5
postgresql94
Will not fix
Red Hat Enterprise Linux 5
postgresql
Will not fix
Red Hat Enterprise Linux 5
postgresql84
Will not fix
Red Hat Enterprise Linux 6
postgresql
Will not fix
Red Hat Enterprise Linux 7
postgresql
Will not fix
Red Hat Enterprise Linux 8
postgresql
Not affected
Red Hat JBoss Fuse Service Works 6
postgresql
Not affected
Red Hat JBoss Operations Network 3
postgresql
Not affected
Red Hat Mobile Application Platform 4
postgresql
Not affected
Red Hat Satellite 5
postgresql95-postgresql
Will not fix
Red Hat Single Sign-On 7
postgresql
Not affected
Red Hat Software Collections
rh-postgresql10-postgresql
Not affected
Red Hat Software Collections
rh-postgresql94-postgresql
Will not fix
| Product | Package | State | Advisory |
|---|---|---|---|
| CloudForms Management Engine 5.9 | cfme-0:5.9.6.5-3.el7cf | Fixed | RHSA-2018:3816 |
| CloudForms Management Engine 5.9 | cfme-amazon-smartstate-0:5.9.6.5-2.el7cf | Fixed | RHSA-2018:3816 |
| CloudForms Management Engine 5.9 | cfme-appliance-0:5.9.6.5-1.el7cf | Fixed | RHSA-2018:3816 |
| CloudForms Management Engine 5.9 | cfme-gemset-0:5.9.6.5-2.el7cf | Fixed | RHSA-2018:3816 |
| CloudForms Management Engine 5.9 | dbus-api-service-0:1.0.1-3.1.el7cf | Fixed | RHSA-2018:3816 |
| CloudForms Management Engine 5.9 | httpd-configmap-generator-0:0.2.2-1.2.el7cf | Fixed | RHSA-2018:3816 |
| CloudForms Management Engine 5.9 | postgresql96-0:9.6.10-1PGDG.el7at | Fixed | RHSA-2018:3816 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6 | rh-postgresql95-postgresql-0:9.5.14-1.el6 | Fixed | RHSA-2018:2511 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6 | rh-postgresql96-postgresql-0:9.6.10-1.el6 | Fixed | RHSA-2018:2566 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS | rh-postgresql95-postgresql-0:9.5.14-1.el6 | Fixed | RHSA-2018:2511 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS | rh-postgresql96-postgresql-0:9.6.10-1.el6 | Fixed | RHSA-2018:2566 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-postgresql95-postgresql-0:9.5.14-1.el7 | Fixed | RHSA-2018:2511 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-postgresql96-postgresql-0:9.6.10-1.el7 | Fixed | RHSA-2018:2566 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS | rh-postgresql95-postgresql-0:9.5.14-1.el7 | Fixed | RHSA-2018:2511 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS | rh-postgresql96-postgresql-0:9.6.10-1.el7 | Fixed | RHSA-2018:2566 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS | rh-postgresql95-postgresql-0:9.5.14-1.el7 | Fixed | RHSA-2018:2511 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS | rh-postgresql96-postgresql-0:9.6.10-1.el7 | Fixed | RHSA-2018:2566 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS | rh-postgresql95-postgresql-0:9.5.14-1.el7 | Fixed | RHSA-2018:2511 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS | rh-postgresql96-postgresql-0:9.6.10-1.el7 | Fixed | RHSA-2018:2566 |
| CloudForms Management Engine 5 | postgresql94 | Will not fix | n/a |
| Red Hat Enterprise Linux 5 | postgresql | Will not fix | n/a |
| Red Hat Enterprise Linux 5 | postgresql84 | Will not fix | n/a |
| Red Hat Enterprise Linux 6 | postgresql | Will not fix | n/a |
| Red Hat Enterprise Linux 7 | postgresql | Will not fix | n/a |
| Red Hat Enterprise Linux 8 | postgresql | Not affected | n/a |
| Red Hat JBoss Fuse Service Works 6 | postgresql | Not affected | n/a |
| Red Hat JBoss Operations Network 3 | postgresql | Not affected | n/a |
| Red Hat Mobile Application Platform 4 | postgresql | Not affected | n/a |
| Red Hat Satellite 5 | postgresql95-postgresql | Will not fix | n/a |
| Red Hat Single Sign-On 7 | postgresql | Not affected | n/a |
| Red Hat Software Collections | rh-postgresql10-postgresql | Not affected | n/a |
| Red Hat Software Collections | rh-postgresql94-postgresql | Will not fix | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
This issue affects the versions of Postgresql as shipped with Red Hat Satellite 5. Red Hat Product Security has rated this issue as having security impact of Low. A future update may address this issue. For additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/.
Red Hat mitigation
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
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
AV:N/AC:L/Au:S/C:P/I:P/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (48 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 13.10% (0.13098) | 96.24th | v5 (v2026.06.15) |
| Aug 11, 2026 | 13.10% (0.13098) | 95.99th | v5 (v2026.06.15) |
| Jun 15, 2026 | 14.14% (0.14142) | 96.10th | v5 (v2026.06.15) |
| May 22, 2026 | 82.01% (0.82010) | 99.22th | v4 (v2025.03.14) |
| May 20, 2026 | 83.77% (0.83774) | 99.30th | v4 (v2025.03.14) |
| Mar 4, 2026 | 82.69% (0.82687) | 99.22th | v4 (v2025.03.14) |
| Mar 1, 2026 | 79.84% (0.79844) | 99.08th | v4 (v2025.03.14) |
| Feb 4, 2026 | 82.69% (0.82687) | 99.21th | v4 (v2025.03.14) |
| Feb 1, 2026 | 79.84% (0.79844) | 99.07th | v4 (v2025.03.14) |
| Jan 4, 2026 | 82.69% (0.82687) | 99.20th | v4 (v2025.03.14) |
| Jan 1, 2026 | 79.84% (0.79844) | 99.07th | v4 (v2025.03.14) |
| Dec 15, 2025 | 82.69% (0.82687) | 99.19th | v4 (v2025.03.14) |
| Dec 4, 2025 | 81.09% (0.81095) | 99.11th | v4 (v2025.03.14) |
| Dec 1, 2025 | 78.84% (0.78843) | 99.00th | v4 (v2025.03.14) |
| Nov 21, 2025 | 81.87% (0.81866) | 99.15th | v4 (v2025.03.14) |
| Nov 18, 2025 | 66.86% (0.66860) | 98.56th | v4 (v2025.03.14) |
| Nov 4, 2025 | 81.09% (0.81095) | 99.10th | v4 (v2025.03.14) |
| Nov 1, 2025 | 77.91% (0.77906) | 98.96th | v4 (v2025.03.14) |
| Oct 4, 2025 | 81.98% (0.81976) | 99.16th | v4 (v2025.03.14) |
| Oct 1, 2025 | 78.98% (0.78977) | 99.03th | v4 (v2025.03.14) |
| Sep 4, 2025 | 82.42% (0.82422) | 99.19th | v4 (v2025.03.14) |
| Sep 1, 2025 | 79.52% (0.79521) | 99.06th | v4 (v2025.03.14) |
| Aug 4, 2025 | 82.42% (0.82422) | 99.17th | v4 (v2025.03.14) |
| Aug 1, 2025 | 79.52% (0.79521) | 99.04th | v4 (v2025.03.14) |
| Jul 4, 2025 | 82.42% (0.82422) | 99.17th | v4 (v2025.03.14) |
| Jul 1, 2025 | 79.52% (0.79521) | 99.03th | v4 (v2025.03.14) |
| Jun 15, 2025 | 83.12% (0.83121) | 99.19th | v4 (v2025.03.14) |
| Jun 4, 2025 | 81.57% (0.81571) | 99.12th | v4 (v2025.03.14) |
| Jun 1, 2025 | 78.48% (0.78484) | 98.97th | v4 (v2025.03.14) |
| May 4, 2025 | 81.57% (0.81571) | 99.11th | v4 (v2025.03.14) |
| May 1, 2025 | 78.48% (0.78484) | 98.96th | v4 (v2025.03.14) |
| Mar 25, 2025 | 80.61% (0.80606) | 99.11th | v4 (v2025.03.14) |
| Mar 24, 2025 | 70.94% (0.70935) | 98.63th | v4 (v2025.03.14) |
| Mar 19, 2025 | 59.94% (0.59940) | 98.03th | v4 (v2025.03.14) |
| Mar 17, 2025 | 70.94% (0.70935) | 98.61th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.48% (0.00477) | 76.57th | v3 (v2023.03.01) |
| Feb 8, 2024 | 0.48% (0.00477) | 75.04th | v3 (v2023.03.01) |
| Jul 24, 2023 | 0.48% (0.00480) | 72.61th | v3 (v2023.03.01) |
| May 8, 2023 | 0.52% (0.00515) | 73.24th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.73% (0.00727) | 77.71th | v3 (v2023.03.01) |
| Mar 6, 2023 | 2.49% (0.02489) | 81.66th | v2 (v2022.01.01) |
| Nov 27, 2022 | 2.49% (0.02489) | 81.16th | v2 (v2022.01.01) |
| Apr 1, 2022 | 2.42% (0.02422) | 79.80th | v2 (v2022.01.01) |
| Feb 4, 2022 | 2.42% (0.02422) | 58.43th | v2 (v2022.01.01) |
| Feb 3, 2022 | 2.89% (0.02888) | 63.67th | v1 |
| Jan 6, 2022 | 2.89% (0.02888) | 63.32th | v1 |
| Sep 1, 2021 | 2.89% (0.02888) | 80.75th | v1 |
| Apr 14, 2021 | 2.89% (0.02888) | 0.00th | v1 |
References (10)
- http://www.securityfocus.com/bid/103221 vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry
- https://access.redhat.com/errata/RHSA-2018:2511 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2018:2566 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2018:3816 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/security/cve/CVE-2018-1058 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1547044 x_refsource_CONFIRMIssue TrackingThird Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2018-1058
- https://usn.ubuntu.com/3589-1/ vendor-advisoryx_refsource_UBUNTUThird Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2018-1058
- https://www.postgresql.org/about/news/1834/ x_refsource_CONFIRMVendor Advisory
| Link | Providers | Tags |
|---|---|---|
| http://www.securityfocus.com/bid/103221 | vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry | |
| https://access.redhat.com/errata/RHSA-2018:2511 | vendor-advisoryx_refsource_REDHATThird Party Advisory | |
| https://access.redhat.com/errata/RHSA-2018:2566 | vendor-advisoryx_refsource_REDHATThird Party Advisory | |
| https://access.redhat.com/errata/RHSA-2018:3816 | vendor-advisoryx_refsource_REDHATThird Party Advisory | |
| https://access.redhat.com/security/cve/CVE-2018-1058 | Vendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=1547044 | x_refsource_CONFIRMIssue TrackingThird Party Advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2018-1058 | ||
| https://usn.ubuntu.com/3589-1/ | vendor-advisoryx_refsource_UBUNTUThird Party Advisory | |
| https://www.cve.org/CVERecord?id=CVE-2018-1058 | ||
| https://www.postgresql.org/about/news/1834/ | x_refsource_CONFIRMVendor Advisory |
Change history (0)
No recorded changes yet.