CVE-2013-7345: The BEGIN regular expression in the awk script detector in magic/Magdir/commands in file before 5.15 uses mult
CVE-2013-7345 is a medium-severity flaw (CVSS 5.0) affecting file, php, debian linux. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- Public exploit reference
- On your watchlist
A fixed release or distro patch exists.
Risk facts
| CVSS score | 5.0 (Medium) |
| EPSS exploit chance | 3.0% (top 12%) |
| CISA exploited list | No |
| Published | 2014-03-24 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2013-7345?
file: upgrade to 5.15; php: upgrade to 5.4.27, 5.5.11; debian linux: mitigate or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2013-7345 being exploited?
CVE-2013-7345 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2013-7345 affect?
CVE-2013-7345 affects file, php, debian linux. Severity is medium (CVSS 5.0). 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)
How urgent is CVE-2013-7345?
Priority 49/100. Public exploit reference; On your watchlist
Software pages
PHP vulnerabilities · Debian vulnerabilities
Related CVEs
- CVE-2019-8906 MEDIUM 4.4 DOWNGRADE MITIGATE do_core_note in readelf.c in libmagic.a in file 5.35 has an out-of-bounds read because memcpy is misused.
- CVE-2022-48554 MEDIUM 5.5 DOWNGRADE MITIGATE File before 5.43 has an stack-based buffer over-read in file_copystr in funcs.c
- CVE-2019-8907 HIGH 8.8 DOWNGRADE MITIGATE do_core_note in readelf.c in libmagic.a in file 5.35 allows remote attackers to cause a denial of service (sta
- CVE-2019-8905 MEDIUM 4.4 MITIGATE DOWNGRADE do_core_note in readelf.c in libmagic.a in file 5.35 has a stack-based buffer over-read, related to file_print
- CVE-2019-8904 HIGH 8.8 DOWNGRADE MITIGATE do_bid_note in readelf.c in libmagic.a in file 5.35 has a stack-based buffer over-read, related to file_printf