
CVE catalog
CVE-2013-7345
file: CVE-2013-7345
- Severity
- Medium
- Published
- Source
- [NVD] · [CVE record]
- EPSS
- 3.04% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | file | sid | 1:5.47-4 | fixed |
| Debian | file | forky | 1:5.47-4 | fixed |
| Debian | file | trixie | 1:5.46-5 | fixed |
| Debian | file | bookworm | 1:5.44-3 | fixed |
| Ubuntu | file | 14.04 | 5.11-2ubuntu4 | vulnerable |
| Ubuntu | file | 14.04 | 1:5.14-2ubuntu1 | vulnerable |
| Ubuntu | file | 14.04 | 1:5.14-2ubuntu2 | vulnerable |
| Ubuntu | file | 14.04 | 1:5.14-2ubuntu3 | vulnerable |
| Ubuntu | file | 14.04 | 1:5.14-2ubuntu3.1 | fixed |
| Ubuntu | file | 14.04 | 5.11-2ubuntu4 | vulnerable |
| Ubuntu | file | 14.04 | 1:5.14-2ubuntu1 | vulnerable |
| Ubuntu | file | 14.04 | 1:5.14-2ubuntu2 | vulnerable |
| Ubuntu | file | 14.04 | 1:5.14-2ubuntu3 | vulnerable |
| Ubuntu | file | 14.04 | 1:5.14-2ubuntu3.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | file | source | sid | 1:5.17-0.1 | not yet assigned | Not reported | [703993] |
| Debian | file | source | forky | 1:5.17-0.1 | not yet assigned | Not reported | [703993] |
| Debian | file | source | trixie | 1:5.17-0.1 | not yet assigned | Not reported | [703993] |
| Debian | file | source | bookworm | 1:5.17-0.1 | not yet assigned | Not reported | [703993] |
| Ubuntu | file | deb | 14.04 | 1:5.14-2ubuntu3.1 | Not reported | UBUNTU-CVE-2013-7345 | Not reported |
| Ubuntu | file | deb | 14.04 | 1:5.14-2ubuntu3.1 | Not reported | USN-2278-1 | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [file]Fixed
Details (2)
1:5.44-3· amd64 · bookwormFixed · Fixed:
1:5.17-0.1dsa · file · debian · bookworm; dsa · file · debian · 12
1:5.44-3· arm64 · bookwormFixed · Fixed:
1:5.17-0.1dsa · file · debian · bookworm; dsa · file · debian · 12
- [libmagic1]Fixed
Source package: [file]
Details (2)
1:5.44-3· amd64 · bookwormFixed · Fixed:
1:5.17-0.1dsa · file · debian · bookworm; dsa · file · debian · 12
1:5.44-3· arm64 · bookwormFixed · Fixed:
1:5.17-0.1dsa · file · debian · bookworm; dsa · file · debian · 12
- [libmagic-dev]Fixed
Source package: [file]
Details (2)
1:5.44-3· amd64 · bookwormFixed · Fixed:
1:5.17-0.1dsa · file · debian · bookworm; dsa · file · debian · 12
1:5.44-3· arm64 · bookwormFixed · Fixed:
1:5.17-0.1dsa · file · debian · bookworm; dsa · file · debian · 12
- [libmagic-mgc]Fixed
Source package: [file]
Details (2)
1:5.44-3· amd64 · bookwormFixed · Fixed:
1:5.17-0.1dsa · file · debian · bookworm; dsa · file · debian · 12
1:5.44-3· arm64 · bookwormFixed · Fixed:
1:5.17-0.1dsa · file · debian · bookworm; dsa · file · debian · 12
[Debian 13 (Trixie)]
- [file]Fixed
Details (2)
1:5.46-5· amd64 · trixieFixed · Fixed:
1:5.17-0.1dsa · file · debian · 13
1:5.46-5· arm64 · trixieFixed · Fixed:
1:5.17-0.1dsa · file · debian · 13
- [libmagic1t64]Fixed
Source package: [file]
Details (2)
1:5.46-5· amd64 · trixieFixed · Fixed:
1:5.17-0.1dsa · file · debian · 13
1:5.46-5· arm64 · trixieFixed · Fixed:
1:5.17-0.1dsa · file · debian · 13
- [libmagic-dev]Fixed
Source package: [file]
Details (2)
1:5.46-5· amd64 · trixieFixed · Fixed:
1:5.17-0.1dsa · file · debian · 13
1:5.46-5· arm64 · trixieFixed · Fixed:
1:5.17-0.1dsa · file · debian · 13
- [libmagic-mgc]Fixed
Source package: [file]
Details (2)
1:5.46-5· amd64 · trixieFixed · Fixed:
1:5.17-0.1dsa · file · debian · 13
1:5.46-5· arm64 · trixieFixed · Fixed:
1:5.17-0.1dsa · file · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/rhsa-2014_1013.json]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2013-7345]
- [https://osv.dev/vulnerability/DSA-2873-1]
- [https://osv.dev/vulnerability/DSA-3064-1]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2013-7345]
- [https://osv.dev/vulnerability/USN-2278-1]
- [https://security-tracker.debian.org/tracker/CVE-2013-7345]
- [https://security.access.redhat.com/data/csaf/v2/vex/2013/cve-2013-7345.json]
[Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]