How To

Patch Apache CVE-2026-119618 (mod_http2 RCE) on Debian 13 / 12

On 11 November 2026, Apache disclosed CVE-2026-119618, a critical heap corruption in mod_http2 that can lead to remote code execution, and fixed it in 2.4.71. The apache2 package in Debian does not load mod_http2 by default, but once someone runs a2enmod http2 the stock config offers HTTP/2 over TLS and cleartext h2c on port 80. This guide shows how to patch Apache CVE-2026-119618 on Debian 13 and Debian 12, and how to prove the fixed code is what actually answers requests.

Original content from computingforgeeks.com - post 189517

The upgrade itself takes a minute. The step people skip is the restart, because apache2 -v reports the new version even while the old binary is still serving. We cover that check, plus a fallback for hosts that cannot restart yet. All of it was tested in November 2026 on fresh Debian 13.7 and Debian 12.15 servers with HTTP/2 on both vhosts. No step weakens TLS or opens a port to get there.

Where Debian 13 and Debian 12 stand

The fix reached both releases on 12 November, but the paperwork differs. Debian announced DSA-6620-1 for trixie, and it only names the stable distribution. The security archive for bookworm carries the same upstream release, yet no DSA or DLA announces it, and the Debian security tracker entry still lists the bookworm-security build as vulnerable. The table records how things looked when we checked on 12 November 2026. For Ubuntu and the RHEL family, use the Apache CVE-2026-119618 check and patch guide for other distros. A server managed by DirectAdmin is different again: CustomBuild compiles its own Apache, so apt never touches it, and the DirectAdmin CustomBuild Apache patch is the guide to follow there.

ReleaseVulnerable (these and any earlier build)Fixed buildAdvisoryTracker status
Debian 13 (trixie)2.4.68-1~deb13u1, 2.4.69-1~deb13u12.4.71-1~deb13u1 (trixie-security)DSA-6620-1fixed
Debian 12 (bookworm)2.4.68-1~deb12u12.4.71-1~deb12u1 (bookworm-security)none yetstill listed vulnerable

Take the bookworm package anyway. Its changelog names CVE-2026-119618 in the first entry, which we show further down, and it is the same 2.4.71 release that the Apache httpd 2.4 advisory lists as the fix. We can’t tell you why the tracker has not moved, so re-check that entry once an announcement appears and upgrade again if Debian ships a later revision.

Don’t wait on the paperwork. The Red Hat CVE page says public research has demonstrated a reliable exploit against a default-configured server with mod_http2 enabled, so a working attack is already out there. The same upgrade also closes CVE-2026-106023, a mod_md NULL pointer dereference that crashes child processes, and on hosts already running a 2.4.69 build, CVE-2026-109163, a one-byte stack overwrite in mod_vhost_alias. There is no reason to stage it behind a maintenance window if you can take a restart today.

The exposure on a stock install

A version number alone doesn’t make a server exploitable through this bug. Your Debian host is in scope only when all three of these hold:

  • The installed apache2-bin is older than 2.4.71-1~deb13u1 on Debian 13 or 2.4.71-1~deb12u1 on Debian 12.
  • mod_http2 is enabled, which a2query -m http2 reports.
  • A Protocols line in scope for a vhost offers h2 or h2c.

Patch anything vulnerable regardless, but these checks tell you which hosts are reachable today and which can go second. If you built the box from our LAMP stack guide for Debian, apache2 came from the same archive and everything below applies. Start with the binary and the package, because they have to agree before any other check means anything.

sudo apache2 -v
dpkg -l apache2 apache2-bin | tail -2

Our unpatched Debian 13 server reported the June build of 2.4.68, and dpkg agreed with the binary. Both sit inside the affected range.

Server version: Apache/2.4.68 (Debian)
Server built:   2026-06-11T18:28:43
ii  apache2        2.4.68-1~deb13u1 amd64        Apache HTTP Server
ii  apache2-bin    2.4.68-1~deb13u1 amd64        Apache HTTP Server (modules and other binary files)

