file: extensive backtracking in awk rule regular expression
Published Mar 23, 2014
5.0
MEDIUMCVSS 2.0
EPSS 3.04%
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
No data.
Configuration 1
- < 5.15
Configuration 3
- 6.0
- 7.0
- 8.0
No data.
Red Hat Enterprise Linux 7
php-0:5.4.16-23.el7_0
Fixed · RHSA-2014:1013
Red Hat Software Collections 1 for Red Hat Enterprise Linux 6
php54-php-0:5.4.16-22.el6
Fixed · RHSA-2014:1765
Red Hat Software Collections 1 for Red Hat Enterprise Linux 6.4 EUS
php54-php-0:5.4.16-22.el6
Fixed · RHSA-2014:1765
Red Hat Software Collections 1 for Red Hat Enterprise Linux 6.5 EUS
php54-php-0:5.4.16-22.el6
Fixed · RHSA-2014:1765
Red Hat Software Collections 1 for Red Hat Enterprise Linux 6.6 EUS
php54-php-0:5.4.16-22.el6
Fixed · RHSA-2014:1765
Red Hat Software Collections 1 for Red Hat Enterprise Linux 7
php54-php-0:5.4.16-22.el7
Fixed · RHSA-2014:1765
Red Hat Enterprise Linux 5
cdrtools
Not affected
Red Hat Enterprise Linux 5
file
Not affected
Red Hat Enterprise Linux 5
php
Not affected
Red Hat Enterprise Linux 5
php53
Not affected
Red Hat Enterprise Linux 5
rpm
Not affected
Red Hat Enterprise Linux 6
file
Not affected
Red Hat Enterprise Linux 6
php
Not affected
Red Hat Enterprise Linux 7
file
Not affected
Red Hat Software Collections
php55-php
Affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 7 | php-0:5.4.16-23.el7_0 | Fixed | RHSA-2014:1013 |
| Red Hat Software Collections 1 for Red Hat Enterprise Linux 6 | php54-php-0:5.4.16-22.el6 | Fixed | RHSA-2014:1765 |
| Red Hat Software Collections 1 for Red Hat Enterprise Linux 6.4 EUS | php54-php-0:5.4.16-22.el6 | Fixed | RHSA-2014:1765 |
| Red Hat Software Collections 1 for Red Hat Enterprise Linux 6.5 EUS | php54-php-0:5.4.16-22.el6 | Fixed | RHSA-2014:1765 |
| Red Hat Software Collections 1 for Red Hat Enterprise Linux 6.6 EUS | php54-php-0:5.4.16-22.el6 | Fixed | RHSA-2014:1765 |
| Red Hat Software Collections 1 for Red Hat Enterprise Linux 7 | php54-php-0:5.4.16-22.el7 | Fixed | RHSA-2014:1765 |
| Red Hat Enterprise Linux 5 | cdrtools | Not affected | n/a |
| Red Hat Enterprise Linux 5 | file | Not affected | n/a |
| Red Hat Enterprise Linux 5 | php | Not affected | n/a |
| Red Hat Enterprise Linux 5 | php53 | Not affected | n/a |
| Red Hat Enterprise Linux 5 | rpm | Not affected | n/a |
| Red Hat Enterprise Linux 6 | file | Not affected | n/a |
| Red Hat Enterprise Linux 6 | php | Not affected | n/a |
| Red Hat Enterprise Linux 7 | file | Not affected | n/a |
| Red Hat Software Collections | php55-php | Affected | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
This issue did not affect the versions of file as shipped with Red Hat Enterprise Linux 5, 6, and 7, the versions of php as shipped with Red Hat Enterprise Linux 5 and 6, and the versions of php53 as shipped with Red Hat Enterprise Linux 5.
References (11)
- http://bugs.gw.com/view.php?id=164 x_refsource_CONFIRMBroken LinkExploitIssue TrackingPatchThird Party Advisory
- http://rhn.redhat.com/errata/RHSA-2014-1765.html vendor-advisoryx_refsource_REDHATThird Party Advisory
- http://support.apple.com/kb/HT6443 x_refsource_CONFIRMThird Party Advisory
- http://www.debian.org/security/2014/dsa-2873 vendor-advisoryx_refsource_DEBIANThird Party Advisory
- https://access.redhat.com/security/cve/CVE-2013-7345 Vendor Advisory
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=703993 x_refsource_CONFIRMIssue TrackingThird Party Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1079846 Issue Tracking
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2013-7117 Advisory
- https://github.com/file/file/commit/ef2329cf71acb59204dd981e2c6cce6c81fe467c x_refsource_CONFIRMExploitPatchThird Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2013-7345
- https://www.cve.org/CVERecord?id=CVE-2013-7345
| Link | Providers | Tags |
|---|---|---|
| http://bugs.gw.com/view.php?id=164 | x_refsource_CONFIRMBroken LinkExploitIssue TrackingPatchThird Party Advisory | |
| http://rhn.redhat.com/errata/RHSA-2014-1765.html | vendor-advisoryx_refsource_REDHATThird Party Advisory | |
| http://support.apple.com/kb/HT6443 | x_refsource_CONFIRMThird Party Advisory | |
| http://www.debian.org/security/2014/dsa-2873 | vendor-advisoryx_refsource_DEBIANThird Party Advisory | |
| https://access.redhat.com/security/cve/CVE-2013-7345 | Vendor Advisory | |
| https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=703993 | x_refsource_CONFIRMIssue TrackingThird Party Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=1079846 | Issue Tracking | |
| https://euvd.enisa.europa.eu/vulnerability/EUVD-2013-7117 | Advisory | |
| https://github.com/file/file/commit/ef2329cf71acb59204dd981e2c6cce6c81fe467c | x_refsource_CONFIRMExploitPatchThird Party Advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2013-7345 | ||
| https://www.cve.org/CVERecord?id=CVE-2013-7345 |
Change history (0)
No recorded changes yet.