Improper input validation in PostgreSQL
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.
Vulnerability class: Drupalgeddon 2 (CVE-2018-7600)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.131 (96.3th percentile), scored .
Moderate probability of exploitation in the next 30 days — watch for active exploitation reports. 96th percentile — 96.3% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.131 · newest: 0.131 · change: 0.000
Affected products
- PostgreSQL
- The PostgreSQL Global Development Group — versions 9.3 - 10
- Canonical Ubuntu Linux — versions 14.04, 16.04, 17.10
- Red Hat Cloudforms — versions 4.6
Weakness classification (CWE)
Public proof-of-concept exploits
- mthamil107/DB_Audit_Research
- ccchme/CVE-2018-1058
- Imangazaliev/web-server-configuration
- J1ezds/Vulnerability-Wiki-page
- Live-Hack-CVE/CVE-2020-14349
- SexyBeast233/SecBooks
- TerraformFoundation/terraform-azurerm-db-postgresql
- Threekiii/Awesome-POC
- TerraformFoundation/terraform-azurerm-db-postgresql-flexible
- Threekiii/Vulhub-Reproduce
References
- bugzilla.redhat.com/show_bug.cgi (Third Party Advisory, Issue Tracking)
- usn.ubuntu.com/3589-1/ (vendor-advisory, Third Party Advisory)
- www.securityfocus.com/bid/103221 (VDB Entry, Third Party Advisory, vdb-entry)
- www.postgresql.org/about/news/1834/ (Vendor Advisory)
- access.redhat.com/errata/RHSA-2018:2511 (vendor-advisory, Third Party Advisory)
- access.redhat.com/errata/RHSA-2018:2566 (vendor-advisory, Third Party Advisory)
- access.redhat.com/errata/RHSA-2018:3816 (vendor-advisory, Third Party Advisory)
Frequently asked questions
- What is CVE-2018-1058?
- CVE-2018-1058 is a high-severity vulnerability in PostgreSQL, classified under Improper Input Validation. CVSS score: 8.8/10. Published 2018-03-02.
- How severe is CVE-2018-1058?
- High severity. CVSS v3 base score is 8.8 out of 10.
- Is CVE-2018-1058 known to be exploited?
- 25 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.