The package that matters is apache2-bin. It ships the server binary and every module under /usr/lib/apache2/modules/, mod_http2 included, so a host with apache2 patched but apache2-bin held back is still vulnerable. A version in range is only the first condition, though. Next, check whether the module is on and what the config offers to clients.

sudo a2query -m http2
sudo grep -rn "^\s*Protocols" /etc/apache2/

Both conditions held on the lab server. The module was enabled by hand, and the only Protocols line came from the module config itself.

http2 (enabled by site administrator)
/etc/apache2/mods-available/http2.conf:1:Protocols h2 h2c http/1.1

That single line is the trap. The http2.conf that Debian ships sets Protocols h2 h2c http/1.1, so enabling the module also exposes cleartext h2c on every port 80 vhost, not just HTTP/2 on 443. Nobody has to write a Protocols line for the server to be reachable. Confirm it from the wire with three curl probes, one for each way a client can reach HTTP/2.

curl -sk --http2 -I https://localhost/ | head -1
curl -s --http2 -I http://localhost/ | grep HTTP
curl -s --http2-prior-knowledge -I http://localhost/ | head -1

All three came back as HTTP/2. The middle probe prints two lines because the upgrade happens inside one request.

HTTP/2 200
HTTP/1.1 101 Switching Protocols
HTTP/2 200
HTTP/2 200 

The first is h2 negotiated over TLS, with -k only because the lab uses the self-signed snakeoil certificate from Debian. The 101 Switching Protocols means the plain HTTP vhost accepted an h2c upgrade, and the last probe skips the upgrade and talks HTTP/2 straight away. Run them from another machine against the real hostname too, because a reverse proxy or load balancer in front can change what reaches Apache. The screenshot captures the full exposure check on Debian 13.

Apache 2.4.68 on Debian 13 with mod_http2 enabled answering HTTP/2 over TLS and h2c on port 80

Debian 12 gave the same answers on the bookworm build. Only the build date and the older curl that bookworm ships differ.

Apache 2.4.68 on Debian 12 with mod_http2 enabled answering HTTP/2 over TLS and h2c on port 80

Any host that prints HTTP/2 on one of these probes while running a vulnerable build goes to the top of your list, because that is exactly the setup the public exploit research targets. A host that answers HTTP/1.1 on all three still gets patched, just not first. The curl cheat sheet has the other protocol flags if you need to probe through a proxy or pin a specific address.

a2query: command not found

Run the module check without sudo and Debian prints an error instead of an answer (an interactive login shell prefixes it with -bash:, our scripted session with bash: line 1:). It looks like a missing package, which sends people off to reinstall apache2-utils.

bash: line 1: a2query: command not found

The tool is installed. The Apache admin commands live in /usr/sbin, which is not on the PATH of a regular Debian user, so prefix them with sudo as every command here does. Don’t read the error as “http2 is off”; it says nothing about the module at all.

The fixed package from the security archive

The patch is an ordinary apt run against the security suite, so your sources need the -security line that a standard Debian install already has. If this host has not had apt itself updated for APT CVE-2026-109518, do that in the same window, since apt is what fetches this fix. Refresh the indexes and confirm the security build is the candidate before you install anything.

sudo apt update
apt list --upgradable 2>/dev/null | grep apache2

On Debian 13 all four apache2 packages were waiting in stable-security. If the list comes back empty, the security suite is missing from your sources or the host is already patched.

apache2-bin/stable-security 2.4.71-1~deb13u1 amd64 [upgradable from: 2.4.68-1~deb13u1]
apache2-data/stable-security 2.4.71-1~deb13u1 all [upgradable from: 2.4.68-1~deb13u1]
apache2-utils/stable-security 2.4.71-1~deb13u1 amd64 [upgradable from: 2.4.68-1~deb13u1]
apache2/stable-security 2.4.71-1~deb13u1 amd64 [upgradable from: 2.4.68-1~deb13u1]

