CVE-2013-7345: Medium severity Christos Zoulas file vulnerability
A flaw was reported in the rules file uses to detect AWK scripts. A malicious input file could cause the file utility to use 100% CPU.
Upstream bug: http://bugs.gw.com/view.php?id=164 Upstream fix: https://github.com/file/file/commit/ef2329cf71acb59204dd981e2c6cce6c81fe467c
Other sources
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 Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/fileto a version that resolves this vulnerability.Fixed in 5.04-5+squeeze4Fixed in 5.11-2+deb7u2Fixed in 1:5.17-0.1 - Upgrade
Upgrade
debian/php5to a version that resolves this vulnerability.Fixed in 5.4.34-0+deb7u1Fixed in 5.6.0+dfsg-1 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 5.15
Event History
Frequently Asked Questions
What is the severity of CVE-2013-7345?
CVE-2013-7345 is classified as a denial of service vulnerability due to excessive CPU consumption.
How do I fix CVE-2013-7345?
To mitigate CVE-2013-7345, update the affected file utility to version 5.15 or later.
What software is affected by CVE-2013-7345?
CVE-2013-7345 affects the 'file' utility versions prior to 5.15 and specific versions of PHP on various Debian Linux distributions.
What type of attack does CVE-2013-7345 enable?
CVE-2013-7345 allows attackers to cause a denial of service by using crafted ASCII files that exploit the vulnerable regular expression.
When was CVE-2013-7345 reported?
CVE-2013-7345 was reported in 2013 and affects several versions of file and PHP utilities.