Servers and applications
CVE-2007-1884
Multiple integer signedness errors in the printf function family in PHP 4 before 4.4.5 and PHP 5 before 5.2.1 on 64 bit machines allow context-dependent attackers to execute arbitrary code via (1) certain negative argument numbers that arise in the php_formatted_print function because of 64 to 32 bit truncation, and bypass a check for the maximum allowable value; and (2) a width and precision of…
- Severity
- Medium 6.8
- Published
- 6 Apr 2007
- Last changed
- 16 Jun 2026
- Added to UpHeron
- 14 Oct 2026
- Exploit chance
- 3.2% in the next 30 daysHigher than 88% of CVEs. EPSS by FIRST, 12 Nov 2026
- Attack
- Over the network · No login needed
- Attacker can
- Read some data · Change some data · Slow it down
- CVSS vector
AV:N/AC:M/Au:N/C:P/I:P/A:P- Sources
- NVD
Description
Multiple integer signedness errors in the printf function family in PHP 4 before 4.4.5 and PHP 5 before 5.2.1 on 64 bit machines allow context-dependent attackers to execute arbitrary code via (1) certain negative argument numbers that arise in the php_formatted_print function because of 64 to 32 bit truncation, and bypass a check for the maximum allowable value; and (2) a width and precision of -1, which make it possible for the php_sprintf_appendstring function to place an internal buffer at an arbitrary memory location.
Affected software
| Software | Affected versions |
|---|---|
PHPServers and applications · cpe:a:php:php |
All 70 release lines
|