Apache httpd security: patching, advisories and hardening

Updated November 2026

Keeping Apache safe is mostly routine work. Install security updates as soon as they appear, for httpd and for everything that runs behind it. Load only the modules you need, and know where the httpd team announces fixes. This section covers each step.

Distribution packages or upstream

There are two ways to get Apache httpd, and they are patched differently:

Because of backports, a distribution package can report an older version, such as 2.4.66, and still contain fixes from 2.4.67 or later. Read Vulnerabilities (CVEs) for how to check this on your system.

Where fixes are announced

To report a new vulnerability, use the process on the project's security reports page, which sends it to the ASF security team privately. Do not post it in a public bug report.

Apply an update safely

Check the configuration, install the update, then restart. A full restart (not a graceful reload) makes sure the main process and every module run the new code. A restart drops open connections for a moment, so schedule it if the server is busy.

# Debian, Ubuntu
sudo apt update
sudo apt install --only-upgrade apache2   # also updates apache2-bin and apache2-data
sudo apache2ctl -t
sudo systemctl restart apache2      # restarts the service

# RHEL, AlmaLinux, Rocky, Fedora
sudo dnf upgrade httpd               # also updates mod_ssl and other httpd subpackages
sudo apachectl configtest
sudo systemctl restart httpd        # restarts the service

Then confirm the running version and that the site answers:

apachectl -v
curl -sI https://www.example.com/ | head -1

If you are still on Apache 2.2 or older, no fixes exist for you at all. Plan the move with Upgrade 2.2 to 2.4.

In this section

Sources