CVE-2012-0789: Medium severity php vulnerability
https://bugs.php.net/bug.php?id=53502
[2010-12-08 21:04 UTC] jsheridan at tenable dot com
Description: ------------ strtotime calls with a timezone embedded function correctly but continually use up memory. In a daemon program this becomes quickly fatal.
Test script: --------------- <?php while (true) { strtotime('Monday 00:00 Europe/Paris'); // Memory leak } ?>
<?php while (true) { datedefaulttimezoneset("Europe/Paris"); strtotime('Monday 00:00'); // No memory leak } ?>
Expected result: ---------------- Memory usage should remain stable.
Other sources
Memory leak in the timezone functionality in PHP before 5.3.9 allows remote attackers to cause a denial of service (memory consumption) by triggering many strtotime function calls, which are not properly handled by the phpdateparsetzfile cache.
— MITRE
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2012-0789?
CVE-2012-0789 is classified as a moderate severity vulnerability.
How do I fix CVE-2012-0789?
To fix CVE-2012-0789, upgrade your PHP version to 5.3.9 or later.
Which PHP versions are affected by CVE-2012-0789?
CVE-2012-0789 affects PHP versions up to and including 5.3.8, along with various older versions.
What type of vulnerability is CVE-2012-0789?
CVE-2012-0789 is a memory leak vulnerability associated with the strtotime function.
Is there a patch available for CVE-2012-0789?
Yes, patches are included in PHP versions released after 5.3.9 to address CVE-2012-0789.