What’s Vulnerable › Vulnerabilities
CVE-2018-10915
- Severity: high (CVSS 7.5 v3.0)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 5.1% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2018-08-09 · updated 2026-06-17
- Weakness: CWE-89
Description
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.
Affected products
- Canonical Ubuntu Linux: 14.04, 16.04, 18.04
- Debian Linux: 8.0, 9.0
- PostgreSQL: from 9.3.0 before 9.3.24; from 9.4.0 before 9.4.19; from 9.5.0 before 9.5.14; from 9.6.0 before 9.6.10; from 10.0 before 10.5 — fixed in 10.5, 9.3.24, 9.4.19, 9.5.14, 9.6.10
- RedHat Enterprise Linux Desktop: 7.0
- RedHat Enterprise Linux Server: 7.0
- RedHat Enterprise Linux Server Eus: 7.5
- RedHat Enterprise Linux Workstation: 7.0
- OpenStack: 12, 13
- RedHat Virtualization: 4.0
How to fix
Upgrade to a fixed version: PostgreSQL 10.5, 9.3.24, 9.4.19, 9.5.14. Check the vendor advisory for mitigations.
References
- http://lists.opensuse.org/opensuse-security-announce/2020-08/msg00043.html
- http://www.securityfocus.com/bid/105054
- http://www.securitytracker.com/id/1041446
- https://access.redhat.com/errata/RHSA-2018:2511
- https://access.redhat.com/errata/RHSA-2018:2557
- https://access.redhat.com/errata/RHSA-2018:2565
- https://access.redhat.com/errata/RHSA-2018:2566
- https://access.redhat.com/errata/RHSA-2018:2643
- https://access.redhat.com/errata/RHSA-2018:2721
- https://access.redhat.com/errata/RHSA-2018:2729
- https://access.redhat.com/errata/RHSA-2018:3816
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-10915
Get alerted when CVE-2018-10915 or the next vulnerability affects your stack