/usr/lib/cgi-bin/mimetex.cgi is in mimetex 1.76-1.
This file is owned by root:root, with mode 0o777.
It is a symlink to /usr/lib/cgi-bin/../../bin/mimetex
/usr/lib/cgi-bin/../../bin/mimetex