CVE-2018-1058

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.

Published: 2018-03-02 Last update: 2024-11-21 Assigner: [email protected] Source: [email protected]

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.

Exploit prediction scoring system (EPSS) score for CVE-2018-1058

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)

Common vulnerability scoring system (CVSS) metrics for CVE-2018-1058

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
8.8 3.1 HIGH
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:L)
A normal user session is enough; they don’t have to be admin.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.
2.8 5.9 [email protected]
6.5 2.0 MEDIUM
AV:N/AC:L/Au:S/C:P/I:P/A:P Click to expand
Access vector (AV:N)
Can be exploited remotely over network reachability.
Access complexity (AC:L)
Exploitation conditions are straightforward and predictable.
Authentication (AU:S)
A single authentication is required.
Confidentiality impact (C:P)
Partial confidentiality impact.
Integrity impact (I:P)
Partial integrity impact.
Availability impact (A:P)
Partial availability impact.
8.0 6.4 [email protected]

Weakness enumeration for CVE-2018-1058

OS Trackers for CVE-2018-1058

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

Affected software / configurations for 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:*:*:*:*:*:*:*

References for CVE-2018-1058

cvelogic Threat Intelligence