Home / The PostgreSQL Global Development Group / postgresql / CVE-2018-1058
CVE-2018-1058: is it exploited, and which versions of The PostgreSQL Global Development Group postgresql are affected and fixed?
CVE-2018-1058 is an improper input validation vulnerability in The PostgreSQL Global Development Group postgresql. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 08:38 UTC). Affected: postgresql 9.3 - 10 (CVE record by redhat). Fixed in 9.3.22, 9.4.17, 9.5.12, 9.6.8 and 1 more (NVD). Severity: High (8.8, CVSS 3.1, from NVD).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 08:38 UTC, CVE record November 19, 2026, 07:17 UTC and NVD November 19, 2026, 08:34 UTC.
What is 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.
From the CVE record by redhat, last updated September 17, 2024, 03:22 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| The PostgreSQL Global Development Group | postgresql | 9.3 - 10 |
As the CVE record by redhat states it, last updated September 17, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| postgresql | postgresql | from 9.3 before 9.3.22 | application |
| postgresql | postgresql | from 9.4 before 9.4.17 | application |
| postgresql | postgresql | from 9.5 before 9.5.12 | application |
| postgresql | postgresql | from 9.6 before 9.6.8 | application |
| postgresql | postgresql | from 10.0 before 10.3 | application |
| canonical | ubuntu linux | 14.04 | operating system |
| canonical | ubuntu linux | 16.04 | operating system |
| canonical | ubuntu linux | 17.10 | operating system |
| redhat | cloudforms | 4.6 | application |
NVD analysis (status Modified), last modified June 17, 2026, 01:50 UTC.
How severe is CVE-2018-1058?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 8.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | NVD |
| Medium 6.5 | CVSS 2.0 | AV:N/AC:L/Au:S/C:P/I:P/A:P | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2018-1058 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 13.1% probability of exploitation activity in the next 30 days, percentile 96.5 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-20 Improper Input Validation
Where are the vendor advisories and references?
- https://bugzilla.redhat.com/show_bug.cgi?id=1547044 x_refsource_CONFIRM
- USN-3589-1 vendor-advisory, x_refsource_UBUNTU
- 103221 vdb-entry, x_refsource_BID
- https://www.postgresql.org/about/news/1834/ x_refsource_CONFIRM
- RHSA-2018:2511 vendor-advisory, x_refsource_REDHAT
- RHSA-2018:2566 vendor-advisory, x_refsource_REDHAT
- RHSA-2018:3816 vendor-advisory, x_refsource_REDHAT
When was it published, and where is the official record?
- Reserved
- December 4, 2017
- Published
- March 2, 2018, 15:00 UTC
- CVE record updated
- September 17, 2024, 03:22 UTC by redhat
- NVD
- Modified, last modified June 17, 2026, 01:50 UTC
- Last checked
- CVE list November 19, 2026, 07:17 UTC; NVD November 19, 2026, 08:34 UTC; KEV December 3, 2026, 08:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect postgresql?
- Feb 9, 2018CVE-2018-1053 The PostgreSQL Global Development Group postgresql: insecure temporary file
- Feb 9, 2018CVE-2018-1052 The PostgreSQL Global Development Group postgresql: information disclosure
- May 12, 2017CVE-2017-7486 The PostgreSQL Global Development Group PostgreSQL: credentials insufficiently protected
- May 12, 2017CVE-2017-7485 The PostgreSQL Global Development Group PostgreSQL: detection of Error Condition Without Action
- May 12, 2017CVE-2017-7484 The PostgreSQL Global Development Group PostgreSQL: improper authorization
Questions about CVE-2018-1058
Is CVE-2018-1058 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 08:38 UTC. FIRST's EPSS gives it a 13.1% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of The PostgreSQL Global Development Group postgresql are affected by CVE-2018-1058?
postgresql 9.3 - 10, per the CVE record by redhat. The tables above give every range the sources list.
Which version fixes CVE-2018-1058?
9.3.22, 9.4.17, 9.5.12, 9.6.8 and 10.3, per the NVD. Check the vendor's advisory before you rely on it.
How severe is CVE-2018-1058?
High (8.8, CVSS 3.1, from NVD). The severity table above shows each score with its source.
Where is the official record of CVE-2018-1058?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.