UBBThreads is php not cgi.
There is one cgi file that you might still be using it is a redirector for visitors that bookmarked a old link to a classic board.
Called ultimatebb.cgi
But thats it everything else is php
Maybe you are still getting hits on that file if you have it.