Debian 12 lists the same four packages from oldstable-security, built for bookworm.

apache2-bin/oldstable-security 2.4.71-1~deb12u1 amd64 [upgradable from: 2.4.68-1~deb12u1]
apache2-data/oldstable-security 2.4.71-1~deb12u1 all [upgradable from: 2.4.68-1~deb12u1]
apache2-utils/oldstable-security 2.4.71-1~deb12u1 amd64 [upgradable from: 2.4.68-1~deb12u1]
apache2/oldstable-security 2.4.71-1~deb12u1 amd64 [upgradable from: 2.4.68-1~deb12u1]

On both releases, install them with --only-upgrade, which upgrades apache2 where it exists, never installs it where it is absent, and leaves the rest of the pending updates for your normal patch run.

sudo apt install --only-upgrade -y apache2

apt pulls apache2-bin, apache2-data and apache2-utils along with it, which is what you want, since apache2-bin carries the fixed module. The relevant part of the output on Debian 13 is below, with the progress lines trimmed.

Upgrading:
  apache2  apache2-bin  apache2-data  apache2-utils

Summary:
  Upgrading: 4, Installing: 0, Removing: 0, Not Upgrading: 3
  Download size: 2037 kB
...
Get:2 https://deb.debian.org/debian-security trixie-security/main amd64 apache2 amd64 2.4.71-1~deb13u1 [233 kB]
Get:3 https://deb.debian.org/debian-security trixie-security/main amd64 apache2-bin amd64 2.4.71-1~deb13u1 [1420 kB]
...
Setting up apache2-bin (2.4.71-1~deb13u1) ...
Setting up apache2-data (2.4.71-1~deb13u1) ...
Setting up apache2-utils (2.4.71-1~deb13u1) ...
Setting up apache2 (2.4.71-1~deb13u1) ...

Debian 12 prints the older apt summary format, filtered here to the lines that matter. The two invoke-rc.d lines come from the restart test in the next section, where we blocked service restarts on purpose; a default host restarts apache2 at this point instead.

The following packages will be upgraded:
  apache2 apache2-bin apache2-data apache2-utils
4 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
Setting up apache2-bin (2.4.71-1~deb12u1) ...
Setting up apache2-data (2.4.71-1~deb12u1) ...
Setting up apache2-utils (2.4.71-1~deb12u1) ...
Setting up apache2 (2.4.71-1~deb12u1) ...
invoke-rc.d: policy-rc.d denied execution of restart.
invoke-rc.d: policy-rc.d denied execution of restart.

Don’t trust the version string alone to tell you the CVE is covered. The Debian changelog is the record of what a build fixes, and it is on disk after the upgrade, so read it there.

zgrep -n -E "CVE-2026-(119618|106023|109163)" /usr/share/doc/apache2/changelog.Debian.gz
zcat /usr/share/doc/apache2/changelog.Debian.gz | head -3

The first entry of the trixie changelog names all three CVEs and Debian bug 1153732. That line is what an auditor will ask for, so keep it with your change record.

