cve.bz

CVE-2018-10915 SQL Injection

7.5 highEPSS 5.1%Fix available

High (7.5). EPSS 5.1% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.0

7.5 high
CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
5.1% (unchanged from 5.1% a week ago; 5.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 93rd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-89 Improper Neutralization of Special Elements used in an SQL Command (SQL Injection)
CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
CWE-665 Improper Initialization
OWASP Top 10
A01:2025 Broken Access Control, A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2018-10915 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-10915?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-10915?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2018-10915 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
redhat:openstack12
redhat:openstack13
redhat:virtualization4.0
redhat:enterprise_linux_desktop7.0
redhat:enterprise_linux_server7.0
redhat:enterprise_linux_server_eus7.5
redhat:enterprise_linux_workstation7.0
canonical:ubuntu_linux14.04
canonical:ubuntu_linux16.04
canonical:ubuntu_linux18.04
debian:debian_linux8.0
debian:debian_linux9.0
postgresql:postgresqlfrom 9.3.0 before 9.3.24
postgresql:postgresqlfrom 9.4.0 before 9.4.19
postgresql:postgresqlfrom 9.5.0 before 9.5.14
postgresql:postgresqlfrom 9.6.0 before 9.6.10
postgresql:postgresqlfrom 10.0 before 10.5

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian8postgresql-9.49.4.19-0+deb8u1DLA-1464-1
Debian9postgresql-9.69.6.10-0+deb9u1DSA-4269-1
Ubuntu14.04:LTSpostgresql-9.39.3.24-0ubuntu0.14.04UBUNTU-CVE-2018-10915 USN-3744-1
Ubuntu16.04:LTSpostgresql-9.59.5.14-0ubuntu0.16.04UBUNTU-CVE-2018-10915 USN-3744-1
Ubuntu18.04:LTSpostgresql-1010.5-0ubuntu0.18.04UBUNTU-CVE-2018-10915 USN-3744-1
Red Hatcloudforms_managementengine:5.9::el7cfme, cfme-debuginfo0:5.9.6.5-3.el7cfRHSA-2018:3816
Red Hatcloudforms_managementengine:5.9::el7cfme-appliance, cfme-appliance-tools, cfme-appliance-common and 1 more0:5.9.6.5-1.el7cfRHSA-2018:3816
Red Hatcloudforms_managementengine:5.9::el7cfme-gemset, cfme-gemset-debuginfo, cfme-amazon-smartstate0:5.9.6.5-2.el7cfRHSA-2018:3816
Red Hatcloudforms_managementengine:5.9::el7dbus-api-service0:1.0.1-3.1.el7cfRHSA-2018:3816
Red Hatcloudforms_managementengine:5.9::el7httpd-configmap-generator0:0.2.2-1.2.el7cfRHSA-2018:3816
Red Hatcloudforms_managementengine:5.9::el7postgresql96, postgresql96-docs, postgresql96-libs and 8 more0:9.6.10-1PGDG.el7atRHSA-2018:3816
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 morepostgresql, postgresql-docs, postgresql-libs and 10 more0:9.2.24-1.el7_5RHSA-2018:2557
Red Hatenterprise_linux:7::hypervisorrhvm-appliance2:4.2-20180828.0.el7RHSA-2018:2643
Red Hatrhel_software_collections:3::el6rh-postgresql95-postgresql, rh-postgresql95-postgresql-docs, rh-postgresql95-postgresql-libs and 9 more0:9.5.14-1.el6RHSA-2018:2511
Red Hatrhel_software_collections:3::el6rh-postgresql96-postgresql, rh-postgresql96-postgresql-docs, rh-postgresql96-postgresql-libs and 12 more0:9.6.10-1.el6RHSA-2018:2566
Red Hatrhel_software_collections:3::el7rh-postgresql10-postgresql, rh-postgresql10-postgresql-docs, rh-postgresql10-postgresql-libs and 12 more0:10.5-1.el7RHSA-2018:2565
Red Hatrhel_software_collections:3::el7rh-postgresql95-postgresql, rh-postgresql95-postgresql-docs, rh-postgresql95-postgresql-libs and 9 more0:9.5.14-1.el7RHSA-2018:2511
1 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 4, Linux Enterprise Desktop 12 SP3, Linux Enterprise Server 12 SP1-LTSS and 8 morepostgresql96-libs9.6.10-3.22.1SUSE-SU-2018:3377-1
SUSEEnterprise Storage 4, Linux Enterprise Desktop 12 SP3, Linux Enterprise Server 12 SP1-LTSS and 7 morepostgresql969.6.10-3.22.7SUSE-SU-2018:3377-1
SUSEEnterprise Storage 4, Linux Enterprise Server 12 SP1-LTSS, Linux Enterprise Server 12 SP2-LTSS and 4 morepostgresql949.4.19-21.22.7SUSE-SU-2018:3909-1
SUSELinux Enterprise Module for Basesystem 15, Linux Enterprise Module for Server Applications 15postgresql1010.5-4.5.1SUSE-SU-2018:2564-1
SUSELinux Enterprise Server 11 SP4, Linux Enterprise Server for SAP Applications 11 SP4postgresql94, postgresql94-libs9.4.19-0.23.19.1SUSE-SU-2018:3287-1
SUSELinux Enterprise Software Development Kit 11 SP4postgresql94-libs9.4.19-0.23.19.1SUSE-SU-2018:3287-1
openSUSELeap 15.1postgresql12.0.1-lp151.6.9.1openSUSE-SU-2020:1227-1
openSUSELeap 15.1postgresql1010.13-lp151.2.14.1openSUSE-SU-2020:1227-1
openSUSELeap 15.1postgresql1212.3-lp151.2.1openSUSE-SU-2020:1227-1
openSUSELeap 15.1postgresql969.6.19-lp151.3.3.1openSUSE-SU-2020:1227-1
openSUSETumbleweedpostgresql1010.18-1.3openSUSE-SU-2024:11184-1
Alpinev3.5, v3.6postgresql9.6.10-r0ALPINE-CVE-2018-10915
Alpinev3.7, v3.8, v3.9 and 5 morepostgresql10.5-r0ALPINE-CVE-2018-10915
Alpinev3.15, v3.16postgresql1410.5-r0ALPINE-CVE-2018-10915
Alpinev3.17, v3.18, v3.19 and 1 morepostgresql14, postgresql1510.5-r0ALPINE-CVE-2018-10915

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Important.

Red Hat's statement

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.

This issue affects the versions of the rh-postgresql95-postgresql package as shipped with Red Hat Satellite 5.7 and 5.8. However, this flaw is not known to be exploitable under any supported scenario in Satellite 5. A future update may address this issue.

ProductPackageStateAdvisory
CloudForms Management Engine 5.9cfme-0:5.9.6.5-3.el7cfFixed 2018-12-13RHSA-2018:3816
CloudForms Management Engine 5.9cfme-amazon-smartstate-0:5.9.6.5-2.el7cfFixed 2018-12-13RHSA-2018:3816
CloudForms Management Engine 5.9cfme-appliance-0:5.9.6.5-1.el7cfFixed 2018-12-13RHSA-2018:3816
CloudForms Management Engine 5.9cfme-gemset-0:5.9.6.5-2.el7cfFixed 2018-12-13RHSA-2018:3816
CloudForms Management Engine 5.9dbus-api-service-0:1.0.1-3.1.el7cfFixed 2018-12-13RHSA-2018:3816
CloudForms Management Engine 5.9httpd-configmap-generator-0:0.2.2-1.2.el7cfFixed 2018-12-13RHSA-2018:3816
CloudForms Management Engine 5.9postgresql96-0:9.6.10-1PGDG.el7atFixed 2018-12-13RHSA-2018:3816
Red Hat Enterprise Linux 7postgresql-0:9.2.24-1.el7_5Fixed 2018-08-23RHSA-2018:2557
Red Hat Software Collections for Red Hat Enterprise Linux 6rh-postgresql95-postgresql-0:9.5.14-1.el6Fixed 2018-08-20RHSA-2018:2511
Red Hat Software Collections for Red Hat Enterprise Linux 6rh-postgresql96-postgresql-0:9.6.10-1.el6Fixed 2018-08-27RHSA-2018:2566
Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUSrh-postgresql95-postgresql-0:9.5.14-1.el6Fixed 2018-08-20RHSA-2018:2511
CloudForms Management Engine 5postgresql94Affected
Red Hat Ansible Tower 3postgresql96Affected
Red Hat Enterprise Linux 5postgresqlNot affected
Red Hat Enterprise Linux 5postgresql84Not affected
Red Hat Enterprise Linux 6postgresqlNot affected
Red Hat Enterprise Linux 8libpqNot affected
Red Hat Enterprise Linux 8postgresqlNot affected
Red Hat Mobile Application Platform 4millicoreNot affected
Red Hat Satellite 5rh-postgresql95-postgresqlWill not fix
14 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2018-10915.

Attack patterns (CAPEC)

  • CAPEC-26 Leveraging Race Conditions Likelihood: High · Severity: High
  • CAPEC-29 Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions Likelihood: High · Severity: High
  • CAPEC-7 Blind SQL Injection Likelihood: High · Severity: High
  • CAPEC-66 SQL Injection Likelihood: High · Severity: High
  • CAPEC-108 Command Line Execution through SQL Injection Likelihood: Low · Severity: Very High
  • CAPEC-109 Object Relational Mapping Injection Likelihood: Low · Severity: High
  • CAPEC-110 SQL Injection through SOAP Parameter Tampering Likelihood: High · Severity: Very High
  • CAPEC-470 Expanding Control over the Operating System from the Database Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-200 (59).

References

Check your stackJSON