CVE-2018-10915: canonical ubuntu_linux SQL Injection
Vulnerability summary
CVE-2018-10915 is a high (CVSS 8.5) SQL Injection vulnerability in canonical ubuntu_linux. EPSS estimates a 5.09% chance of exploitation in the next 30 days, higher than 92.2% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 12 · Related 5Timeline
- 09-08-2018PublishedVulnerability first disclosed.
- 05-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
6 scores · 5 sources · 2 versions- NVDNIST7.5HighCVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:HDiffers
- OSV · AlpineEcosystem advisory · calculated7.5HighCVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:HDiffers
- OSV · Red hatEcosystem advisory · calculated8.5HighCVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
- OSV · UbuntuEcosystem advisory · calculated8.5HighCVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
EPSS trend
Probability
5.09%
Chance of exploitation in the next 30 days
Percentile
92%
Versus all other CVEs
30-day change
-0.07 pp
From 5.15% on 18-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-89Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.
- CWE-200Exposure of Sensitive Information to an Unauthorized ActorThe product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.
- CWE-665Improper InitializationThe product does not initialize or incorrectly initializes a resource, which might leave the resource in an unexpected state when it is accessed or used.
Affected systems
Redhat19 products
- enterprise_linux_desktop7.0
- enterprise_linux_server7.0
- enterprise_linux_server_eus7.5
- enterprise_linux_workstation7.0
- openstack12 | 13
Suse12 products
- postgresql94-libs&distro=SUSE Linux Enterprise Server 11 SP4< 9.4.19-0.23.19.1
- postgresql94-libs&distro=SUSE Linux Enterprise Server for SAP Applications 11 SP4< 9.4.19-0.23.19.1
- postgresql94-libs&distro=SUSE Linux Enterprise Software Development Kit 11 SP4< 9.4.19-0.23.19.1
- postgresql94&distro=SUSE Enterprise Storage 4< 9.4.19-21.22.7
- postgresql94&distro=SUSE Linux Enterprise Server 11 SP4< 9.4.19-0.23.19.1
Alpine3 products
- postgresql≥ 9.3.0, < 10.5-r0 | ≥ 9.3.0, < 9.6.10-r0
- postgresql14< 10.5-r0
- postgresql15< 10.5-r0
Ubuntu3 products
- postgresql-10< 10.5-0ubuntu0.18.04
- postgresql-9.3< 9.3.24-0ubuntu0.14.04
- postgresql-9.5< 9.5.14-0ubuntu0.16.04
Debian2 products
- postgresql-9.4< 9.4.19-0+deb8u1
- debian_linuxEOL8.0 | 9.0
Canonical1 product
- ubuntu_linuxEOL14.04 | 16.04 | 18.04
Postgresql1 product
- postgresql≥ 9.3.0, < 9.3.24 | ≥ 9.4.0, < 9.4.19 | ≥ 9.5.0, < 9.5.14 | ≥ 9.6.0, < 9.6.10 | ≥ 10.0, < 10.5
Postgresql global development group1 product
- postgresql10.5 | 9.6.10 | 9.5.14 | 9.4.19 | 9.3.24
8 vendors · 42 products
References
30 links- lists.debian.org/debian-lts-announce/2018/08/msg00012.htmlMailing ListX Refsource MLISTThird Party Advisory
Show all 30 references
- bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-10915X Refsource CONFIRMIssue TrackingPatchThird Party Advisory
- access.redhat.com/errata/RHSA-2018:2557Vendor AdvisoryX Refsource REDHATThird Party AdvisoryAdvisory