# CVE-2018-1058

- Priority: **Routine**
- Reason: Not severe (CVSS 8.8, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2018-03-02 · Modified: 2024-09-17
- Aliases: ALPINE-CVE-2018-1058, SUSE-SU-2018:0755-1, SUSE-SU-2018:0756-1, SUSE-SU-2018:0876-1, UBUNTU-CVE-2018-1058, USN-3589-1
- Record: https://cvemate.com/vulnerability/CVE-2018-1058 · JSON: https://cvemate.com/vulnerability/CVE-2018-1058/json

## Description

```text
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.
```

## Signals

- CVSS: 8.8 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 13.098%, percentile 96.465%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 36)

- alpine postgresql (Alpine Linux): ≥ 9.3, \< 10.3-r0 \| ≥ 9.3, \< 9.5.12-r0 \| ≥ 9.3, \< 9.6.8-r0 \| ≥ 10.0, \< 10.3-r0 \| ≥ 9.5, \< 9.5.12-r0 \| ≥ 9.6, \< 9.6.8-r0
- alpine postgresql14 (Alpine Linux): \< 10.3-r0
- alpine postgresql15 (Alpine Linux): \< 10.3-r0
- canonical ubuntu\_linux: 14.04 \| 16.04 \| 17.10
- ubuntu postgresql-10 (Ubuntu): \< 10.3-1
- ubuntu postgresql-9.3 (Ubuntu): \< 9.3.22-0ubuntu0.14.04
- ubuntu postgresql-9.5 (Ubuntu): \< 9.5.12-0ubuntu0.16.04
- postgresql postgresql: ≥ 9.3, \< 9.3.22 \| ≥ 9.4, \< 9.4.17 \| ≥ 9.5, \< 9.5.12 \| ≥ 9.6, \< 9.6.8 \| ≥ 10.0, \< 10.3
- redhat cloudforms: 4.6
- suse postgresql94-libs&distro=SUSE Linux Enterprise Server 11 SP4 (SUSE Linux Enterprise): \< 9.4.17-0.23.16.1
- suse postgresql94-libs&distro=SUSE Linux Enterprise Server for SAP Applications 11 SP4 (SUSE Linux Enterprise): \< 9.4.17-0.23.16.1
- suse postgresql94-libs&distro=SUSE Linux Enterprise Software Development Kit 11 SP4 (SUSE Linux Enterprise): \< 9.4.17-0.23.16.1
- suse postgresql94-libs&distro=SUSE Linux Enterprise Software Development Kit 12 SP2 (SUSE Linux Enterprise): \< 9.4.17-21.19.1
- suse postgresql94&distro=SUSE Linux Enterprise Desktop 12 SP2 (SUSE Linux Enterprise): \< 9.4.17-21.19.1
- suse postgresql94&distro=SUSE Linux Enterprise Server 11 SP4 (SUSE Linux Enterprise): \< 9.4.17-0.23.16.1
- suse postgresql94&distro=SUSE Linux Enterprise Server 12 SP2 (SUSE Linux Enterprise): \< 9.4.17-21.19.1
- suse postgresql94&distro=SUSE Linux Enterprise Server for Raspberry Pi 12 SP2 (SUSE Linux Enterprise): \< 9.4.17-21.19.1
- suse postgresql94&distro=SUSE Linux Enterprise Server for SAP Applications 11 SP4 (SUSE Linux Enterprise): \< 9.4.17-0.23.16.1
- suse postgresql94&distro=SUSE Linux Enterprise Server for SAP Applications 12 SP2 (SUSE Linux Enterprise): \< 9.4.17-21.19.1
- suse postgresql96-libs&distro=SUSE Linux Enterprise Desktop 12 SP2 (SUSE Linux Enterprise): \< 9.6.8-3.16.1

## References

- <https://bugzilla.redhat.com/show_bug.cgi?id=1547044>
- <https://usn.ubuntu.com/3589-1/>
- <http://www.securityfocus.com/bid/103221>
- <https://www.postgresql.org/about/news/1834/>
- <https://access.redhat.com/errata/RHSA-2018:2511>
- <https://access.redhat.com/errata/RHSA-2018:2566>
- <https://access.redhat.com/errata/RHSA-2018:3816>
- <https://security.alpinelinux.org/vuln/CVE-2018-1058>
- <https://www.suse.com/support/update/announcement/2018/suse-su-20180755-1/>
- <https://bugzilla.suse.com/1081925>
- <https://www.suse.com/security/cve/CVE-2018-1058>
- <https://www.suse.com/support/update/announcement/2018/suse-su-20180756-1/>
- <https://www.suse.com/support/update/announcement/2018/suse-su-20180876-1/>
- <https://ubuntu.com/security/CVE-2018-1058>
- <https://ubuntu.com/security/notices/USN-3589-1>
- <https://www.cve.org/CVERecord?id=CVE-2018-1058>
- <https://launchpad.net/bugs/1752271>

---

Data as of 2026-12-05T03:43:53.211Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
