{"id":"UBUNTU-CVE-2013-7345","details":"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.","modified":"2026-04-22T09:25:57.305585Z","published":"2014-03-24T00:00:00Z","related":["USN-2278-1"],"upstream":["CVE-2013-7345"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2013-7345"},{"type":"REPORT","url":"https://github.com/file/file/commit/ef2329cf71acb59204dd981e2c6cce6c81fe467c"},{"type":"REPORT","url":"http://bugs.gw.com/view.php?id=164"},{"type":"REPORT","url":"http://www.debian.org/security/2014/dsa-2873"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-2278-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2013-7345"}],"affected":[{"package":{"name":"file","ecosystem":"Ubuntu:14.04:LTS","purl":"pkg:deb/ubuntu/file@1:5.14-2ubuntu3.1?arch=source&distro=trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:5.14-2ubuntu3.1"}]}],"versions":["5.11-2ubuntu4","1:5.14-2ubuntu1","1:5.14-2ubuntu2","1:5.14-2ubuntu3"],"ecosystem_specific":{"binaries":[{"binary_version":"1:5.14-2ubuntu3.1","binary_name":"file"},{"binary_version":"1:5.14-2ubuntu3.1","binary_name":"libmagic1"},{"binary_version":"1:5.14-2ubuntu3.1","binary_name":"python-magic"},{"binary_version":"1:5.14-2ubuntu3.1","binary_name":"python3-magic"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2013/UBUNTU-CVE-2013-7345.json"}}],"schema_version":"1.7.5","severity":[{"type":"Ubuntu","score":"low"}]}