CVE-2013-7345: Medium severity Christos Zoulas file vulnerability

Published Mar 23, 2014
·
Updated

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

8 affected componentsFixes available
Christos Zoulas file<5.15
PHP PHP>=5.4.0<5.4.27
PHP PHP>=5.5.0<5.5.11
Debian Debian Linux=6.0
Debian Debian Linux=7.0
Debian Debian Linux=8.0
debian/file
5.04-5+squeeze45.11-2+deb7u21:5.17-0.1
debian/php5
5.4.34-0+deb7u15.6.0+dfsg-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/file to a version that resolves this vulnerability.

    Fixed in 5.04-5+squeeze4Fixed in 5.11-2+deb7u2Fixed in 1:5.17-0.1
  2. Upgrade

    Upgrade debian/php5 to a version that resolves this vulnerability.

    Fixed in 5.4.34-0+deb7u1Fixed in 5.6.0+dfsg-1
  3. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 5.15

Event History

Mar 23, 2014
CVE Published
via MITRE·03:00 PM
Data Sourced
via MITRE·03:00 PM
Description
Mar 24, 2014
Data Sourced
via Red Hat·06:45 AM
DescriptionSeverityAffected Software
Data Sourced
04:31 PM
RemedyDescriptionSeverityAffected Software
May 6, 2026
Updated
via NVD·10:30 PM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2013-7345?

CVE-2013-7345 is classified as a denial of service vulnerability due to excessive CPU consumption.

2

How do I fix CVE-2013-7345?

To mitigate CVE-2013-7345, update the affected file utility to version 5.15 or later.

3

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.

4

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.

5

When was CVE-2013-7345 reported?

CVE-2013-7345 was reported in 2013 and affects several versions of file and PHP utilities.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203