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.
Conclusion & alert: CVE-2018-1058 is rated High Risk (69.2/100): CVSS High severity, with high exploitation likelihood (EPSS 81.25%, 99th percentile). Core evidence: EPSS ranks this CVE among the most likely to be exploited in the near term. Mandatory action: High exploitation likelihood—assess exposure and prioritize remediation.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-05-30 | 82.01% | 81.25% | -0.76% |
| 2 | 2026-05-22 | 83.77% | 82.01% | -1.76% |
| 3 | 2026-05-20 | — | 83.77% | — |
Full EPSS history (50 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 8.8 | 3.1 | HIGH |
|
2.8 | 5.9 | [email protected] |
| 6.5 | 2.0 | MEDIUM |
|
8.0 | 6.4 | [email protected] |
| vendor | priority | summary | link |
|---|---|---|---|
alpine
|
high | CVE-2018-1058: 3 source package rows (postgresql, postgresql14, postgresql15); 18 state rows across 11 repos (3.10-main, 3.11-main, 3.12-main, 3.17-main, 3.18-main, 3.19-community, 3.19-main, 3.20-community, 3.20-main, edge-community, edge-main); fixed 16, open 2. | https://security.alpinelinux.org/vuln/CVE-2018-1058 |
redhat
|
medium | — | https://access.redhat.com/security/cve/CVE-2018-1058 |
suse
|
medium | CVE-2018-1058 severity moderate: SUSE including 130 source package names (libecpg6, libecpg6-10.10-1.15.1, …), 302 product×package rows across 43 product lines (SUSE Linux Enterprise Desktop 12 SP2, SUSE Linux Enterprise Desktop 12 SP3, … (43 product lines)): Fixed 181, Known Not Affected 121. | https://www.suse.com/security/cve/CVE-2018-1058/ |
ubuntu
|
medium | CVE-2018-1058 medium priority: Ubuntu including 5 source packages (postgresql-10, postgresql-9.1, postgresql-9.3, postgresql-9.5, postgresql-9.6), 35 status rows across 7 suites (artful, bionic, cosmic, disco, trusty, upstream, xenial): DNE 25, released 6, needs-triage 4. | https://ubuntu.com/security/CVE-2018-1058 |
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| postgresql | postgresql | >= 9.3, < 9.3.22 | cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* |
| postgresql | postgresql | >= 9.4, < 9.4.17 | cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* |
| postgresql | postgresql | >= 9.5, < 9.5.12 | cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* |
| postgresql | postgresql | >= 9.6, < 9.6.8 | cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* |
| postgresql | postgresql | >= 10.0, < 10.3 | cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* |
| canonical | ubuntu_linux | 14.04 | cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:* |
| canonical | ubuntu_linux | 16.04 | cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:* |
| canonical | ubuntu_linux | 17.10 | cpe:2.3:o:canonical:ubuntu_linux:17.10:*:*:*:*:*:*:* |
| redhat | cloudforms | 4.6 | cpe:2.3:a:redhat:cloudforms:4.6:*:*:*:*:*:*:* |
| URL | Tags |
|---|---|
| http://www.securityfocus.com/bid/103221 | Third Party Advisory VDB Entry |
| https://access.redhat.com/errata/RHSA-2018:2511 | Third Party Advisory |
| https://access.redhat.com/errata/RHSA-2018:2566 | Third Party Advisory |
| https://access.redhat.com/errata/RHSA-2018:3816 | Third Party Advisory |
| https://bugzilla.redhat.com/show_bug.cgi?id=1547044 | Issue Tracking Third Party Advisory |
| https://usn.ubuntu.com/3589-1/ | Third Party Advisory |
| https://www.postgresql.org/about/news/1834/ | Vendor Advisory |