SQL Injection in PostgreSQL
CVE-2018-10915
A vulnerability was found in libpq, the default PostgreSQL client library where libpq failed to properly reset its internal state between connections. If an affected version of libpq was used with "host" or "hostaddr" connection parameters from untrusted input, attackers could bypass client-side connection security features, obtain access to higher privileged connections or potentially cause other impact through SQL injection, by causing the PQescape() functions to malfunction. Postgresql versions before 10.5, 9.6.10, 9.5.14, 9.4.19, and 9.3.24 are affected.
Vulnerability class: SQL Injection
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.5 (High). Vector: CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.051, 92.5th 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 8.0, 9.0
- Red Hat Enterprise Linux Desktop — versions 7.0
- Red Hat Enterprise Linux Server — versions 7.0
- Red Hat Enterprise Linux Server Eus — versions 7.5
- Red Hat Enterprise Linux Workstation — versions 7.0
- Red Hat OpenStack — versions 12, 13
- Red Hat Virtualization — versions 4.0
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 3 other repositories (brunoh6/postgresql-cve-exploitation, 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)
- RHSA-2018:2729 (vendor-advisory, Third Party Advisory)
- DSA-4269 (vendor-advisory, Third Party Advisory)
- RHSA-2018:2643 (vendor-advisory, Third Party Advisory)
- RHSA-2018:2721 (vendor-advisory, Third Party Advisory)
- RHSA-2018:2511 (vendor-advisory, Third Party Advisory)
- USN-3744-1 (vendor-advisory, Third Party Advisory)
- [debian-lts-announce] 20180815 [SECURITY] [DLA 1464-1] postgresql-9.4 security update (mailing-list, Third Party Advisory)
- RHSA-2018:2566 (vendor-advisory, Third Party Advisory)
- RHSA-2018:2565 (vendor-advisory, Third Party Advisory)