jsparse.c in Artifex MuJS through 1.0.2 does not properly maintain the AST depth for binary expressions, which allows remote attackers to cause a denial of service (excessive recursion) via a crafted file.
https://www.exploit-db.com/exploits/43904/
https://bugs.ghostscript.com/show_bug.cgi?id=698868
http://www.securityfocus.com/bid/102833
http://git.ghostscript.com/?p=mujs.git%3Ba=commit%3Bh=4d45a96e57fbabf00a7378b337d0ddcace6f38c1