Use-after-free error in PHP - CVE-2015-2301
Published: November 27, 2018
Vulnerability details
The vulnerability allows a remote attacker to cause DoS condition on the target system.
The vulnerability exists due to use-after-free vulnerability in the phar_rename_archive function in phar_object.c in PHP before 5.5.22 and 5.6.x before 5.6.6. A remote attacker can trigger memory corruption via vectors that trigger an attempted renaming of a Phar archive to the name of an existing file and cause the service to crash.
Affected software
Amazon Linux AMI
Debian Linux
Slackware Linux
php5 (Ubuntu package)
php5 (Debian package)
How to mitigate CVE-2015-2301
php5 (Ubuntu package) - addressed in versions 5.3.2-1ubuntu4.29, 5.3.10-1ubuntu3.17, 5.5.9+dfsg-1ubuntu4.7, 5.5.12+dfsg-2ubuntu4.3
php5 (Debian package) - addressed in versions 5.3.3.1-7+squeeze26, 5.4.39-0+deb7u1