Auth bypass in PostgreSQL
CVE-2018-10925
It was discovered that PostgreSQL versions before 10.5, 9.6.10, 9.5.14, 9.4.19, and 9.3.24 failed to properly check authorization on certain statements involved with "INSERT ... ON CONFLICT DO UPDATE". An attacker with "CREATE TABLE" privileges could exploit this to read arbitrary bytes server memory. If the attacker also had certain "INSERT" and limited "UPDATE" privileges to a particular table, they could exploit this to update other columns in the same table.
Vulnerability class: Broken Access Control
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.1 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N.
EPSS exploit prediction
EPSS 0.022, 83.1th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- PostgreSQL
- PostgreSQL Global Development Group — versions 9.3.24, 9.5.14, 9.6.10
- Canonical Ubuntu Linux — versions 14.04, 16.04, 18.04
- Debian Linux — versions 9.0
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 2 other repositories (lekctut/sdb-hw-13-01, pedr0alencar/vlab-metasploitable2). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- GLSA-201810-08 (vendor-advisory, Third Party Advisory)
- DSA-4269 (vendor-advisory, Third Party Advisory)
- www.securityfocus.com/bid/105052 (Third Party Advisory, VDB Entry, vdb-entry)
- RHSA-2018:2511 (vendor-advisory, Third Party Advisory)
- USN-3744-1 (vendor-advisory, Third Party Advisory)
- bugzilla.redhat.com/show_bug.cgi (Patch, Third Party Advisory, Issue Tracking)
- RHSA-2018:2566 (vendor-advisory, Third Party Advisory)
- RHSA-2018:2565 (vendor-advisory, Third Party Advisory)
- RHSA-2018:3816 (vendor-advisory, Third Party Advisory)
- www.postgresql.org/about/news/1878/ (Vendor Advisory)