MySQL < 4.0.21 mysql_real_connect() Function Remote Overflow

critical Nessus Plugin ID 14319

Synopsis

The remote database server is affected by a remote code execution vulnerability.

Description

The remote host is running a version of MySQL that is older than 4.0.21.

MySQL is a database that runs on both Linux/BSD and Windows platforms.
This version is vulnerable to a length overflow within it's mysql_real_connect() function. The overflow is due to an error in the processing of a return Domain (DNS) record. An attacker, exploiting this flaw, would need to control a DNS server, which would be queried by the MySQL server. A successful attack would give the attacker the ability to execute arbitrary code on the remote machine.

Solution

Upgrade to MySQL 4.0.21 or newer.

See Also

http://bugs.mysql.com/bug.php?id=4017

http://marc.info/?l=bugtraq&m=110140517515735&w=2

Plugin Details

Severity: Critical

ID: 14319

File Name: mysql_buff_overflow.nasl

Version: 1.24

Type: remote

Family: Databases

Published: 8/20/2004

Updated: 7/16/2018

Configuration: Enable paranoid mode

Supported Sensors: Frictionless Assessment Agent, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: Critical

Base Score: 10

Temporal Score: 7.4

Vector: CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C

Vulnerability Information

CPE: cpe:/a:mysql:mysql

Required KB Items: Settings/ParanoidReport

Exploit Ease: No known exploits are available

Patch Publication Date: 9/10/2004

Vulnerability Publication Date: 6/4/2004

Reference Information

CVE: CVE-2004-0836

BID: 10981

CWE: 119