{"id":"CVE-2007-1884","aliases":["EUVD-2007-1878","GHSA-f6c2-v47m-87f7"],"status":"published","title":"Multiple integer signedness errors in the printf function family in PHP 4 before 4.4.5 and PHP 5...","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.","severity":{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.0318,"percentile":0.88148,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"published":"2007-04-06T01:00:00Z","modified":"2026-06-16T22:38:29Z","products":[{"vendor":"php","product":"php"}],"references":[{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/33755","tags":["vdb-entry","x_refsource_XF","x_transferred"]},{"url":"http://www.vupen.com/english/advisories/2007/1991","tags":["vdb-entry","x_refsource_VUPEN","x_transferred"]},{"url":"http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en\u0026cc=us\u0026objectID=c01056506","tags":["vendor-advisory","x_refsource_HP","x_transferred"]},{"url":"http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en\u0026cc=us\u0026objectID=c01086137","tags":["vendor-advisory","x_refsource_HP","x_transferred"]},{"url":"http://www.osvdb.org/33955","tags":["vdb-entry","x_refsource_OSVDB","x_transferred"]},{"url":"http://www.php.net/releases/5_2_1.php","tags":["x_refsource_CONFIRM","x_transferred","Patch"]},{"url":"http://www.securityfocus.com/bid/23219","tags":["vdb-entry","x_refsource_BID","x_transferred"]},{"url":"http://www.osvdb.org/34767","tags":["vdb-entry","x_refsource_OSVDB","x_transferred"]},{"url":"http://www.vupen.com/english/advisories/2007/2374","tags":["vdb-entry","x_refsource_VUPEN","x_transferred"]},{"url":"http://secunia.com/advisories/25423","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"http://www.php-security.org/MOPB/MOPB-38-2007.html","tags":["x_refsource_MISC","x_transferred","Vendor Advisory"]},{"url":"http://secunia.com/advisories/25850","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2007-1884"},{"url":"https://github.com/advisories/GHSA-f6c2-v47m-87f7"}],"sources":{"cve":[{"id":"CVE-2007-1884","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.","status":"published","published":"2007-04-06T01:00:00Z","modified":"2024-08-07T13:13:41.826Z","updated_at":"2026-11-02T13:33:41.472948Z"}],"euvd":[{"id":"EUVD-2007-1878","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.","status":"published","published":"2007-04-06T01:00:00Z","modified":"2024-08-07T13:13:41Z","updated_at":"2026-11-03T01:38:23.856285Z"}],"ghsa":[{"id":"GHSA-f6c2-v47m-87f7","title":"Multiple integer signedness errors in the printf function family in PHP 4 before 4.4.5 and PHP 5...","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.","status":"published","published":"2022-05-01T17:58:01Z","modified":"2023-01-31T05:03:30Z","updated_at":"2026-11-02T14:48:28.814324Z"}],"nvd":[{"id":"CVE-2007-1884","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.","status":"published","published":"2007-04-06T01:19:00Z","modified":"2026-06-16T22:38:29.9Z","cvss":[{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"updated_at":"2026-11-02T14:01:14.732044Z"}]}}
