Description
Integer overflow in PHP 5.2.5 and earlier allows context-dependent attackers to cause a denial of service and possibly have unspecified other impact via a printf format parameter with a large width specifier, related to the php_sprintf_appendstring function in formatted_print.c and probably other functions for formatted strings (aka *printf functions).
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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 5.0 | php5 | 5.2.5-3+lenny1 | DTSA-135-1 |
| Debian 4.0 | php5 | 5.2.0-8+etch11 | DSA-1572-1 |
Advisories 2
- DSA-1572-1 php5 - several vulnerabilities Debian Security (DSA / DLA) · Mar 9, 2026
- DTSA-135-1 php5 - multiple vulnerabilities Debian Security (DSA / DLA) · Mar 9, 2026
References
- 20080523 rPSA-2008-0176-1 php php-cgi php-imap php-mcrypt php-mysql php-mysqli php-pgsql php-soap php-xsl php5 php5-cgi php5-imap php5-mcrypt php5-mysql php5-mysqli php5-pear php5-pgsql php5-soap php5-xsl mailing-list
- 20080321 {securityreason.com}PHP 5 *printf() - Integer Overflow mailing-list
- 32746 third-party-advisory
- GLSA-200811-05 vendor-advisory
- http://cvs.php.net/viewvc.cgi/php-src/NEWS?revision=1.2027.2.547.2.1120&view=markup
- DSA-1572 vendor-advisory
- 30345 third-party-advisory
- USN-628-1 vendor-advisory
- 30967 third-party-advisory
- http://wiki.rpath.com/wiki/Advisories:rPSA-2008-0176
- php-phpsprintfappendstring-overflow(41386) vdb-entry
- 20080527 rPSA-2008-0178-1 php php-mysql php-pgsql mailing-list
- 30411 third-party-advisory
- 30158 third-party-advisory
- MDVSA-2009:023 vendor-advisory
- MDVSA-2009:022 vendor-advisory
- 28392 vdb-entry
- 31200 third-party-advisory
- SUSE-SR:2008:014 vendor-advisory
- http://wiki.rpath.com/wiki/Advisories:rPSA-2008-0178
- https://issues.rpath.com/browse/RPL-2503
- 20080320 PHP 5.2.5 and prior : *printf() functions Integer Overflow third-party-advisory