__________________________________________________________ The U.S. Department of Energy Computer Incident Advisory Capability ___ __ __ _ ___ / | /_\ / \___ __|__ / \ \___ __________________________________________________________ INFORMATION BULLETIN mysql -- insecure temporary file [DSA-783-1] August 24, 2005 16:00 GMT Number P-289 [REVISED 05 Oct 2005] ______________________________________________________________________________ PROBLEM: A temporary file vulnerability in a script accompanied with MySQL. PLATFORM: Debian GNU/Linux 3.1 (sarge) Red Hat Desktop (v. 4) Red Hat Enterprise Linux AS, ES, WS (v. 4) DAMAGE: An attacker could execute arbitrary SQL commands when the server is installed or updated. SOLUTION: Upgrade to current version. ______________________________________________________________________________ VULNERABILITY The risk is LOW. Due to a temporary file vulnerability in a ASSESSMENT: script accompanied with MySQL that allows an attacker to execute arbitrary SQL commands when the server is installed or updated. ______________________________________________________________________________ LINKS: CIAC BULLETIN: http://www.ciac.org/ciac/bulletins/p-289.shtml ORIGINAL BULLETIN: http://www.debian.org/security/2005/dsa-783 ADDITIONAL LINK: Red Hat Security Advisory RSHA-2005:685-5 https://rhn.redhat.com/errata/RHSA-2005-685.html CVE/CAN: http://www.cve.mitre.org/cgi-bin/cvename.cgi?name= CAN-2005-1636 ______________________________________________________________________________ REVISION HISTORY: 10/05/2005 - added a link to Red Hat Security Advisory RHSA-2005:685 that provides updated mysql packages for Red Hat v. 4. [***** Start DSA-783-1 *****] Debian Security Advisory DSA-783-1 mysql -- insecure temporary file Date Reported: 24 Aug 2005 Affected Packages: mysql-dfsg-4.1 Vulnerable: Yes Security database references: In the Debian bugtracking system: Bug 319526. In the Bugtraq database (at SecurityFocus): BugTraq ID 13660. In Mitre's CVE dictionary: CAN-2005-1636. More information: Eric Romang discovered a temporary file vulnerability in a script accompanied with MySQL, a popular database, that allows an attacker to execute arbitrary SQL commands when the server is installed or updated. The old stable distribution (woody) as well as mysql-dfsg are not affected by this problem. For the stable distribution (sarge) this problem has been fixed in version 4.1_4.1.11a-4sarge1. For the unstable distribution (sid) this problem has been fixed in version 4.1.12 for mysql-dfsg-4.1 and 5.0.11beta-3 of mysql-dfsg-5.0. We recommend that you upgrade your mysql packages. Fixed in: Debian GNU/Linux 3.1 (sarge) Source: http://security.debian.org/pool/updates/main/m/mysql-dfsg-4.1/ mysql-dfsg-4.1_4.1.11a-4sarge1.dsc http://security.debian.org/pool/updates/main/m/mysql-dfsg-4.1/ mysql-dfsg-4.1_4.1.11a-4sarge1.diff.gz http://security.debian.org/pool/updates/main/m/mysql-dfsg-4.1/ mysql-dfsg-4.1_4.1.11a.orig.tar.gz Architecture-independent component: http://security.debian.org/pool/updates/main/m/mysql-dfsg-4.1/ mysql-common-4.1_4.1.11a-4sarge1_all.deb Alpha: http://security.debian.org/pool/updates/main/m/mysql-dfsg-4.1/ libmysqlclient14_4.1.11a-4sarge1_alpha.deb http://security.debian.org/pool/updates/main/m/mysql-dfsg-4.1/ libmysqlclient14-dev_4.1.11a-4sarge1_alpha.deb http://security.debian.org/pool/updates/main/m/mysql-dfsg-4.1/ mysql-client-4.1_4.1.11a-4sarge1_alpha.deb http://security.debian.org/pool/updates/main/m/mysql-dfsg-4.1/ mysql-server-4.1_4.1.11a-4sarge1_alpha.deb AMD64: http://security.debian.org/pool/updates/main/m/mysql-dfsg-4.1/ libmysqlclient14_4.1.11a-4sarge1_amd64.deb http://security.debian.org/pool/updates/main/m/mysql-dfsg-4.1/ libmysqlclient14-dev_4.1.11a-4sarge1_amd64.deb http://security.debian.org/pool/updates/main/m/mysql-dfsg-4.1/ mysql-client-4.1_4.1.11a-4sarge1_amd64.deb http://security.debian.org/pool/updates/main/m/mysql-dfsg-4.1/ mysql-server-4.1_4.1.11a-4sarge1_amd64.deb ARM: http://security.debian.org/pool/updates/main/m/mysql-dfsg-4.1/ libmysqlclient14_4.1.11a-4sarge1_arm.deb http://security.debian.org/pool/updates/main/m/mysql-dfsg-4.1/ libmysqlclient14-dev_4.1.11a-4sarge1_arm.deb http://security.debian.org/pool/updates/main/m/mysql-dfsg-4.1/ mysql-client-4.1_4.1.11a-4sarge1_arm.deb http://security.debian.org/pool/updates/main/m/mysql-dfsg-4.1/ mysql-server-4.1_4.1.11a-4sarge1_arm.deb Intel IA-32: http://security.debian.org/pool/updates/main/m/mysql-dfsg-4.1/ libmysqlclient14_4.1.11a-4sarge1_i386.deb http://security.debian.org/pool/updates/main/m/mysql-dfsg-4.1/ libmysqlclient14-dev_4.1.11a-4sarge1_i386.deb http://security.debian.org/pool/updates/main/m/mysql-dfsg-4.1/ mysql-client-4.1_4.1.11a-4sarge1_i386.deb http://security.debian.org/pool/updates/main/m/mysql-dfsg-4.1/ mysql-server-4.1_4.1.11a-4sarge1_i386.deb Intel IA-64: http://security.debian.org/pool/updates/main/m/mysql-dfsg-4.1/ libmysqlclient14_4.1.11a-4sarge1_ia64.deb http://security.debian.org/pool/updates/main/m/mysql-dfsg-4.1/ libmysqlclient14-dev_4.1.11a-4sarge1_ia64.deb http://security.debian.org/pool/updates/main/m/mysql-dfsg-4.1/ mysql-client-4.1_4.1.11a-4sarge1_ia64.deb http://security.debian.org/pool/updates/main/m/mysql-dfsg-4.1/ mysql-server-4.1_4.1.11a-4sarge1_ia64.deb HPPA: http://security.debian.org/pool/updates/main/m/mysql-dfsg-4.1/ libmysqlclient14_4.1.11a-4sarge1_hppa.deb http://security.debian.org/pool/updates/main/m/mysql-dfsg-4.1/ libmysqlclient14-dev_4.1.11a-4sarge1_hppa.deb http://security.debian.org/pool/updates/main/m/mysql-dfsg-4.1/ mysql-client-4.1_4.1.11a-4sarge1_hppa.deb http://security.debian.org/pool/updates/main/m/mysql-dfsg-4.1/ mysql-server-4.1_4.1.11a-4sarge1_hppa.deb Motorola 680x0: http://security.debian.org/pool/updates/main/m/mysql-dfsg-4.1/ libmysqlclient14_4.1.11a-4sarge1_m68k.deb http://security.debian.org/pool/updates/main/m/mysql-dfsg-4.1/ libmysqlclient14-dev_4.1.11a-4sarge1_m68k.deb http://security.debian.org/pool/updates/main/m/mysql-dfsg-4.1/ mysql-client-4.1_4.1.11a-4sarge1_m68k.deb http://security.debian.org/pool/updates/main/m/mysql-dfsg-4.1/ mysql-server-4.1_4.1.11a-4sarge1_m68k.deb Big endian MIPS: http://security.debian.org/pool/updates/main/m/mysql-dfsg-4.1/ libmysqlclient14_4.1.11a-4sarge1_mips.deb http://security.debian.org/pool/updates/main/m/mysql-dfsg-4.1/ libmysqlclient14-dev_4.1.11a-4sarge1_mips.deb http://security.debian.org/pool/updates/main/m/mysql-dfsg-4.1/ mysql-client-4.1_4.1.11a-4sarge1_mips.deb http://security.debian.org/pool/updates/main/m/mysql-dfsg-4.1/ mysql-server-4.1_4.1.11a-4sarge1_mips.deb Little endian MIPS: http://security.debian.org/pool/updates/main/m/mysql-dfsg-4.1/ libmysqlclient14_4.1.11a-4sarge1_mipsel.deb http://security.debian.org/pool/updates/main/m/mysql-dfsg-4.1/ libmysqlclient14-dev_4.1.11a-4sarge1_mipsel.deb http://security.debian.org/pool/updates/main/m/mysql-dfsg-4.1/ mysql-client-4.1_4.1.11a-4sarge1_mipsel.deb http://security.debian.org/pool/updates/main/m/mysql-dfsg-4.1/ mysql-server-4.1_4.1.11a-4sarge1_mipsel.deb PowerPC: http://security.debian.org/pool/updates/main/m/mysql-dfsg-4.1/ libmysqlclient14_4.1.11a-4sarge1_powerpc.deb http://security.debian.org/pool/updates/main/m/mysql-dfsg-4.1/ libmysqlclient14-dev_4.1.11a-4sarge1_powerpc.deb http://security.debian.org/pool/updates/main/m/mysql-dfsg-4.1/ mysql-client-4.1_4.1.11a-4sarge1_powerpc.deb http://security.debian.org/pool/updates/main/m/mysql-dfsg-4.1/ mysql-server-4.1_4.1.11a-4sarge1_powerpc.deb IBM S/390: http://security.debian.org/pool/updates/main/m/mysql-dfsg-4.1/ libmysqlclient14_4.1.11a-4sarge1_s390.deb http://security.debian.org/pool/updates/main/m/mysql-dfsg-4.1/ libmysqlclient14-dev_4.1.11a-4sarge1_s390.deb http://security.debian.org/pool/updates/main/m/mysql-dfsg-4.1/ mysql-client-4.1_4.1.11a-4sarge1_s390.deb http://security.debian.org/pool/updates/main/m/mysql-dfsg-4.1/ mysql-server-4.1_4.1.11a-4sarge1_s390.deb Sun Sparc: http://security.debian.org/pool/updates/main/m/mysql-dfsg-4.1/ libmysqlclient14_4.1.11a-4sarge1_sparc.deb http://security.debian.org/pool/updates/main/m/mysql-dfsg-4.1/ libmysqlclient14-dev_4.1.11a-4sarge1_sparc.deb http://security.debian.org/pool/updates/main/m/mysql-dfsg-4.1/ mysql-client-4.1_4.1.11a-4sarge1_sparc.deb http://security.debian.org/pool/updates/main/m/mysql-dfsg-4.1/ mysql-server-4.1_4.1.11a-4sarge1_sparc.deb MD5 checksums of the listed files are available in the original advisory. [***** End DSA-783-1 *****] _______________________________________________________________________________ CIAC wishes to acknowledge the contributions of Debian for the information contained in this bulletin. _______________________________________________________________________________ CIAC, the Computer Incident Advisory Capability, is the computer security incident response team for the U.S. Department of Energy (DOE) and the emergency backup response team for the National Institutes of Health (NIH). CIAC is located at the Lawrence Livermore National Laboratory in Livermore, California. CIAC is also a founding member of FIRST, the Forum of Incident Response and Security Teams, a global organization established to foster cooperation and coordination among computer security teams worldwide. CIAC services are available to DOE, DOE contractors, and the NIH. CIAC can be contacted at: Voice: +1 925-422-8193 (7x24) FAX: +1 925-423-8002 STU-III: +1 925-423-2604 E-mail: ciac@ciac.org Previous CIAC notices, anti-virus software, and other information are available from the CIAC Computer Security Archive. World Wide Web: http://www.ciac.org/ Anonymous FTP: ftp.ciac.org PLEASE NOTE: Many users outside of the DOE, ESnet, and NIH computing communities receive CIAC bulletins. If you are not part of these communities, please contact your agency's response team to report incidents. Your agency's team will coordinate with CIAC. The Forum of Incident Response and Security Teams (FIRST) is a world-wide organization. A list of FIRST member organizations and their constituencies can be obtained via WWW at http://www.first.org/. This document was prepared as an account of work sponsored by an agency of the United States Government. Neither the United States Government nor the University of California nor any of their employees, makes any warranty, express or implied, or assumes any legal liability or responsibility for the accuracy, completeness, or usefulness of any information, apparatus, product, or process disclosed, or represents that its use would not infringe privately owned rights. Reference herein to any specific commercial products, process, or service by trade name, trademark, manufacturer, or otherwise, does not necessarily constitute or imply its endorsement, recommendation or favoring by the United States Government or the University of California. The views and opinions of authors expressed herein do not necessarily state or reflect those of the United States Government or the University of California, and shall not be used for advertising or product endorsement purposes. LAST 10 CIAC BULLETINS ISSUED (Previous bulletins available from CIAC) P-279: Cisco Clean Access Vulnerability P-280: Security Vulnerability in The "printd" Daemon P-281: Security Vulnerabilities in the Sun StorEdge Enterprise Backup Software P-282: PHP PEAR XML-RPC Server Package Vulnerability P-283: Cisco Intrusion Prevention System Vulnerable to Privilege Escalation P-284: SSL Certificate Validation Vulnerability in IDS Management Software P-285: netpbm security update P-286: vim security update P-287: elm security update P-288: Security Vulnerability in Solaris 10 "DHCP" Clients