What’s Vulnerable › Vulnerabilities
CVE-2013-7345
- Severity: medium (CVSS 5.0 v2.0)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 3.0% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2014-03-24 · updated 2026-06-17
Description
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.
Affected products
- Christos Zoulas File: before 5.15 — fixed in 5.15
- Debian Linux: 6.0, 7.0, 8.0
- PHP: from 5.4.0 before 5.4.27; from 5.5.0 before 5.5.11 — fixed in 5.4.27, 5.5.11
How to fix
Upgrade to a fixed version: Christos Zoulas File 5.15; PHP 5.4.27, 5.5.11. Check the vendor advisory for mitigations.
References
- http://bugs.gw.com/view.php?id=164
- http://rhn.redhat.com/errata/RHSA-2014-1765.html
- http://support.apple.com/kb/HT6443
- http://www.debian.org/security/2014/dsa-2873
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=703993
- https://github.com/file/file/commit/ef2329cf71acb59204dd981e2c6cce6c81fe467c
- http://bugs.gw.com/view.php?id=164
- http://rhn.redhat.com/errata/RHSA-2014-1765.html
- http://support.apple.com/kb/HT6443
- http://www.debian.org/security/2014/dsa-2873
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=703993
- https://github.com/file/file/commit/ef2329cf71acb59204dd981e2c6cce6c81fe467c
Get alerted when CVE-2013-7345 or the next vulnerability affects your stack