CVE-2018-10915: Infoleak

Published Jul 30, 2018
·
Updated

A flaw was found in PostgreSQL. The chief PostgreSQL client library, libpq, does not adequately reset its internal state before each connection attempt. When one requests a connection using a "host" or "hostaddr" connection parameter provided by an untrusted party, that party can thwart three security-relevant features of the client. First, they can cause PQconnectionUsedPassword() to erroneously return true. Users of contrib module "dblink" or "postgresfdw" can leverage that to use server-side login credentials that they should not be able to use. Second, attackers can cause the PQescape() family of functions to malfunction, permitting SQL injection in "postgresfdw" and likely in other applications. Third, attackers can cause sslmode=prefer to not attempt SSL/TLS at all

Other sources

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.

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.

Affected Software

38 affected componentsFixes available
redhat/cfme<0:5.9.6.5-3.el7cf
0:5.9.6.5-3.el7cf
redhat/cfme-amazon-smartstate<0:5.9.6.5-2.el7cf
0:5.9.6.5-2.el7cf
redhat/cfme-appliance<0:5.9.6.5-1.el7cf
0:5.9.6.5-1.el7cf
redhat/cfme-gemset<0:5.9.6.5-2.el7cf
0:5.9.6.5-2.el7cf
redhat/dbus-api-service<0:1.0.1-3.1.el7cf
0:1.0.1-3.1.el7cf
redhat/httpd-configmap-generator<0:0.2.2-1.2.el7cf
0:0.2.2-1.2.el7cf
redhat/postgresql96<0:9.6.10-1PGDG.el7a
0:9.6.10-1PGDG.el7a
redhat/postgresql<0:9.2.24-1.el7_5
0:9.2.24-1.el7_5
redhat/rh-postgresql95-postgresql<0:9.5.14-1.el6
0:9.5.14-1.el6
redhat/rh-postgresql96-postgresql<0:9.6.10-1.el6
0:9.6.10-1.el6
redhat/rh-postgresql95-postgresql<0:9.5.14-1.el7
0:9.5.14-1.el7
redhat/rh-postgresql10-postgresql<0:10.5-1.el7
0:10.5-1.el7
redhat/rh-postgresql96-postgresql<0:9.6.10-1.el7
0:9.6.10-1.el7
redhat/rhvm-appliance<0:4.2-20180828.0.el7
0:4.2-20180828.0.el7
debian/postgresql-10
debian/postgresql-9.1
redhat/postgresql<10.5
10.5
redhat/postgresql<9.6.10
9.6.10
redhat/postgresql<9.5.14
9.5.14
redhat/postgresql<9.4.19
9.4.19
redhat/postgresql<9.3.24
9.3.24
redhat Openstack=12
redhat Openstack=13
redhat Virtualization=4.0
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
Canonical Ubuntu Linux=14.04
Canonical Ubuntu Linux=16.04
Canonical Ubuntu Linux=18.04
Debian Debian Linux=8.0
Debian Debian Linux=9.0
PostgreSQL postgresql>=9.3.0<9.3.24
PostgreSQL postgresql>=9.4.0<9.4.19
PostgreSQL postgresql>=9.5.0<9.5.14
PostgreSQL postgresql>=9.6.0<9.6.10
PostgreSQL postgresql>=10.0<10.5

Event History

Aug 9, 2018
CVE Published
12:00 AM
CVE Published
via MITRE·08:00 PM
Data Sourced
via MITRE·08:00 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:29 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jan 11, 2024
Data Sourced
via Launchpad·10:46 PM
Description
Feb 20, 2026
Data Sourced
via Ubuntu·04:00 PM
RemedyDescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the vulnerability ID of this vulnerability?

The vulnerability ID is CVE-2018-10915.

2

What is the severity level of vulnerability CVE-2018-10915?

The severity level of vulnerability CVE-2018-10915 is high with a CVSS score of 8.5.

3

Which software versions are affected by CVE-2018-10915?

The affected software versions are PostgreSQL versions 9.3.0 to 9.3.24, 9.4.0 to 9.4.19, 9.5.0 to 9.5.14, 9.6.0 to 9.6.10, and 10.0 to 10.5.

4

How can I fix vulnerability CVE-2018-10915?

To fix vulnerability CVE-2018-10915, you need to update to PostgreSQL versions 9.3.25, 9.4.20, 9.5.15, 9.6.11, or 10.6, depending on the version you are using.

5

Where can I find more information about vulnerability CVE-2018-10915?

You can find more information about vulnerability CVE-2018-10915 on the PostgreSQL website and the Red Hat Bugzilla page.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203