__________________________________________________________ The U.S. Department of Energy Computer Incident Advisory Capability ___ __ __ _ ___ / | /_\ / \___ __|__ / \ \___ __________________________________________________________ INFORMATION BULLETIN Red Hat Updated PHP Packages Available [RHSA-2003:017-06] February 7, 2003 13:00 GMT Number N-042 ______________________________________________________________________________ PROBLEM: Updated PHP packages are available that fix a vulnerability in the wordwrap() function and a number of compatibility bugs. A heap-based buffer overflow was found in the wordwrap() function in PHP versions after 4.1.2 and before 4.3.0. PLATFORM: Red Hat Linux 8.0 DAMAGE: If wordwrap() is used on user-supplied input this could allow remote attackers to cause a denial of service or execute arbitrary code. SOLUTION: Apply correct upgrade, reference list in the advisory. ______________________________________________________________________________ VULNERABILITY The risk is MEDIUM. Red Hat Linux 8.0 is shipped with a version ASSESSMENT: of PHP that was vulnerable. PHP is an HTML-embedded scripting language commonly used with the Apache HTTP server. ______________________________________________________________________________ LINKS: CIAC BULLETIN: http://www.ciac.org/ciac/bulletins/xxx.shtml ORIGINAL BULLETIN: https://rhn.redhat.com/errata/RHSA-2003-017.html ______________________________________________________________________________ [***** Start RHSA-2003:017-06 *****] Updated PHP packages available Advisory: RHSA-2003:017-06 Last updated on: 2003-02-04 Affected Products: Red Hat Linux 8.0 CVEs (cve.mitre.org): CAN-2002-1396 Security Advisory Details: Updated PHP packages are available that fix a vulnerability in the wordwrap() function and a number of compatibility bugs. PHP is an HTML-embedded scripting language commonly used with the Apache HTTP server. A heap-based buffer overflow was found in the wordwrap() function in PHP versions after 4.1.2 and before 4.3.0. If wordwrap() is used on user-supplied input this could allow remote attackers to cause a denial of service or execute arbitrary code. Red Hat Linux 8.0 shipped with a version of PHP that was vulnerable to this issue. Other Red Hat Linux distributions shipped with an earlier version of PHP and are not vulnerable to this issue. In addition, a number of compatiblity bugs have also been found between PHP 4.2 and Apache 2.0. All users of PHP are advised to upgrade to these erratum packages which contain a patch to correct these issues. Updated packages: Red Hat Linux 8.0 -------------------------------------------------------------------------------- SRPMS: php-4.2.2-8.0.7.src.rpm [ via FTP ] [ via HTTP ] 6142b2ac0eb22a2f6b33724ab5f40c72 i386: php-4.2.2-8.0.7.i386.rpm [ via FTP ] [ via HTTP ] ee10926c45bf9fb9cdd3694700662711 php-devel-4.2.2-8.0.7.i386.rpm [ via FTP ] [ via HTTP ] 370779db08cf8f7f8346b516fc4ebbde php-imap-4.2.2-8.0.7.i386.rpm [ via FTP ] [ via HTTP ] ce94c1398ec3e5a2edc4455e4949da70 php-ldap-4.2.2-8.0.7.i386.rpm [ via FTP ] [ via HTTP ] 5a7ecb7ce8ceb67ca53f1daa15488957 php-manual-4.2.2-8.0.7.i386.rpm [ via FTP ] [ via HTTP ] d7d2b4aeac657ea17d5d4a3a9f72eb51 php-mysql-4.2.2-8.0.7.i386.rpm [ via FTP ] [ via HTTP ] 5174df281714e3bf550d5697df326be4 php-odbc-4.2.2-8.0.7.i386.rpm [ via FTP ] [ via HTTP ] ed2a793624ad2869da4c09f38d88bb75 php-pgsql-4.2.2-8.0.7.i386.rpm [ via FTP ] [ via HTTP ] dd19149ccecab409296cdb7feaf8dd2e php-snmp-4.2.2-8.0.7.i386.rpm [ via FTP ] [ via HTTP ] d7b8bdc55e9cc453f1639f1c34c118ef Solution Before applying this update, make sure all previously released errata relevant to your system have been applied. To update all RPMs for your particular architecture, run: rpm -Fvh [filenames] where [filenames] is a list of the RPMs you wish to upgrade. Only those RPMs which are currently installed will be updated. Those RPMs which are not installed but included in the list will not be updated. Note that you can also use wildcards (*.rpm) if your current directory *only* contains the desired RPMs. Please note that this update is also available via Red Hat Network. Many people find this an easier way to apply updates. 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) 74396 - safe mode not working in php-4.2.2-8.0.5 75029 - PHP with Apache 2.0: getlastmod function fails 75712 - php4 with apache 2, getenv(ANYTHING) returns blank string 75878 - Apache caches requests by default, or there is some bug around. 78586 - Invalid command php_flag References: http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2002-1396 http://marc.theaimsgroup.com/?l=bugtraq&m=104102689503192 Keywords: PHP, wordwrap -------------------------------------------------------------------------------- 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.html#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 Note that you need RPM >= 3.0 to check GnuPG keys. The Red Hat security contact is security@redhat.com. More contact details at http://www.redhat.com/solutions/security/news/contact.html [***** End RHSA-2003:017-06 *****] _______________________________________________________________________________ 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-032: Double-Free Bug in Concurrent Versions System (CVS) Server N-033: Unchecked Buffer in Locator Service Vulnerability N-034: Cumulative Patch for Microsoft Content Management Server N-035: Microsoft V1 Exchange Server Security Certificates Vulnerability N-036: Updated kerberos packages fix vulnerability in ftp client N-037: Multiple Vulnerabilities in Old Releases of MIT Kerberos N-038: Microsoft Cumulative Patch for Internet Explorer N-039: Microsoft Unchecked Buffer in Windows Redirector Vulnerability N-040: Red Hat Xpdf Packages Vulnerability N-041: Sun Linux Vulnerabilities in "unzip" and GNU "tar" Commands