4:    (Closes: #1153732, CVE-2026-119618, CVE-2026-106023, CVE-2026-109163)
apache2 (2.4.71-1~deb13u1) trixie-security; urgency=medium

  * New upstream release

The capture below runs the whole sequence on the Debian 13 server, from the upgradable list to the changelog line.

apt install --only-upgrade apache2 pulling 2.4.71-1~deb13u1 from trixie-security and the changelog line naming CVE-2026-119618

On Debian 12 the top entry reads apache2 (2.4.71-1~deb12u1) bookworm-security and names CVE-2026-119618 and CVE-2026-106023 on its first bullet line, so the zgrep output there differs from the trixie block above. That line is the evidence we lean on while the tracker still says vulnerable. The apt cheat sheet and the dpkg cheat sheet cover holds, pinning and changelog queries if a host refuses the upgrade.

Workers still running the old binary

A patched package does not help until the old processes are gone. On a default host the apache2 maintainer script restarts the service for you, and on our Debian 13 run the new parent started at 19:01:20, the same second the upgrade finished. Don’t assume that on every host. Where a /usr/sbin/policy-rc.d denies service actions, as it does in some container images and chroot build setups, the package installs and the old server keeps serving. We put one in place on both lab servers to show what that looks like. apt reports it only in two easy-to-miss lines.

Setting up apache2 (2.4.71-1~deb13u1) ...
invoke-rc.d: policy-rc.d denied execution of restart.
invoke-rc.d: policy-rc.d denied execution of restart.

Now ask the server which version it is, two ways. apache2 -v runs the binary on disk, while the Server header comes from the process that answered the request.

dpkg-query -W apache2
sudo apache2 -v | head -1
curl -sI http://localhost/ | grep -i ^server

They disagree, and the header is the one telling the truth. Every scanner that trusts apache2 -v or dpkg would mark this host as fixed.

apache2	2.4.71-1~deb13u1
Server version: Apache/2.4.71 (Debian)
Server: Apache/2.4.68 (Debian)

The header check depends on the default ServerTokens OS in Debian; if you’ve set ServerTokens Prod it shows no version at all. The check that works everywhere reads the memory map of every process. When dpkg replaces a file that a running process has mapped, the kernel marks that mapping (deleted), so any apache2 process still holding the old binary or the old mod_http2 gives itself away.

for p in $(pgrep apache2); do sudo grep -oE "/usr/(sbin/apache2|lib/apache2/modules/mod_http2.so) \(deleted\)" /proc/$p/maps | sort -u | sed "s|^|$p |"; done

Every process on the unrestarted server was still running the vulnerable code. Each PID that appears here is one that can still be attacked.

4745 /usr/lib/apache2/modules/mod_http2.so (deleted)
4745 /usr/sbin/apache2 (deleted)
4747 /usr/lib/apache2/modules/mod_http2.so (deleted)
4747 /usr/sbin/apache2 (deleted)
4748 /usr/lib/apache2/modules/mod_http2.so (deleted)
4748 /usr/sbin/apache2 (deleted)

Keep the grep this specific. Our first attempt matched any (deleted) line and flagged every worker as stale even after a clean restart, because each apache2 process also holds anonymous mappings that have nothing to do with the upgrade. Count them on a freshly restarted server to see the noise for yourself.

sudo grep "(deleted)" /proc/$(pgrep -o apache2)/maps | awk '{print $6,$7}' | sort | uniq -c

Even on the patched, restarted Debian 13 server the parent had three of them.

      3 /dev/zero (deleted)

Those /dev/zero entries are always there, so a loose check either cries wolf on every host or gets ignored, and both are worse than no check. Match the binary and module paths and nothing else. The screenshot shows the stale state on Debian 13, with the header and the map check side by side. These Debian 13 checks, here and after the restart below, join two reruns of the same downgrade and blocked-restart setup: the header checks come from the second rerun, the map loop and process list from the first, and both reported 2.4.71 from apache2 -v.

Upgraded apache2 package while running workers still map the deleted apache2 binary and mod_http2.so on Debian 13

The fix is a full restart, not a reload. A graceful reload keeps the same parent process, as the next section shows, and that parent keeps the old /usr/sbin/apache2 mapped.

sudo systemctl restart apache2
ps -o pid,lstart,cmd -C apache2

New PIDs with a start time after the upgrade are what you are looking for. If the parent PID is unchanged, the restart did not happen.

    PID                  STARTED CMD
   5294 Thu Nov 12 19:04:02 2026 /usr/sbin/apache2 -k start
   5296 Thu Nov 12 19:04:02 2026 /usr/sbin/apache2 -k start
   5298 Thu Nov 12 19:04:02 2026 /usr/sbin/apache2 -k start

Rerun the map loop and the header check. The loop printed nothing (piped to wc -l it counts 0), and the header moved to Server: Apache/2.4.71 (Debian).

After systemctl restart apache2 no worker maps a deleted binary and the Server header reports Apache 2.4.71 on Debian 13

Only now is the host patched. Debian 12 behaved the same way, with the restart replacing parent PID 2990 with 4631, started at 19:03:29, and the map loop printing nothing afterwards. Before that restart, the unrestarted Debian 12 parent held every loaded module under /usr/lib/apache2/modules/ as deleted, not just mod_http2, because apache2-bin replaces them all at once. That is why the loop also checks /usr/sbin/apache2: a host that has unloaded mod_http2 still runs an old binary until the restart.

Probes after the patch

Patching doesn’t turn HTTP/2 off, and it should not. The fixed mod_http2 keeps serving h2 and h2c, so the same probes that showed the exposure now confirm the fixed module is the one answering. We ran them on Debian 12 after the restart.

sudo apache2 -v
curl -sk --http2 -I https://localhost/ | head -1
curl -s --http2 -I http://localhost/ | grep HTTP
curl -s --http2-prior-knowledge -I http://localhost/ | head -1

The binary reports the bookworm-security build from 12 November, and HTTP/2 still answers on every path.

Server version: Apache/2.4.71 (Debian)
Server built:   2026-11-12T08:58:41
HTTP/2 200
HTTP/1.1 101 Switching Protocols
HTTP/2 200
HTTP/2 200 

The screenshot pairs the changelog check with the probes on the patched Debian 12 server.

apache2 2.4.71-1~deb12u1 changelog naming CVE-2026-119618 and HTTP/2 probes after the patch on Debian 12

If a probe that returned HTTP/2 before the patch now returns HTTP/1.1, something else changed, such as a workaround left in place or a proxy in front that you did not account for. Find out which before you close the ticket, because an unexplained change in protocol usually means the host you probed is not the host you patched.

HTTP/2 off when the restart has to wait

Some hosts can’t take a full restart on short notice because of long-lived connections, a change freeze, or a package hold you cannot lift today. For those, close the vulnerable path instead. Unloading mod_http2 is the control we’d pick, since code that is not mapped cannot be reached, and it only needs a graceful reload. We ran it on the unpatched Debian 12 server.

sudo a2dismod http2
sudo apache2ctl configtest
sudo systemctl reload apache2

Ignore the “you need to run systemctl restart” hint that a2dismod prints; a reload is enough to drop the module. Verify that the parent survived, the module is gone from both the config and memory, and the probes fall back.

ps -o pid,lstart,cmd -C apache2 | head -2
sudo apache2ctl -M 2>/dev/null | grep -c http2
sudo grep -c mod_http2 /proc/$(pgrep -o apache2)/maps
curl -sk --http2 -I https://localhost/ | head -1
curl -s --http2 -I http://localhost/ | grep HTTP
curl -s --http2-prior-knowledge -I http://localhost/; echo "curl exit=$?"

The parent kept PID 2990 from before the reload, both counts are zero, and the negotiated probes settle on HTTP/1.1.

    PID                  STARTED CMD
   2990 Thu Nov 12 19:02:14 2026 /usr/sbin/apache2 -k start
0
0
HTTP/1.1 200 OK
HTTP/1.1 200 OK
curl exit=52

Exit code 52 means curl got an empty reply from the server. The prior-knowledge probe opened with the HTTP/2 preface, and a server without HTTP/2 closed the connection without answering. That’s the result you want, and the screenshot shows the same check end to end.

a2dismod http2 with a graceful reload on Debian 12, same parent PID, curl probes falling back to HTTP/1.1

Remember that the workaround buys time and nothing more. The vulnerable build stays on disk, and the next restart, a2enmod or config management run that re-enables the module brings the exposure straight back.

Protocols http/1.1 per vhost, never server-wide

If something else needs mod_http2 loaded, override Protocols inside each vhost instead. This sed adds the line before the closing tag of both Debian default sites, and it relies on </VirtualHost> starting at column 1, as it does in those files.

sudo sed -i 's|^</VirtualHost>|\tProtocols http/1.1\n</VirtualHost>|' /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/default-ssl.conf
sudo apache2ctl configtest && sudo systemctl reload apache2

For your own vhosts, add Protocols http/1.1 by hand inside each <VirtualHost> block, then check that every one is covered. A vhost without the line still offers h2.

sudo grep -rn "^\s*Protocols" /etc/apache2/

On the lab server the grep listed the line from the module config and one override per default site.

/etc/apache2/mods-available/http2.conf:1:Protocols h2 h2c http/1.1
/etc/apache2/sites-available/000-default.conf:29:	Protocols http/1.1
/etc/apache2/sites-available/default-ssl.conf:130:	Protocols http/1.1

With the module still loaded (apache2ctl -M listed http2_module), the three probes again returned HTTP/1.1 200 OK, HTTP/1.1 200 OK and curl exit=52. The vhost value wins over the server-wide one from http2.conf, so this holds as long as no vhost is missed.

What does not work is the shortcut most people reach for first, a server-wide conf snippet. We tested a conf-available/no-h2.conf holding only Protocols http/1.1, enabled it with a2enconf no-h2 and reloaded. That put a second server-scope line next to the one in http2.conf, and the probes still came back as HTTP/2 200 on TLS and on h2c. A second Protocols line at the same scope adds to the list instead of replacing it, while a list inside a vhost replaces the server one. If you already did this, remove it with sudo a2disconf no-h2 and use one of the two controls above.

Once the fixed build is installed and running, undo whichever workaround you used. Run sudo a2enmod http2 or delete the per-vhost lines, then sudo systemctl restart apache2 and rerun the probes so HTTP/2 comes back on the patched code. Leaving the workaround in place costs your users HTTP/2 for no security gain.

Post-patch audit checklist

A host counts as patched only when every item below holds. Run them on each server, not on a sample, because one forgotten box behind the load balancer is all an attacker needs.

  1. dpkg -l apache2-bin shows 2.4.71-1~deb13u1 or later on Debian 13, or 2.4.71-1~deb12u1 or later on Debian 12.
  2. The first entry of /usr/share/doc/apache2/changelog.Debian.gz names CVE-2026-119618.
  3. The start time of the parent process in ps -o pid,lstart,cmd -C apache2 is later than the upgrade.
  4. The map loop prints nothing for any apache2 PID.
  5. The Server header reports the same version as apache2 -v, where ServerTokens still shows it.
  6. Any a2dismod http2 or per-vhost Protocols http/1.1 workaround is reverted, and the probes return HTTP/2 from the fixed build.
  7. No server-wide Protocols http/1.1 snippet is left enabled under /etc/apache2/conf-enabled/ from an earlier attempt.
  8. On Debian 12, the bookworm line on the tracker has been rechecked, and a later revision installed if Debian ships one.

Items 3 and 4 are the ones that catch real misses, because they are the only checks that look at what is running rather than what is installed. Put the map loop in your patch runbook for every library or daemon update, not just this one.

Keep reading

Java4Shell (CVE-2026-114938): Find and Patch Vulnerable JVMs Security Java4Shell (CVE-2026-114938): Find and Patch Vulnerable JVMs UFW Firewall Commands with Examples on Ubuntu 26.04 / 24.04 Security UFW Firewall Commands with Examples on Ubuntu 26.04 / 24.04 nginx HTTP/2 RCE CVE-2026-123007: Check, Disable HTTP/2, Patch Security nginx HTTP/2 RCE CVE-2026-123007: Check, Disable HTTP/2, Patch agent-framework PyPI Malware: Check 1.26.1/1.26.2 and Rotate Keys AI agent-framework PyPI Malware: Check 1.26.1/1.26.2 and Rotate Keys Drupal SA-CORE-2026-019 (CVE-2026-136716): Check and Patch Security Drupal SA-CORE-2026-019 (CVE-2026-136716): Check and Patch How to set up VPN on any VPS Security How to set up VPN on any VPS

Leave a Comment

Press ESC to close