IMPORTANT NOTE:
php4 will be removed from testing (lenny); thus you are strongly
advised to migrate to php5. If you cannot upgrade, you should
consider using the stable distribution (etch) instead.
Several remote vulnerabilities have been discovered in PHP, a
server-side, HTML-embedded scripting language, which may lead to the
execution of arbitrary code. The Common Vulnerabilities and Exposures
project identifies the following problems:
CVE-2007-1286
Stefan Esser discovered an overflow in the object reference handling
code of the unserialize() function, which allows the execution of
arbitrary code if malformed input is passed from an application.
CVE-2007-1380
Stefan Esser discovered that the session handler performs
insufficient validation of variable name length values, which allows
information disclosure through a heap information leak.
CVE-2007-1521
Stefan Esser discovered a double free vulnerability in the
session_regenerate_id() function, which allows the execution of
arbitrary code.
CVE-2007-1538
Stefan Esser discovered that the mb_parse_str function sets the internal
register_globals flag and does not disable it in certain cases when a script
terminates, which allows remote attackers to invoke available PHP scripts with
register_globals functionality that is not detectable by these scripts
CVE-2007-1718
Stefan Esser discovered that the mail() function performs
insufficient validation of folded mail headers, which allows mail
header injection.
CVE-2007-1777
Stefan Esser discovered that the extension to handle ZIP archives
performs insufficient length checks, which allows the execution of
arbitrary code.
CVE-2007-2509
It was discovered that the ftp extension of PHP, a server-side,
HTML-embedded scripting language performs insufficient input sanitising,
which permits an attacker to execute arbitrary FTP commands. This
requires the attacker to already have access to the FTP server.
For the testing distribution (lenny) this is fixed in version 6:4.4.4-9+lenny1
For the unstable distribution (sid) this is fixed in version 6:4.4.6-2
This upgrade is recommended if you use php4.
If you have the secure testing lines in your sources.list, you can update by running this command as root:
apt-get update && apt-get upgrade
To use the Debian testing security archive, add the following lines to your /etc/apt/sources.list:
deb http://security.debian.org/ testing/updates main contrib non-free
deb-src http://security.debian.org/ testing/updates main contrib non-free