The BEGIN regular expression in the awk script detector in magic/Magdir/commands in file…
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- — Not recorded in CVSS 2.0
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- None · None · Partial
- Fix status
- Partial Red Hat: 13 fixed, 1 without a fix
Attack profile from CVSS 2.0 · NVD. Fix status from CNA and Red Hat.
Summary
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 it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
CPE configurations NVD · 5
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:christos_zoulas:file:*:*:*:*:*:*:*:* | before 5.15 | Vulnerable | Christos Zoulas |
| cpe:2.3:a:php:php:*:*:*:*:*:*:*:* | 5.4.0 to before 5.4.27; 5.5.0 to before 5.5.11 | Vulnerable | PHP |
| cpe:2.3:o:debian:debian_linux:6.0:*:*:*:*:*:*:* | 6.0 | Vulnerable | Debian |
| cpe:2.3:o:debian:debian_linux:7.0:*:*:*:*:*:*:* | 7.0 | Vulnerable | Debian |
| cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* | 8.0 | Vulnerable | Debian |
- cpe:2.3:a:christos_zoulas:file:*:*:*:*:*:*:*:* Versions before 5.15 Vulnerable ·Christos Zoulas
- cpe:2.3:a:php:php:*:*:*:*:*:*:*:* Versions 5.4.0 to before 5.4.27; 5.5.0 to before 5.5.11 Vulnerable ·PHP
- cpe:2.3:o:debian:debian_linux:6.0:*:*:*:*:*:*:* Versions 6.0 Vulnerable ·Debian
- cpe:2.3:o:debian:debian_linux:7.0:*:*:*:*:*:*:* Versions 7.0 Vulnerable ·Debian
- cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* Versions 8.0 Vulnerable ·Debian
Remediation
Red Hat 2 advisories
- RHSA-2014:1765 Released 2014-10-30 · Red Hat rating Importantphp54-php security update
- Red Hat Software Collections 1 for Red Hat Enterprise Linux Server (v. 6) php54-php-5.4.16-22.el6, php54-php-bcmath-5.4.16-22.el6, php54-php-cli-5.4.16-22.el6 +22
- Red Hat Software Collections 1 for Red Hat Enterprise Linux Server (v. 7) php54-php-5.4.16-22.el7, php54-php-bcmath-5.4.16-22.el7, php54-php-cli-5.4.16-22.el7 +20
- Red Hat Software Collections 1 for Red Hat Enterprise Linux Server EUS (v. 6.4) php54-php-5.4.16-22.el6, php54-php-bcmath-5.4.16-22.el6, php54-php-cli-5.4.16-22.el6 +22
- Red Hat Software Collections 1 for Red Hat Enterprise Linux Server EUS (v. 6.5) php54-php-5.4.16-22.el6, php54-php-bcmath-5.4.16-22.el6, php54-php-cli-5.4.16-22.el6 +22
- Red Hat Software Collections 1 for Red Hat Enterprise Linux Server EUS (v. 6.6) php54-php-5.4.16-22.el6, php54-php-bcmath-5.4.16-22.el6, php54-php-cli-5.4.16-22.el6 +22
- Red Hat Software Collections 1 for Red Hat Enterprise Linux Workstation (v. 6) php54-php-5.4.16-22.el6, php54-php-bcmath-5.4.16-22.el6, php54-php-cli-5.4.16-22.el6 +22
- Red Hat Software Collections 1 for Red Hat Enterprise Linux Workstation (v. 7) php54-php-5.4.16-22.el7, php54-php-bcmath-5.4.16-22.el7, php54-php-cli-5.4.16-22.el7 +20
- RHSA-2014:1013 Released 2014-08-06 · Red Hat rating Moderatephp security update
- Red Hat Enterprise Linux Client Optional (v. 7) php-5.4.16-23.el7_0, php-bcmath-5.4.16-23.el7_0, php-cli-5.4.16-23.el7_0 +22
- Red Hat Enterprise Linux ComputeNode Optional (v. 7) php-5.4.16-23.el7_0, php-bcmath-5.4.16-23.el7_0, php-cli-5.4.16-23.el7_0 +22
- Red Hat Enterprise Linux Server (v. 7) php-5.4.16-23.el7_0, php-cli-5.4.16-23.el7_0, php-common-5.4.16-23.el7_0 +11
- Red Hat Enterprise Linux Server Optional (v. 7) php-bcmath-5.4.16-23.el7_0, php-dba-5.4.16-23.el7_0, php-devel-5.4.16-23.el7_0 +8
- Red Hat Enterprise Linux Workstation (v. 7) php-5.4.16-23.el7_0, php-cli-5.4.16-23.el7_0, php-common-5.4.16-23.el7_0 +11
- Red Hat Enterprise Linux Workstation Optional (v. 7) php-bcmath-5.4.16-23.el7_0, php-dba-5.4.16-23.el7_0, php-devel-5.4.16-23.el7_0 +8
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Software Collections | Affected | No fix yet |
| Red Hat Enterprise Linux Client Optional (v. 7) | Fixed | RHSA-2014:1013 |
| Red Hat Enterprise Linux ComputeNode Optional (v. 7) | Fixed | RHSA-2014:1013 |
| Red Hat Enterprise Linux Server (v. 7) | Fixed | RHSA-2014:1013 |
| Red Hat Enterprise Linux Server Optional (v. 7) | Fixed | RHSA-2014:1013 |
| Red Hat Enterprise Linux Workstation (v. 7) | Fixed | RHSA-2014:1013 |
| Red Hat Enterprise Linux Workstation Optional (v. 7) | Fixed | RHSA-2014:1013 |
| Red Hat Software Collections 1 for Red Hat Enterprise Linux Server (v. 6) | Fixed | RHSA-2014:1765 |
| Red Hat Software Collections 1 for Red Hat Enterprise Linux Server (v. 7) | Fixed | RHSA-2014:1765 |
| Red Hat Software Collections 1 for Red Hat Enterprise Linux Server EUS (v. 6.4) | Fixed | RHSA-2014:1765 |
| Red Hat Software Collections 1 for Red Hat Enterprise Linux Server EUS (v. 6.5) | Fixed | RHSA-2014:1765 |
| Red Hat Software Collections 1 for Red Hat Enterprise Linux Server EUS (v. 6.6) | Fixed | RHSA-2014:1765 |
| Red Hat Software Collections 1 for Red Hat Enterprise Linux Workstation (v. 6) | Fixed | RHSA-2014:1765 |
| Red Hat Software Collections 1 for Red Hat Enterprise Linux Workstation (v. 7) | Fixed | RHSA-2014:1765 |
Not affected: 3 products
- Red Hat Enterprise Linux 5
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
Timeline
- 2026-10-02 Threatist record created from CVE-2013-7345
- 2026-10-03 Alias added: GHSA-63f8-4qqh-pqqj
References
Sources
- CVE-2013-7345 · CVE Program
- CVE-2013-7345 · NVD
- FIRST EPSS
- GHSA-63f8-4qqh-pqqj · GitHub Advisory Database · CC BY 4.0
- CVE-2013-7345 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences