__________________________________________________________ The U.S. Department of Energy Computer Incident Advisory Capability ___ __ __ _ ___ / | /_\ / \___ __|__ / \ \___ __________________________________________________________ INFORMATION BULLETIN Red Hat MySQL Vulnerabilities [Red Hat Security Advisory RHSA-2003:093-14] May 2, 2003 17:00 GMT Number N089 ______________________________________________________________________________ PROBLEM: Red Hat announces the release of updated MySQL server packages which fix both a double-free security vulnerability and a root exploit security vulnerability. PLATFORM: Red Hat Linux 7.1 Red Hat Linux 7.2 Red Hat Linux 7.3 Red Hat Linux 8.0 Red Hat Linux 9 DAMAGE: These vulnerabilities if exploited could either cause a denial of service attack or the more serious one, lead to a local user gaining root. SOLUTION: Apply patch as instructed in Red Hat's advisory. ______________________________________________________________________________ VULNERABILITY The risk is MEDIUM. By exploiting the double-free vulnerability ASSESSMENT: in mysqld attackers with MySQL access could cause a denial of service by creating a carefully crafted client application. MySQL 3.23.55 and earlier creates world-writable files and allows mysql users to gain root privileges by using the "SELECT * INFO OUTFILE" operator to overwrite a configuration file and cause mysql to run as root upon restart. ______________________________________________________________________________ LINKS: CIAC BULLETIN: http://www.ciac.org/ciac/bulletins/n-089.shtml ORIGINAL BULLETIN: https://rhn.redhat.com/errata/RHSA-2003-093.html ______________________________________________________________________________ [***** Start Red Hat Security Advisory RHSA-2003:093-14 *****] Updated MySQL packages fix vulnerabilities Advisory: RHSA-2003:093-14 Last updated on: 2003-05-02 Affected Products: Red Hat Linux 7.1 Red Hat Linux 7.2 Red Hat Linux 7.3 Red Hat Linux 8.0 Red Hat Linux 9 CVEs (cve.mitre.org): CAN-2003-0073 CAN-2003-0150 Security Advisory Details: Updated MySQL server packages fix both a double-free security vulnerability and a root exploit security vulnerability. [Updated 1 May 2003] Added updated packages for Red Hat Linux 9, which is vulnerable to CAN-2003-0150. MySQL is a multi-user, multi-threaded SQL database server. A double-free vulnerability in mysqld, for MySQL before version 3.23.55, allows attackers with MySQL access to cause a denial of service (crash) by creating a carefully crafted client application. The Common Vulnerabilities and Exposures project (cve.mitre.org) has assigned the name CAN-2003-0073 to this issue. MySQL 3.23.55 and earlier creates world-writable files and allows mysql users to gain root privileges by using the "SELECT * INFO OUTFILE" operator to overwrite a configuration file and cause mysql to run as root upon restart. The Common Vulnerabilities and Exposures project (cve.mitre.org) has assigned the name CAN-2003-0150 to this issue. All users are advised to upgrade to MySQL 3.23.56 contained within this errata which is not vulnerable to these issues. In addition to the security fixes, these erratum packages contain a thread safe client library (libmysqlclient_r). Updated packages: Red Hat Linux 7.1 -------------------------------------------------------------------------------- SRPMS: mysql-3.23.56-1.71.src.rpm [ via FTP ] [ via HTTP ] e7487478940f7fb152bd94dce219a99b i386: mysql-3.23.56-1.71.i386.rpm [ via FTP ] [ via HTTP ] 7f913c1ef0ad361fba8938270a93c474 mysql-devel-3.23.56-1.71.i386.rpm [ via FTP ] [ via HTTP ] 31f5618bb189b0520083210bbc19cdfb mysql-server-3.23.56-1.71.i386.rpm [ via FTP ] [ via HTTP ] 9b1ba658cf7695f7fb626581ad3e700f Red Hat Linux 7.2 -------------------------------------------------------------------------------- SRPMS: mysql-3.23.56-1.72.src.rpm [ via FTP ] [ via HTTP ] 54f783324c224840fe7ea702fe628ec2 i386: mysql-3.23.56-1.72.i386.rpm [ via FTP ] [ via HTTP ] d1efdb7796e0444302ee3f426ca06c85 mysql-devel-3.23.56-1.72.i386.rpm [ via FTP ] [ via HTTP ] 9b77319f6ecc7e5431efc99e7a291334 mysql-server-3.23.56-1.72.i386.rpm [ via FTP ] [ via HTTP ] ef3c7d3e1bfe3b835ee07b8d2eda7e21 ia64: mysql-3.23.56-1.72.ia64.rpm [ via FTP ] [ via HTTP ] fcdac19a133fcf7feb34e06877ed1242 mysql-devel-3.23.56-1.72.ia64.rpm [ via FTP ] [ via HTTP ] 6d5ed02bee3fe571275b5053cebc6c94 mysql-server-3.23.56-1.72.ia64.rpm [ via FTP ] [ via HTTP ] 19737a4c7f39bd37fbd73d0388d2c847 Red Hat Linux 7.3 -------------------------------------------------------------------------------- SRPMS: mysql-3.23.56-1.73.src.rpm [ via FTP ] [ via HTTP ] ab0e0b34299f786e032e0aa885c046d0 i386: mysql-3.23.56-1.73.i386.rpm [ via FTP ] [ via HTTP ] 7024c33fbdd861d28733d549d29e5d12 mysql-devel-3.23.56-1.73.i386.rpm [ via FTP ] [ via HTTP ] 2d9a1b8f6dcc9d336071ec5b889404a6 mysql-server-3.23.56-1.73.i386.rpm [ via FTP ] [ via HTTP ] fb5615fe718df6410a3382d892a56b4c Red Hat Linux 8.0 -------------------------------------------------------------------------------- SRPMS: mysql-3.23.56-1.80.src.rpm [ via FTP ] [ via HTTP ] 345bdf55ad90f9d00e771e464c4830c7 i386: mysql-3.23.56-1.80.i386.rpm [ via FTP ] [ via HTTP ] 9b339a91222cdbb941c1cbf0d107f10a mysql-devel-3.23.56-1.80.i386.rpm [ via FTP ] [ via HTTP ] 618b4be6bf5744c9cb44c2f008bc2e76 mysql-server-3.23.56-1.80.i386.rpm [ via FTP ] [ via HTTP ] 3e0f97fd1a0c1472869b5c390c775163 Red Hat Linux 9 -------------------------------------------------------------------------------- SRPMS: mysql-3.23.56-1.9.src.rpm [ via FTP ] [ via HTTP ] 6f1f4e7f641f6a9e5bbad47d58af2110 i386: mysql-3.23.56-1.9.i386.rpm [ via FTP ] [ via HTTP ] af46b9de635c8d225fba841105287132 mysql-devel-3.23.56-1.9.i386.rpm [ via FTP ] [ via HTTP ] 7b92035afc45f7f8b5a43cea39d7c56f mysql-server-3.23.56-1.9.i386.rpm [ via FTP ] [ via HTTP ] f03daffeb2c83ff60501e72ebd50e587 Solution Before applying this update, make sure all previously released errata relevant to your system have been applied. Please note that this update is available via Red Hat Network. To use Red Hat Network, launch the Red Hat Update Agent with the following command: up2date This will start an interactive process that will result in the appropriate RPMs being upgraded on your system. Bugs fixed: (see bugzilla for more information) 77662 - mysql RPM's do not provide a thread safe library 85898 - double-free vulnerability in mysqld < 3.23.55 85971 - possible root exploit in mysqld startup References: http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2003-0073 http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2003-0150 http://www.mysql.com/doc/en/News-3.23.55.html http://www.mysql.com/doc/en/News-3.23.56.html -------------------------------------------------------------------------------- The listed packages are GPG signed by Red Hat, Inc. for security. Our key is available at: http://www.redhat.com/solutions/security/news/publickey/#key You can verify each package and see who signed it with the following command: rpm --checksig -v filename If you only wish to verify that each package has not been corrupted or tampered with, examine only the md5sum with the following command: md5sum filename The Red Hat security contact is security@redhat.com. More contact details at http://www.redhat.com/solutions/security/news/contact.html [***** End Red Hat Security Advisory RHSA-2003:093-14 *****] _______________________________________________________________________________ CIAC wishes to acknowledge the contributions of Red Hat 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) N-079: Cisco Secure Access Control Server (ACS) for Windows Admin Buffer Overflow Vulnerability N-080: Red Hat Updated tcpdump Packages Fix Various Vulnerabilities N-081: Microsoft Cumulative Patch for Outlook Express N-082: Microsoft Cumulative Patch for Internet Explorer (IE) N-083: Cisco Catalyst Enable Password Bypass Vulnerability N-084: SGI nsd LDAP Implementation Vulnerability N-085: Oracle Buffer Overflow in Net Services for Oracle Database Server N-086: HP Tru64 UNIX Software Installation and Update Utilities Vulnerability N-087: Microsoft Cumulative Patch for BizTalk Server N-088: Hewlett-Packard rexec Command Security Vulnerability