Heap Overflow and Use-After-Free Vulnerabilities in php5
Summary
DSA-3195-1: php5 - security update. Affects php5 versions < 5.4.38-0+deb7u1. Fixed in 5.4.38-0+deb7u1. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
php5 is a popular scripting language used for web development. It provides a wide range of functionality and is widely used in various applications. However, several vulnerabilities have been discovered in php5, including a heap overflow in the ereg extension, a buffer overflow in the enchant extension, a use-after-free in the unserialization of objects, incorrect memory management in the exif extension, and a use-after-free in the unserialization of DateTimeZone.
Vulnerability Detail
The heap overflow vulnerability in the ereg extension, only applicable to 32-bit systems, can be exploited by an attacker to execute arbitrary code or cause a denial of service. The buffer overflow in the enchant extension can also lead to arbitrary code execution or denial of service. The use-after-free vulnerabilities in the unserialization of objects and DateTimeZone can be exploited to execute arbitrary code or cause a crash. The incorrect memory management in the exif extension can result in memory corruption and potential code execution.
How To Fix
Minimum fixed version
5.4.38-0+deb7u1
This is the first release that contains the fix.
sudo apt-get install --only-upgrade php5
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
There are no known workarounds for these vulnerabilities.
Conclusion
Multiple vulnerabilities have been discovered in php5, including heap overflow, buffer overflow, use-after-free, and memory management issues. It is crucial to upgrade to the patched versions of php5 to mitigate the risk of exploitation. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for php5 →
FAQ
These vulnerabilities can be exploited by attackers to execute arbitrary code or cause denial of service.
No, the heap overflow vulnerability in the ereg extension is only applicable to 32-bit systems.
Yes, these vulnerabilities can be exploited remotely if the affected php5 functionality is exposed to the network.
There are no known public exploits for these vulnerabilities at the time of this report.
Yes, it is recommended to restart the application after applying the patch to ensure the changes take effect.
Related vulnerabilities
Recent vulnerabilities recorded for php5.