CVE-2011-0421: Null Pointer Dereference
It was reported that ZipArchive() would segfault when opening an empty archive with the FLUNCHANGED flag set [1]. This is corrected in upstream PHP 5.3.6 [2],[3].
[1] http://bugs.php.net/bug.php?id=53885 [2] http://www.php.net/ChangeLog-5.php#5.3.6 [3] http://svn.php.net/viewvc/?view=revision&revision=307867
Other sources
The zipnamelocate function in zipnamelocate.c in the Zip extension in PHP before 5.3.6 does not properly handle a ZIPARCHIVE::FLUNCHANGED argument, which might allow context-dependent attackers to cause a denial of service (NULL pointer dereference) via an empty ZIP archive that is processed with a (1) locateName or (2) statName operation.
— MITRE
Affected Software
Remediation
Patch Available
Patch Available
Event History
Frequently Asked Questions
What is the severity of CVE-2011-0421?
CVE-2011-0421 has a severity rating of medium as it can cause a segmentation fault when an empty archive is opened.
How do I fix CVE-2011-0421?
To fix CVE-2011-0421, you should upgrade PHP to version 5.3.6 or later.
Which PHP versions are affected by CVE-2011-0421?
CVE-2011-0421 affects multiple versions of PHP including 3.0, 4.x, and 5.2 series prior to 5.3.6.
How does CVE-2011-0421 affect PHP applications?
CVE-2011-0421 can lead to application crashes when attempting to process empty zip archives, potentially disrupting service availability.
Is it safe to use PHP versions before 5.3.6 after CVE-2011-0421?
Using PHP versions before 5.3.6 poses a risk due to the vulnerability present in those releases.