Skip to content
OpenAdvisories
Unscored CVE-2013-7345 EUVD-2013-7117GHSA-63f8-4qqh-pqqj

The BEGIN regular expression in the awk script detector in magic/Magdir/commands in file before 5.15 uses multiple wildcards with unlimited…

Published Mar 23, 2014 · Updated Aug 6, 2024 · Assigned by mitre

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 file 1:5.17-0.1 —
Debian 13 file 1:5.17-0.1 —
Debian 12 file 1:5.17-0.1 —
Debian 7 file 5.11-2+deb7u2 DSA-2873-1
Debian 7 php5 5.4.34-0+deb7u1 DSA-3064-1
Debian 6.0 file 5.04-5+squeeze4 DSA-2873-1
ReleasePackageFixed inAdvisory
Ubuntu 14.04 LTS file 1:5.14-2ubuntu3.1 USN-2278-1
ReleasePackageFixed inAdvisory
RHEL 7 php +24 5.4.16-23.el7_0 RHSA-2014:1013
RHEL 1 php54-php +24 5.4.16-22.el6 RHSA-2014:1765
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed php5 5.6.28-1.1 openSUSE-SU-2024:10344-1
openSUSE Tumbleweed php7 7.0.14-1.4 openSUSE-SU-2024:10290-1
openSUSE Tumbleweed php8 8.0.11-1.1 openSUSE-SU-2024:11169-1

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 7 php +24 5.4.16-23.el7_0 ELSA-2014-1013

Advisories 9

References