|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2014-03-24 07:55 UTC] remi@php.net
Description: ------------ CVE-2013-7345 file: denial of service (CPU consumption) when processing certain files: Upstream bug: http://bugs.gw.com/view.php?id=164 Upstream fix: https://github.com/file/file/commit/ef2329cf71acb59204dd981e2c6cce6c81fe467c 5.6 is not affected (magic 5.17) PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 04:00:02 2025 UTC |
Test script: <?php $fd = __DIR__.'/data'; $a = str_repeat("\n", 1000000); file_put_contents($fd, $a); $fi = finfo_open(FILEINFO_NONE); var_dump(finfo_file($fi, $fd)); finfo_close($fi); Without the patch $ time php -n -d extension=fileinfo.so /tmp/foo.php string(10) "ASCII text" real 0m18.636s With the patch applied $ time php -n -d extension=modules/fileinfo.so /tmp/foo.php string(10) "ASCII text" real 0m0.470s