CVE-2013-7345
Summary
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.
Impact & exploitability
AV:N/AC:L/Au:N/C:N/I:N/A:P
Affected products we track (1)
Recommendation
Apply the vendor fix in your normal patch cycle. Open any affected product above for its exact safe version.
Official patch: http://bugs.gw.com/view.php?id=164 ↗
Additional information
- NVD record
- http://bugs.gw.com/view.php?id=164Patch
- https://github.com/file/file/commit/ef2329cf71acb59204dd981e2c6cce6c81fe467cPatch
- http://rhn.redhat.com/errata/RHSA-2014-1765.htmlAdvisory
- http://support.apple.com/kb/HT6443Advisory
- http://www.debian.org/security/2014/dsa-2873Advisory
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=703993Advisory