Improper input validation in postgresql
Priority MEDIUM 53CWE-20Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 9 fixed, 6 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and Red Hat.
Summary
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.
Why it matters now
EPSS 0.13098 96th percentileScored 2026-11-07
Fix Partial Red Hat: 3 advisoriesRed Hat: 9 fixed, 6 without a fix
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| PostgreSQL | postgresql | 9.3 - 10 | — | No fix listed | CNA |
- postgresql VendorPostgreSQL Affected 9.3 - 10 Fixed in — No fix listed CNA
CPE configurations NVD · 5
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* | 9.3 to before 9.3.22; 9.4 to before 9.4.17; 9.5 to before 9.5.12; 9.6 to before 9.6.8; 10.0 to before 10.3 | Vulnerable | PostgreSQL |
| cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:* | 14.04 | Vulnerable | Canonical |
| cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:* | 16.04 | Vulnerable | Canonical |
| cpe:2.3:o:canonical:ubuntu_linux:17.10:*:*:*:*:*:*:* | 17.10 | Vulnerable | Canonical |
| cpe:2.3:a:redhat:cloudforms:4.6:*:*:*:*:*:*:* | 4.6 | Vulnerable | Red Hat |
- cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* Versions 9.3 to before 9.3.22; 9.4 to before 9.4.17; 9.5 to before 9.5.12; 9.6 to before 9.6.8; 10.0 to before 10.3 Vulnerable ·PostgreSQL
- cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:* Versions 14.04 Vulnerable ·Canonical
- cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:* Versions 16.04 Vulnerable ·Canonical
- cpe:2.3:o:canonical:ubuntu_linux:17.10:*:*:*:*:*:*:* Versions 17.10 Vulnerable ·Canonical
- cpe:2.3:a:redhat:cloudforms:4.6:*:*:*:*:*:*:* Versions 4.6 Vulnerable ·Red Hat
Remediation
Red Hat 3 advisories
- RHSA-2018:3816 Released 2018-12-13 · Red Hat rating ImportantCloudForms 4.6.6 security, bug fix and enhancement update
- CloudForms Management Engine 5.9 cfme-5.9.6.5-3.el7cf, cfme-amazon-smartstate-5.9.6.5-2.el7cf, cfme-appliance-5.9.6.5-1.el7cf +15
- RHSA-2018:2566 Released 2018-08-27 · Red Hat rating Importantrh-postgresql96-postgresql security update
- Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) rh-postgresql96-postgresql-9.6.10-1.el6, rh-postgresql96-postgresql-contrib-9.6.10-1.el6, rh-postgresql96-postgresql-contrib-syspaths-9.6.10-1.el6 +11
- Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) rh-postgresql96-postgresql-9.6.10-1.el7, rh-postgresql96-postgresql-contrib-9.6.10-1.el7, rh-postgresql96-postgresql-contrib-syspaths-9.6.10-1.el7 +11
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.7) rh-postgresql96-postgresql-9.6.10-1.el6, rh-postgresql96-postgresql-contrib-9.6.10-1.el6, rh-postgresql96-postgresql-contrib-syspaths-9.6.10-1.el6 +11
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.3) rh-postgresql96-postgresql-9.6.10-1.el7, rh-postgresql96-postgresql-contrib-9.6.10-1.el7, rh-postgresql96-postgresql-contrib-syspaths-9.6.10-1.el7 +11
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.4) rh-postgresql96-postgresql-9.6.10-1.el7, rh-postgresql96-postgresql-contrib-9.6.10-1.el7, rh-postgresql96-postgresql-contrib-syspaths-9.6.10-1.el7 +11
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.5) rh-postgresql96-postgresql-9.6.10-1.el7, rh-postgresql96-postgresql-contrib-9.6.10-1.el7, rh-postgresql96-postgresql-contrib-syspaths-9.6.10-1.el7 +11
- Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) rh-postgresql96-postgresql-9.6.10-1.el6, rh-postgresql96-postgresql-contrib-9.6.10-1.el6, rh-postgresql96-postgresql-contrib-syspaths-9.6.10-1.el6 +11
- Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) rh-postgresql96-postgresql-9.6.10-1.el7, rh-postgresql96-postgresql-contrib-9.6.10-1.el7, rh-postgresql96-postgresql-contrib-syspaths-9.6.10-1.el7 +11
- RHSA-2018:2511 Released 2018-08-20 · Red Hat rating Importantrh-postgresql95-postgresql security update
- Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) rh-postgresql95-postgresql-9.5.14-1.el6, rh-postgresql95-postgresql-contrib-9.5.14-1.el6, rh-postgresql95-postgresql-devel-9.5.14-1.el6 +8
- Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) rh-postgresql95-postgresql-9.5.14-1.el7, rh-postgresql95-postgresql-contrib-9.5.14-1.el7, rh-postgresql95-postgresql-devel-9.5.14-1.el7 +8
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.7) rh-postgresql95-postgresql-9.5.14-1.el6, rh-postgresql95-postgresql-contrib-9.5.14-1.el6, rh-postgresql95-postgresql-devel-9.5.14-1.el6 +8
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.3) rh-postgresql95-postgresql-9.5.14-1.el7, rh-postgresql95-postgresql-contrib-9.5.14-1.el7, rh-postgresql95-postgresql-devel-9.5.14-1.el7 +8
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.4) rh-postgresql95-postgresql-9.5.14-1.el7, rh-postgresql95-postgresql-contrib-9.5.14-1.el7, rh-postgresql95-postgresql-devel-9.5.14-1.el7 +8
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.5) rh-postgresql95-postgresql-9.5.14-1.el7, rh-postgresql95-postgresql-contrib-9.5.14-1.el7, rh-postgresql95-postgresql-devel-9.5.14-1.el7 +8
- Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) rh-postgresql95-postgresql-9.5.14-1.el6, rh-postgresql95-postgresql-contrib-9.5.14-1.el6, rh-postgresql95-postgresql-devel-9.5.14-1.el6 +8
- Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) rh-postgresql95-postgresql-9.5.14-1.el7, rh-postgresql95-postgresql-contrib-9.5.14-1.el7, rh-postgresql95-postgresql-devel-9.5.14-1.el7 +8
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| CloudForms Management Engine 5 | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux 5 | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux 6 | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux 7 | Affected | No fix planned: Will not fix |
| Red Hat Satellite 5 | Affected | No fix planned: Will not fix |
| Red Hat Software Collections | Affected | No fix planned: Will not fix |
| CloudForms Management Engine 5.9 | Fixed | RHSA-2018:3816 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) | Fixed | RHSA-2018:2511, RHSA-2018:2566 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) | Fixed | RHSA-2018:2511, RHSA-2018:2566 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.7) | Fixed | RHSA-2018:2511, RHSA-2018:2566 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.3) | Fixed | RHSA-2018:2511, RHSA-2018:2566 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.4) | Fixed | RHSA-2018:2511, RHSA-2018:2566 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.5) | Fixed | RHSA-2018:2511, RHSA-2018:2566 |
| Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) | Fixed | RHSA-2018:2511, RHSA-2018:2566 |
| Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) | Fixed | RHSA-2018:2511, RHSA-2018:2566 |
Not affected: 6 products
- Red Hat Enterprise Linux 8
- Red Hat JBoss Fuse Service Works 6
- Red Hat JBoss Operations Network 3
- Red Hat Mobile Application Platform 4
- Red Hat Single Sign-On 7
- Red Hat Software Collections
Timeline
- 2026-10-02 Threatist record created from CVE-2018-1058
- 2026-10-03 Alias added: GHSA-wj3f-f94q-2r98
References
More Postgresql vulnerabilities
- TI-2019-06651 In PostgreSQL 9.3 through 11.2, the "COPY TO/FROM PROGRAM" function allows superusers and… CVSS 3.0HIGH 7.2
- TI-2017-05187 Improper authentication in postgresql CVSS 3.0CRITICAL 9.8
- TI-2020-15711 SQL injection in postgresql CVSS 3.1HIGH 8.8
- TI-2013-01675 Argument injection vulnerability in PostgreSQL 9.2.x before 9.2.4, 9.1.x before 9.1.9… CVSS 2.0MEDIUM 6.5
- TI-2007-03176 The Database Link library (dblink) in PostgreSQL 8.1 implements functions via CREATE… CVSS 2.0HIGH 9.0
- TI-2022-01423 SQL injection in postgresql CVSS 3.1HIGH 8.8
Sources
- CVE-2018-1058 · CVE Program
- CVE-2018-1058 · NVD
- FIRST EPSS
- GHSA-wj3f-f94q-2r98 · GitHub Advisory Database · CC BY 4.0
- CVE-2018-1058 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences