We have a security scan that is showing we have an unpatched version of Apache on our client Macs. It's not running. But the fact that it is there at all shows it as a security issue. I have been looking for a way to get it updated to resolve the vulnerability, but it appears that it is only updated via Security Updates from Apple. And Apple is not keeping current. Even the new Monterey OS that came out this week has an old version of Apache in it and no way to upgrade.
Our solution was probably not the best, but seems to work. We just removed the Apache folder from the client systems via a policy.
We created a new policy, scoped it to where we need it, set it to run once a day at check-in and configured Files and Processes to Execute Command:
sudo rm -rf /etc/apache2/
This removes Apache and the vulnerability scan comes back clean now. I wish there were an easy way to patch the built-in Apache, but Apache.org has no Mac updater, and Apple said they don't support it - check with Apache.org (who has no support other than community support via Usenet or a mail list). So this was our un-elegant solution. I hope it saves someone else some time.
