Public Date:
1609891: CVE-2018-10915 postgresql: Certain host connection parameters defeat client-side security defenses
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 were 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.

Find out more about CVE-2018-10915 from the MITRE CVE dictionary dictionary and NIST NVD.


This vulnerability is only exploitable where an attacker can provide or influence connection parameters to a PostgreSQL client application using libpq. Contrib modules "dblink" and "postgres_fdw" are examples of applications affected by this flaw.

Red Hat Virtualization includes vulnerable versions of postgresql. However this flaw is not known to be exploitable under any supported configuration of Red Hat Virtualization. A future update may address this issue.

CVSS v3 metrics

NOTE: The following CVSS v3 metrics and score provided are preliminary and subject to review.

CVSS3 Base Score 8.5
CVSS3 Base Metrics CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
Attack Vector Network
Attack Complexity High
Privileges Required Low
User Interaction None
Scope Changed
Confidentiality High
Integrity Impact High
Availability Impact High

Affected Packages State

Platform Package State
Red Hat Virtualization 4 rh-postgresql95-postgresql Affected
Red Hat Virtualization 4 postgresql Affected
Red Hat Software Collections for Red Hat Enterprise Linux rh-postgresql10-postgresql Affected
Red Hat Software Collections for Red Hat Enterprise Linux rh-postgresql95-postgresql Affected
Red Hat Software Collections for Red Hat Enterprise Linux rh-postgresql96-postgresql Affected
Red Hat Satellite 5 rh-postgresql95-postgresql Under investigation
Red Hat Mobile Application Platform On-Premise 4 millicore Not affected
Red Hat Enterprise Linux 7 postgresql Affected
Red Hat Enterprise Linux 6 postgresql Not affected
Red Hat Enterprise Linux 5 postgresql84 Not affected
Red Hat Enterprise Linux 5 postgresql Not affected


Red Hat would like to thank the PostgreSQL project for reporting this issue. Upstream acknowledges Andrew Krasichkov as the original reporter.

External References

Last Modified

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.