CVE-2018-1058: A flaw was found in the way Postgresql allowed a user to modify the behavior of a query for other users.

CVE-2018-1058 affects 60 listed versions of PostgreSQL in the Dawnsentry catalogue.

8.8CVSS high
None knownexploitation
13%EPSS (next 30 days)
2 March 2018published

Affected products and versions

The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.

PostgreSQL

60 of 250 listed versions are affected. Fixed in 10.3, 9.5.12, 9.4.17, 9.3.22. The newest release, 19.0, is not affected.

10.2 10.1 10.0 9.6.24 9.6.23 9.6.22 9.6.21 9.6.20 9.6.19 9.6.18 9.6.17 9.6.16 9.6.15 9.6.14 9.6.13 9.6.12 9.6.11 9.6.10 9.5.25 9.5.24 9.5.23 9.5.22 9.5.21 9.5.20 9.5.19 9.5.18 9.5.17 9.5.16 9.5.15 9.5.14 9.5.13 9.5.11 9.4.26 9.4.25 9.4.24 9.4.23 9.4.22 9.4.21 9.4.20 9.4.19 9.4.18 9.4.16 9.4.15 9.4.14 9.4.13 9.4.12 9.3.25 9.3.24 9.3.23 9.3.21 9.3.20 9.3.19 9.3.18 9.3.17 9.3.16 9.3.15 9.3.14 9.3.13 9.3.12 9.3.11

What it is

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.

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (NVD)

Published by Red Hat on 2 March 2018. Last changed 17 June 2026.

Sources

Check one version you run: look CVE-2018-1058 up, or pick a product and version in the quick lookup.

Updated 1 December 2026.