/usr/lib/cgi-bin/query.cgi is in viewvc-query 1.1.22-1+deb8u1.
This file is owned by root:root, with mode 0o777.
It is a symlink to /usr/lib/cgi-bin/../viewvc/cgi-bin/query.cgi
/usr/lib/cgi-bin/../viewvc/cgi-bin/query.cgi