How to Remove Apache on macOS Monterrey

I recently was informed that I had a vulnerability reported by Tenable - "Apache 2.4.x < 2.4.54 Multiple Vulnerabilities". I'm running the latest update - 12.5.1 of macOS. Is there a simple way to remove all the files that would show up on a security scan? I have no need to run apache on my MacBook. I have looked through many online forums and I've been able to disable, but not remove the files.


Any help is greatly appreciated.


Thanks,


-Ted

MacBook Pro 16″, macOS 12.5

Posted on Aug 29, 2022 2:12 PM

Reply
7 replies

Aug 30, 2022 1:20 PM in response to tedwill

tedwill wrote:

If it's not enabled, why can't the files be removed?

As others have said, it is part of the operating system, which resides on a read-only, cryptographically sealed volume. The only way Apache is getting updated is with a software update from Apple.

I was able to get an exception to using Macs in my company. Many of our developers are using them now, and the Apache files are raising red flags with our auditors.

It sounds like you, or your auditors have some difficult decisions to make. Apple makes consumer devices. Lots of enterprise people use Apple devices anyway. But it is important to remember that enterprise users aren't Apple's target audience. Apple fundamentally doesn't care about your auditors.

Aside from waiting for the next security update from Apple, can I just install (upgrade) the latest version of Apache, which does contain the fixes -version 2.4.54 (the current macOS build for Apache is 2.4.53)?

As others have said, not really. You can install a newer version of Apache in addition to the system version. But you can't remove the system version.


Furthermore, all of this will be repeated with the next set of security patches from Apache, or zsh, or libxml, or any of a few hundred other open-source packages. If you want to use Macs, you really should develop a better understanding of the security context of the Apple market. Your auditors have no clue. There are steps you can take to improve your security while still using any of those built-in, but disabled developer tools. But to do that, you need a better understanding of what's going on, both on the Mac and in the media. Otherwise, you stand a real risk of satisfying the auditors only to make your Macs much more vulnerable to real-world exploits.

Aug 30, 2022 10:02 AM in response to tedwill

tedwill wrote:

If it's not enabled, why can't the files be removed? I was able to get an exception to using Macs in my company. Many of our developers are using them now, and the Apache files are raising red flags with our auditors.

Aside from waiting for the next security update from Apple, can I just install (upgrade) the latest version of Apache, which does contain the fixes -version 2.4.54 (the current macOS build for Apache is 2.4.53)?

Thanks!

You could install that version of apache, but it won't update the built-in version.

I'm not sure whether the http daemon is stored in the sealed snapshot or just protected by SIP. If you disable SIP, you might be able to delete it.

However, you will never appease the auditors. They have no capacity to understand the security model. They only understand scripts that tell them, "package x--bad, must correct."

The fact that the server is not running and would require root to enable the server does not enter into their calculus.

There are many unused software tools installed by default on macOS and they are rarely updated in any timely manner. If it is some form of exploit that Apple knows is being actively exploited, they may update it in a security update.

Aug 29, 2022 5:53 PM in response to tedwill

tedwill wrote:

I recently was informed that I had a vulnerability reported by Tenable - "Apache 2.4.x < 2.4.54 Multiple Vulnerabilities". I'm running the latest update - 12.5.1 of macOS. Is there a simple way to remove all the files that would show up on a security scan? I have no need to run apache on my MacBook. I have looked through many online forums and I've been able to disable, but not remove the files.

Apache is not enabled by default. It is impossible to remove.

Aug 29, 2022 6:00 PM in response to tedwill

tedwill wrote:

I recently was informed that I had a vulnerability reported by Tenable - "Apache 2.4.x < 2.4.54 Multiple Vulnerabilities". I'm running the latest update - 12.5.1 of macOS. Is there a simple way to remove all the files that would show up on a security scan? I have no need to run apache on my MacBook. I have looked through many online forums and I've been able to disable, but not remove the files.

Any help is greatly appreciated.

Thanks,

-Ted


Apache is built into the macOS — I would not consider it vulnerable. it is a built-in web server.


If you don't need it don't use it. Simple as that.


however it is advised Uninstall all third party apps that are Cleaners/Optimizers/VPN/Anti-Virus

all known to cause issues on the macOS


Aug 30, 2022 8:52 AM in response to etresoft

If it's not enabled, why can't the files be removed? I was able to get an exception to using Macs in my company. Many of our developers are using them now, and the Apache files are raising red flags with our auditors.


Aside from waiting for the next security update from Apple, can I just install (upgrade) the latest version of Apache, which does contain the fixes -version 2.4.54 (the current macOS build for Apache is 2.4.53)?


Thanks!

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to Remove Apache on macOS Monterrey

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.