[v2.4] php: DoS via a crafted ASCII file (CVE-2013-7345)
The BEGIN regular expression in the awk script detector in magic/Magdir/commands in file before 5.15 uses multiple wildcards with unlimited repetitions, which allows context-dependent attackers to cause a denial of service (CPU consumption) via a crafted ASCII file that triggers a large amount of backtracking, as demonstrated via a file with many newline characters.
•CONFIRM: http://bugs.gw.com/view.php?id=164
•CONFIRM: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=703993
•CONFIRM:
https://github.com/file/file/commit/ef2329cf71acb59204dd981e2c6cce6c81fe467c
•DEBIAN:DSA-2873
•URL: http://www.debian.org/security/2014/dsa-2873
(from redmine: issue id 2852, created on 2014-04-18, closed on 2014-04-21)
- Relations:
- parent #2851 (closed)
- Changesets:
- Revision f93dd45c by Natanael Copa on 2014-04-18T15:43:33Z:
main/php: security fix for CVE-2013-7345
fixes #2852
(cherry picked from commit e9ac51136d63d809d055c24c4c69cf2a9d1bab04)