Description
strtod.c, as used in the zend_strtod function in PHP 5.2 before 5.2.17 and 5.3 before 5.3.5, and other products, allows context-dependent attackers to cause a denial of service (infinite loop) via a certain floating-point value in scientific notation, which is not properly handled in x87 FPU registers, as demonstrated using 2.2250738585072011e-308.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 6 | php +25 | 5.3.2-6.el6_0.1 | RHSA-2011:0195 |
| RHEL 5 | php53 +20 | 5.3.3-1.el5_6.1 | RHSA-2011:0196 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | php5 | 5.6.28-1.1 | openSUSE-SU-2024:10344-1 |
| openSUSE Tumbleweed | php7 | 7.0.14-1.4 | openSUSE-SU-2024:10290-1 |
| openSUSE Tumbleweed | php8 | 8.0.11-1.1 | openSUSE-SU-2024:11169-1 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- PHP 5.3.2 - 'zend_strtod()' Floating-Point Value Denial of Service EDB-35164 · dos · Jan 3, 2011 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 5
- RHSA-2011:0195 Red Hat Security Advisory: php security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- openSUSE-SU-2024:10290-1 apache2-mod_php7-7.0.14-1.4 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:10344-1 apache2-mod_php5-5.6.28-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:11169-1 php8-8.0.11-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- RHSA-2011:0196 Red Hat Security Advisory: php53 security update Red Hat Security Advisories (RHSA) · Nov 22, 2025
References
- ADV-2011-0077 vdb-entry
- 45668 vdb-entry
- HPSBMU02752 vendor-advisory
- 42812 third-party-advisory
- HPSBOV02763 vendor-advisory
- RHSA-2011:0196 vendor-advisory
- FEDORA-2011-0321 vendor-advisory
- [oss-security] 20110105 Re: possible flaw in widely used strtod.c implementation mailing-list
- RHSA-2011:0195 vendor-advisory
- http://bugs.php.net/53632
- http://hal.archives-ouvertes.fr/docs/00/28/14/29/PDF/floating-point-article.pdf
- http://www.exploringbinary.com/php-hangs-on-numeric-value-2-2250738585072011e-308/
- ADV-2011-0198 vdb-entry
- SSA:2011-010-01 vendor-advisory
- ADV-2011-0066 vdb-entry
- USN-1042-1 vendor-advisory
- APPLE-SA-2011-10-12-3 vendor-advisory
- FEDORA-2011-0329 vendor-advisory
- 42843 third-party-advisory
- ADV-2011-0060 vdb-entry
- http://support.apple.com/kb/HT5002
- php-zendstrtod-dos(64470) vdb-entry
- 43189 third-party-advisory
- 43051 third-party-advisory
- [oss-security] 20110105 possible flaw in widely used strtod.c implementation mailing-list
- http://svn.php.net/viewvc/php/php-src/branches/PHP_5_2/Zend/zend_strtod.c?r1=266327&r2=307095&pathrev=307095
- [oss-security] 20110106 Re: possible flaw in widely used strtod.c implementation mailing-list
- http://www.openwall.com/lists/oss-security/2023/05/14/3