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.
CVE-2018-1058
Score 8.8 from GitHub Security Advisory (severity: HIGH) published 2022-05-13. NVD baseline CVSS 8.8; sources differ by 0.0.
- High severity, but no confirmed exploitation yet
A fix is available — apply it.
- CVSS v3
- 8.8
- EG Score
- 8.8HIGHmedium confidence
- EG Risk
- 60EG Risk 60/100CISA SSVC
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity88% × 45%Exploitation40% × 40%Automatability30% × 15%CISA SSVC: Track at low or medium mission impact; Track* or Attend at high (mission-essential systems).Action: A fix is available. Apply it within your standard update timelines at low or medium mission impact and sooner than that at high. - EPSS PROB
- 13%
- EPSS %ILE
- 96th
- KEV
- Not listed
CISA SSVCTrack at low or medium mission impact; Track* or Attend at high (mission-essential systems).
A fix is available. Apply it within your standard update timelines at low or medium mission impact and sooner than that at high.
Exploitation public PoC (EG-KEV: elevated) · Automatable unknown (not published for this CVE) · Technical impact partial (CVSS below 9.0). Mission impact is CISA's Mission & Well-being decision point, and only you can judge it: high means the affected system is essential to your organisation's mission, or its compromise could cause irreversible harm to people. CISA's decision table
Published
March 2, 2018
Last Modified
November 21, 2024
Advisory Details (6)
Auto-updated Aug 8, 2026PostgreSQL: PostgreSQL 10.3, 9.6.8, 9.5.12, 9.4.17, and 9.3.22 released!
https://www.postgresql.org/about/news/1834/1547044 – (CVE-2018-1058) CVE-2018-1058 postgresql: Uncontrolled search path element in pg_dump and other client applications
Affected: Red Hat Enterprise Linux 6
https://bugzilla.redhat.com/show_bug.cgi?id=1547044Vendor Advisories for CVE-2018-1058(3)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
- RHSA-2018:3816Red Hat Product SecurityHigh
Red Hat Security Advisory: CloudForms 4.6.6 security, bug fix and enhancement update
- RHSA-2018:2566Red Hat Product SecurityHigh
Red Hat Security Advisory: rh-postgresql96-postgresql security update
- RHSA-2018:2511Red Hat Product SecurityHigh
Red Hat Security Advisory: rh-postgresql95-postgresql security update
Patch Availability(4)
| Vendor / Ecosystem | Fix (by version range) / Patch | Released | Source |
|---|---|---|---|
| ubuntu | postgresql-server-dev-9.3 (9.3.22-0ubuntu0.14.04) @ trusty | 2026-05-28 | ubuntu |
| redhat | postgresql96-0:9.6.10-1PGDG.el7at | 2018-12-13 | redhat |
| redhat | rh-postgresql96-postgresql-0:9.6.10-1.el7 | 2018-08-27 | redhat |
| redhat | rh-postgresql95-postgresql-0:9.5.14-1.el7 | 2018-08-20 | redhat |
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Affected Packages
(19 across 17 ecosystems)
Alpine:v3.17(2)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| postgresql14 | — |
| — |
| postgresql15 | — |
| — |
Alpine:v3.18(2)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| postgresql14 | — |
| — |
| postgresql15 | — |
| — |
Alpine:v3.10(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| postgresql | — |
| — |
Alpine:v3.11(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| postgresql | — |
| — |
Alpine:v3.12(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| postgresql | — |
| — |
Alpine:v3.13(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| postgresql | — |
| — |
Alpine:v3.14(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| postgresql | — |
| — |
Alpine:v3.15(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| postgresql14 | — |
| — |
Alpine:v3.16(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| postgresql14 | — |
| — |
Alpine:v3.19(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| postgresql15 | — |
| — |
Alpine:v3.20(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| postgresql15 | — |
| — |
Alpine:v3.4(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| postgresql | — |
| — |
Alpine:v3.5(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| postgresql | — |
| — |
Alpine:v3.6(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| postgresql | — |
| — |
Alpine:v3.7(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| postgresql | — |
| — |
Alpine:v3.8(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| postgresql | — |
| — |
Alpine:v3.9(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| postgresql | — |
| — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Additional Vendor Advisories
(1)
Vendors that published advisories for this CVE beyond the curated set above. Broader coverage but minimal per-row detail — click through for the original advisory.
Data Freshness Timeline
(refreshed 6× in last 7d / 24× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
Showing the most recent 100 of 145 total refreshes for this CVE.
- 2026-10-09 20:02 UTCEPSS rescore
- 2026-10-08 16:36 UTCEPSS rescore
- 2026-10-07 23:42 UTCEPSS rescore
- 2026-10-06 15:12 UTCEPSS rescore
- 2026-10-05 17:39 UTCEPSS rescore
- 2026-10-03 14:21 UTCEPSS rescore
- 2026-10-01 19:44 UTCEPSS rescore
- 2026-09-30 14:59 UTCEPSS rescore
- 2026-09-30 09:51 UTCEG score recompute
- 2026-09-29 09:22 UTCOSV refresh
- 2026-09-28 13:45 UTCEPSS rescore
- 2026-09-27 13:40 UTCEPSS rescore
- 2026-09-26 15:53 UTCEPSS rescore
- 2026-09-24 13:59 UTCEPSS rescore
- 2026-09-24 13:59 UTCEPSS rescore
- 2026-09-19 15:36 UTCEPSS rescore
- 2026-09-18 19:22 UTCEPSS rescore
- 2026-09-17 19:22 UTCEPSS rescore
- 2026-09-16 05:06 UTCEPSS rescore
- 2026-09-15 03:05 UTCEPSS rescore
- 2026-09-13 16:42 UTCEPSS rescore
- 2026-09-12 14:56 UTCEPSS rescore
- 2026-09-11 14:47 UTCEPSS rescore
- 2026-09-11 09:32 UTCEPSS rescore
- 2026-09-09 16:53 UTCOSV refresh
Show 75 moreShow fewer
- 2026-09-07 15:57 UTCEPSS rescore
- 2026-09-06 13:43 UTCEPSS rescore
- 2026-09-05 15:24 UTCEPSS rescore
- 2026-09-04 13:56 UTCEPSS rescore
- 2026-09-04 05:02 UTCEPSS rescore
- 2026-09-02 14:07 UTCEPSS rescore
- 2026-09-01 13:49 UTCEPSS rescore
- 2026-09-01 03:32 UTCEPSS rescore
- 2026-08-28 21:36 UTCEPSS rescore
- 2026-08-27 14:21 UTCEPSS rescore
- 2026-08-26 14:42 UTCEPSS rescore
- 2026-08-25 13:44 UTCEPSS rescore
- 2026-08-22 22:07 UTCOSV refresh
- 2026-08-21 23:45 UTCEPSS rescore
- 2026-08-20 22:51 UTCEPSS rescore
- 2026-08-19 17:00 UTCEPSS rescore
- 2026-08-18 13:44 UTCEPSS rescore
- 2026-08-17 13:43 UTCEPSS rescore
- 2026-08-16 14:51 UTCEPSS rescore
- 2026-08-16 02:10 UTCEPSS rescore
- 2026-08-15 01:26 UTCEPSS rescore
- 2026-08-13 21:56 UTCEPSS rescore
- 2026-08-12 13:46 UTCEPSS rescore
- 2026-08-09 13:43 UTCEPSS rescore
- 2026-08-08 16:32 UTCEPSS rescore
- 2026-08-07 16:23 UTCEPSS rescore
- 2026-08-07 01:09 UTCOSV refresh
- 2026-08-06 13:42 UTCEPSS rescore
- 2026-08-05 19:13 UTCEPSS rescore
- 2026-08-04 15:05 UTCEPSS rescore
- 2026-08-01 04:12 UTCEPSS rescore
- 2026-07-30 16:24 UTCEPSS rescore
- 2026-07-30 01:27 UTCEPSS rescore
- 2026-07-28 15:32 UTCEPSS rescore
- 2026-07-26 14:51 UTCEPSS rescore
- 2026-07-26 14:51 UTCEPSS rescore
- 2026-07-25 14:14 UTCEPSS rescore
- 2026-07-24 14:14 UTCEPSS rescore
- 2026-07-24 14:14 UTCEPSS rescore
- 2026-07-23 14:15 UTCEPSS rescore
- 2026-07-23 01:32 UTCEG score recompute
- 2026-07-22 22:12 UTCEG score recompute
- 2026-07-22 14:05 UTCEPSS rescore
- 2026-07-21 16:48 UTCOSV refresh
- 2026-07-21 15:22 UTCEPSS rescore
- 2026-07-20 17:04 UTCEPSS rescore
- 2026-07-20 17:04 UTCEPSS rescore
- 2026-07-19 02:26 UTCEPSS rescore
- 2026-07-19 02:26 UTCEPSS rescore
- 2026-07-16 16:59 UTCEPSS rescore
- 2026-07-16 16:59 UTCEPSS rescore
- 2026-07-15 16:55 UTCEPSS rescore
- 2026-07-15 16:55 UTCEPSS rescore
- 2026-07-15 01:56 UTCEPSS rescore
- 2026-07-15 01:56 UTCEPSS rescore
- 2026-07-13 22:27 UTCEPSS rescore
- 2026-07-13 22:26 UTCEPSS rescore
- 2026-07-13 06:10 UTCEPSS rescore
- 2026-07-12 05:43 UTCEPSS rescore
- 2026-07-11 08:24 UTCEPSS rescore
- 2026-07-09 19:06 UTCEPSS rescore
- 2026-07-08 15:11 UTCEPSS rescore
- 2026-07-07 13:42 UTCEPSS rescore
- 2026-07-07 13:42 UTCEPSS rescore
- 2026-07-05 02:27 UTCEPSS rescore
- 2026-07-04 12:26 UTCOSV refresh
- 2026-07-04 06:28 UTCEPSS rescore
- 2026-07-04 06:28 UTCEPSS rescore
- 2026-07-02 16:54 UTCEPSS rescore
- 2026-07-01 15:03 UTCEPSS rescore
- 2026-07-01 15:03 UTCEPSS rescore
- 2026-06-30 23:20 UTCEPSS rescore
- 2026-06-30 23:19 UTCEPSS rescore
- 2026-06-28 04:53 UTCEPSS rescore
- 2026-06-28 04:53 UTCEPSS rescore
Related CVEs(same product + same vendor + same CWE)
Same product
10 shownAlpine:v3.4:postgresql
Same vendor
6 shownredhat:RHSA-2018:2511 · redhat:RHSA-2018:2566
Same CWE
10 shownCWE-20
Frequently asked(5)
What is CVE-2018-1058?
When was CVE-2018-1058 disclosed?
Is CVE-2018-1058 actively exploited?
What is the CVSS score of CVE-2018-1058?
How do I remediate CVE-2018-1058?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2018-1058
Is Your Infrastructure Affected by CVE-2018-1058?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.