softmagic.c in file before 5.21 does not properly limit recursion, which allows remote attackers to cause a denial of service (CPU consumption or crash) via unspecified vectors.
https://www.freebsd.org/security/advisories/FreeBSD-SA-14:28.file.asc
https://github.com/file/file/commit/6f737ddfadb596d7d4a993f7ed2141ffd664a81c
https://github.com/file/file/blob/00cef282a902a4a6709bbbbb933ee397768caa38/ChangeLog
http://www.ubuntu.com/usn/USN-2535-1
http://www.ubuntu.com/usn/USN-2494-1
http://www.securitytracker.com/id/1031344
http://www.securityfocus.com/bid/71692
http://www.oracle.com/technetwork/topics/security/linuxbulletinoct2015-2719645.html
http://www.oracle.com/technetwork/topics/security/linuxbulletinapr2016-2952096.html
http://secunia.com/advisories/62081
http://secunia.com/advisories/61944
http://seclists.org/oss-sec/2014/q4/1056