CVE-2013-7345

Public Exploit

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.

5.0
CVSS
Severity: Medium
CVSS 2.0 •
EPSS 1.32% Top 25%
Vendor Advisory redhat.com Vendor Advisory debian.org
Affected: n/a n/a
Published at:
Updated at:

References

Link Tags
https://github.com/file/file/commit/ef2329cf71acb59204dd981e2c6cce6c81fe467c exploit third party advisory patch
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=703993 issue tracking third party advisory
http://bugs.gw.com/view.php?id=164 issue tracking patch exploit third party advisory broken link
http://support.apple.com/kb/HT6443 third party advisory
http://rhn.redhat.com/errata/RHSA-2014-1765.html third party advisory vendor advisory
http://www.debian.org/security/2014/dsa-2873 third party advisory vendor advisory

Frequently Asked Questions

What is the severity of CVE-2013-7345?
CVE-2013-7345 has been scored as a medium severity vulnerability.
How to fix CVE-2013-7345?
To fix CVE-2013-7345, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2013-7345 being actively exploited in the wild?
It is possible that CVE-2013-7345 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~1% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.