{"id":"UBUNTU-CVE-2018-2640","details":"Vulnerability in the MySQL Server component of Oracle MySQL (subcomponent: Server: Optimizer). Supported versions that are affected are 5.5.58 and prior, 5.6.38 and prior and 5.7.20 and prior. Easily exploitable vulnerability allows low privileged attacker with network access via multiple protocols to compromise MySQL Server. Successful attacks of this vulnerability can result in unauthorized ability to cause a hang or frequently repeatable crash (complete DOS) of MySQL Server. CVSS 3.0 Base Score 6.5 (Availability impacts). CVSS Vector: (CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H).","modified":"2026-02-04T04:40:15.615854Z","published":"2018-01-17T00:00:00Z","related":["USN-3537-1","USN-3537-2"],"upstream":["CVE-2018-2640"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2018-2640"},{"type":"REPORT","url":"http://www.oracle.com/technetwork/security-advisory/cpujan2018-3236628.html#AppendixMSQL"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-3537-1"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-3537-2"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2018-2640"}],"affected":[{"package":{"name":"mysql-5.5","ecosystem":"Ubuntu:14.04:LTS","purl":"pkg:deb/ubuntu/mysql-5.5@5.5.59-0ubuntu0.14.04.1?arch=source&distro=trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.5.59-0ubuntu0.14.04.1"}]}],"versions":["5.5.32-0ubuntu7","5.5.34-0ubuntu1","5.5.34-0ubuntu2","5.5.35-0ubuntu1","5.5.35+dfsg-1ubuntu1","5.5.37-0ubuntu0.14.04.1","5.5.38-0ubuntu0.14.04.1","5.5.40-0ubuntu0.14.04.1","5.5.41-0ubuntu0.14.04.1","5.5.43-0ubuntu0.14.04.1","5.5.44-0ubuntu0.14.04.1","5.5.46-0ubuntu0.14.04.2","5.5.47-0ubuntu0.14.04.1","5.5.49-0ubuntu0.14.04.1","5.5.50-0ubuntu0.14.04.1","5.5.52-0ubuntu0.14.04.1","5.5.53-0ubuntu0.14.04.1","5.5.54-0ubuntu0.14.04.1","5.5.55-0ubuntu0.14.04.1","5.5.57-0ubuntu0.14.04.1","5.5.58-0ubuntu0.14.04.1"],"ecosystem_specific":{"binaries":[{"binary_name":"libmysqlclient-dev","binary_version":"5.5.59-0ubuntu0.14.04.1"},{"binary_name":"libmysqlclient18","binary_version":"5.5.59-0ubuntu0.14.04.1"},{"binary_name":"libmysqld-dev","binary_version":"5.5.59-0ubuntu0.14.04.1"},{"binary_name":"libmysqld-pic","binary_version":"5.5.59-0ubuntu0.14.04.1"},{"binary_name":"mysql-client","binary_version":"5.5.59-0ubuntu0.14.04.1"},{"binary_name":"mysql-client-5.5","binary_version":"5.5.59-0ubuntu0.14.04.1"},{"binary_name":"mysql-client-core-5.5","binary_version":"5.5.59-0ubuntu0.14.04.1"},{"binary_name":"mysql-common","binary_version":"5.5.59-0ubuntu0.14.04.1"},{"binary_name":"mysql-server","binary_version":"5.5.59-0ubuntu0.14.04.1"},{"binary_name":"mysql-server-5.5","binary_version":"5.5.59-0ubuntu0.14.04.1"},{"binary_name":"mysql-server-core-5.5","binary_version":"5.5.59-0ubuntu0.14.04.1"},{"binary_name":"mysql-source-5.5","binary_version":"5.5.59-0ubuntu0.14.04.1"},{"binary_name":"mysql-testsuite","binary_version":"5.5.59-0ubuntu0.14.04.1"},{"binary_name":"mysql-testsuite-5.5","binary_version":"5.5.59-0ubuntu0.14.04.1"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-2640.json"}},{"package":{"name":"mysql-5.7","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/mysql-5.7@5.7.21-0ubuntu0.16.04.1?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.7.21-0ubuntu0.16.04.1"}]}],"versions":["5.7.11-0ubuntu4","5.7.11-0ubuntu5","5.7.11-0ubuntu6","5.7.12-0ubuntu1","5.7.12-0ubuntu1.1","5.7.13-0ubuntu0.16.04.2","5.7.15-0ubuntu0.16.04.1","5.7.16-0ubuntu0.16.04.1","5.7.17-0ubuntu0.16.04.1","5.7.17-0ubuntu0.16.04.2","5.7.18-0ubuntu0.16.04.1","5.7.19-0ubuntu0.16.04.1","5.7.20-0ubuntu0.16.04.1"],"ecosystem_specific":{"binaries":[{"binary_name":"libmysqlclient-dev","binary_version":"5.7.21-0ubuntu0.16.04.1"},{"binary_name":"libmysqlclient20","binary_version":"5.7.21-0ubuntu0.16.04.1"},{"binary_name":"libmysqld-dev","binary_version":"5.7.21-0ubuntu0.16.04.1"},{"binary_name":"mysql-client","binary_version":"5.7.21-0ubuntu0.16.04.1"},{"binary_name":"mysql-client-5.7","binary_version":"5.7.21-0ubuntu0.16.04.1"},{"binary_name":"mysql-client-core-5.7","binary_version":"5.7.21-0ubuntu0.16.04.1"},{"binary_name":"mysql-common","binary_version":"5.7.21-0ubuntu0.16.04.1"},{"binary_name":"mysql-server","binary_version":"5.7.21-0ubuntu0.16.04.1"},{"binary_name":"mysql-server-5.7","binary_version":"5.7.21-0ubuntu0.16.04.1"},{"binary_name":"mysql-server-core-5.7","binary_version":"5.7.21-0ubuntu0.16.04.1"},{"binary_name":"mysql-source-5.7","binary_version":"5.7.21-0ubuntu0.16.04.1"},{"binary_name":"mysql-testsuite","binary_version":"5.7.21-0ubuntu0.16.04.1"},{"binary_name":"mysql-testsuite-5.7","binary_version":"5.7.21-0ubuntu0.16.04.1"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-2640.json"}},{"package":{"name":"percona-server-5.6","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/percona-server-5.6@5.6.22-rel71.0-0ubuntu4.1?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.6.22-rel71.0-0ubuntu2","5.6.22-rel71.0-0ubuntu4","5.6.22-rel71.0-0ubuntu4.1"],"ecosystem_specific":{"binaries":[{"binary_name":"percona-server-server","binary_version":"5.6.22-rel71.0-0ubuntu4.1"},{"binary_name":"percona-server-server-5.6","binary_version":"5.6.22-rel71.0-0ubuntu4.1"},{"binary_name":"percona-server-source-5.6","binary_version":"5.6.22-rel71.0-0ubuntu4.1"},{"binary_name":"percona-server-test","binary_version":"5.6.22-rel71.0-0ubuntu4.1"},{"binary_name":"percona-server-test-5.6","binary_version":"5.6.22-rel71.0-0ubuntu4.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-2640.json"}},{"package":{"name":"percona-xtradb-cluster-5.6","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/percona-xtradb-cluster-5.6@5.6.37-26.21-0ubuntu0.16.04.2?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.6.21-25.8-0ubuntu2","5.6.21-25.8-0ubuntu3","5.6.21-25.8-0ubuntu3.1","5.6.21-25.8-0ubuntu3.2","5.6.34-26.19-0ubuntu0.16.04.1","5.6.34-26.19-0ubuntu0.16.04.2","5.6.37-26.21-0ubuntu0.16.04.1","5.6.37-26.21-0ubuntu0.16.04.2"],"ecosystem_specific":{"binaries":[{"binary_name":"percona-xtradb-cluster-server","binary_version":"5.6.37-26.21-0ubuntu0.16.04.2"},{"binary_name":"percona-xtradb-cluster-server-5.6","binary_version":"5.6.37-26.21-0ubuntu0.16.04.2"},{"binary_name":"percona-xtradb-cluster-source-5.6","binary_version":"5.6.37-26.21-0ubuntu0.16.04.2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-2640.json"}},{"package":{"name":"mysql-5.7","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/mysql-5.7@5.7.21-1ubuntu1?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.7.21-1ubuntu1"}]}],"versions":["5.7.19-0ubuntu1","5.7.20-0ubuntu0.17.10.1","5.7.20-1ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_name":"libmysqlclient-dev","binary_version":"5.7.21-1ubuntu1"},{"binary_name":"libmysqlclient20","binary_version":"5.7.21-1ubuntu1"},{"binary_name":"libmysqld-dev","binary_version":"5.7.21-1ubuntu1"},{"binary_name":"mysql-client","binary_version":"5.7.21-1ubuntu1"},{"binary_name":"mysql-client-5.7","binary_version":"5.7.21-1ubuntu1"},{"binary_name":"mysql-client-core-5.7","binary_version":"5.7.21-1ubuntu1"},{"binary_name":"mysql-server","binary_version":"5.7.21-1ubuntu1"},{"binary_name":"mysql-server-5.7","binary_version":"5.7.21-1ubuntu1"},{"binary_name":"mysql-server-core-5.7","binary_version":"5.7.21-1ubuntu1"},{"binary_name":"mysql-source-5.7","binary_version":"5.7.21-1ubuntu1"},{"binary_name":"mysql-testsuite","binary_version":"5.7.21-1ubuntu1"},{"binary_name":"mysql-testsuite-5.7","binary_version":"5.7.21-1ubuntu1"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-2640.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"},{"type":"Ubuntu","score":"medium"}]}