Apache HTTP Server mod_vhost_alias
CVE-2026-109163
One-byte stack buffer overwrite at an expansion boundary
Low (Apache) · Public source snapshot: November 12, 2026
Original portfolio report · Source reference · Source reference · Source reference · Upstream commit · Upstream commit · Source reference · Source reference
Shared credits and the scope of my investigation are documented below.
A remote client can influence the hostname that mod_vhost_alias expands into a filesystem path when the server uses hostname-based dynamic virtual hosting. In affected configurations, an expansion that exactly fills the module's stack buffer leaves no space for its terminating zero byte. The subsequent string termination can write one byte past that buffer.
I reviewed the Apache HTTP Server 2.4.69, 2.4.70, and 2.4.71 source snapshots, the earlier 2.4.68 implementation, and the relevant fix history. This is a source-based analysis; I did not send a triggering request, reproduce a crash, or demonstrate code execution.
| Public record | Detail |
|---|---|
| Identifier | CVE-2026-109163 |
| Component | mod_vhost_alias, modules/mappers/mod_vhost_alias.c |
| Apache affected range | 2.4.69–2.4.70 |
| Fixed release | 2.4.71, released November 11, 2026 |
| Apache severity | Low |
| Weakness | CWE-121 — Stack-based Buffer Overflow |
| Credit | Charles Vosburgh (the-vibe-dev), alongside Gustavo Aiello, Wojciech Tatarski (CloudLinux / TuxCare), Oz Kaiser (@tatikoma), and Daisuke Hatakeyama (SYZD Research) |
The assigned CVE concerns the one-byte overwrite remaining after the earlier mod_vhost_alias hardening. The affected range above is Apache's published assessment, not a claim that the underlying comparison first appeared in 2.4.69.
mod_vhost_alias supports dynamic virtual hosting by expanding a configured template into a document root or script path. For example, a hostname-based template can use %0 to include the whole server name. The administrator controls this template; the client does not acquire permission to edit server configuration.
For the remote hostname-input path, the module must be enabled and a hostname-based mapping must apply to the request. In mva_translate(), VHOST_ALIAS_NAME obtains its input from ap_get_server_name(r). In server/core.c, that function selects the request hostname when UseCanonicalName is Off or unset and a hostname is present. With UseCanonicalName On, it selects the configured server name instead. IP-based mappings use the connection's local IP address, rather than an arbitrary client-supplied hostname.
The request must pass HTTP parsing and hostname validation, reach this mapping, and produce the exact expansion boundary. Header limits, hostname selection, the template, and any earlier request handling therefore matter. Merely loading the module does not establish that every deployment is remotely triggerable; I did not measure configuration prevalence or test an end-to-end request.
The buffer holds path data and its string terminator
In 2.4.69 and 2.4.70, vhost_alias_interpolate() builds the expanded path in a stack array:
char buf[HUGE_STRING_LEN];
include/httpd.h defines HUGE_STRING_LEN as 8192. Literal template characters and selected hostname segments are appended to this buffer. The module can flush a completed chunk into request-pool storage and reuse the stack buffer, so the completed pathname need not fit in a single chunk. Each chunk must still leave room for a zero terminator before it becomes a C string.
The check permits an exact fill
The 2.4.69/2.4.70 vhost_alias_checkspace() first rejects an individual segment whose size is at least the buffer capacity. It then decides whether the accumulated chunk should be flushed:
if (size >= HUGE_STRING_LEN) {
ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, APLOGNO(10595)
"VirtualDocumentRoot expansion too large");
return HTTP_REQUEST_URI_TOO_LARGE;
}
if (*pdest + size > buf + HUGE_STRING_LEN) {
**pdest = '\0';
The first guard prevents one oversized segment from being copied. The second guard misses equality: when the current position plus the next segment equals buf + 8192, the helper returns without flushing. The subsequent copy advances the destination pointer to one past the array. Several individually accepted pieces can reach that position even though each piece is smaller than 8192 bytes.
For a hostname segment, the relevant append in vhost_alias_interpolate() is:
for (p = start; p < end; ++p) {
*dest++ = apr_tolower(*p);
}
The expansion has now used all 8192 bytes for data. No in-bounds byte remains for string termination.
Termination writes outside the array
At the end of interpolation, the module removes one trailing slash if present and terminates the chunk:
if (dest - buf > 0 && dest[-1] == '/') {
--dest;
}
*dest = '\0';
If the exactly full expansion does not end in /, the decrement does not occur and the zero byte lands at buf[8192], outside the 8192-byte array. If another append instead causes the next space check to flush the already full chunk, the helper's own **pdest = '\0' has the same missing terminator space. The supported primitive is this one-byte zero write; the analysis does not establish control over arbitrary bytes or a reliable change to a particular adjacent stack object.
Release history
The 2.4.69 hardening for the earlier CVE-2026-63292 added rejection of an oversized individual segment and propagated an error back through interpolation. It retained the strict > comparison. The 2.4.70 module source is identical to 2.4.69 for this analysis. The 2.4.71 correction changes that comparison to >=.
The strict comparison and final termination are also present in the inspected 2.4.68 source and in the historical Apache 1.3.9 baseline imported into the HTTPD repository. They predate the October hardening; that hardening left the exact-fit case unresolved. I have not established the original pre-import introduction or independently enumerated the exposure of older releases. Apache assigns 2.4.69–2.4.70 to this residual CVE, and that remains the remediation range used here.
The source establishes a memory-safety error when path interpolation reaches the exact chunk boundary. A remote attack additionally needs client-controlled name input to reach an applicable template with an accepted request. Configurations using a fixed canonical name do not supply that client-controlled hostname through the path described above, although they still need a corrected implementation if another configured expansion can reach the boundary.
The overwrite is a single zero byte. Its process-level consequences depend on compiler output, stack layout, protections, and the particular request and configuration. This report does not demonstrate a worker crash, request-to-request corruption, privilege escalation, or remote code execution. Apache rates the issue Low; stronger impact claims associated with the earlier, larger overflow should not be transferred to this follow-up without separate evidence.
This report contains source evidence rather than a runnable exploit or captured crash. No triggering request or private submission attachment is included.
An isolated regression test should exercise a normally accepted expansion, an exact-fill expansion without a trailing slash, the corresponding trailing-slash case, a flush followed by another append, and the existing oversized-segment rejection. It should compare 2.4.69/2.4.70 with 2.4.71 under a memory checker and retain the same mapping and request-processing prerequisites. These are recommended controls, not tests executed for this report.
Upgrade affected installations to Apache HTTP Server 2.4.71 or later, or apply the corresponding vendor-supported fix. In the released correction, the flush condition in vhost_alias_checkspace() becomes:
if (*pdest + size >= buf + HUGE_STRING_LEN) {
Flushing on equality reserves room for the current chunk's terminating zero byte. The existing single-segment rejection remains in place. Together, the checks address the exact-fit case while preserving the module's ability to assemble a longer pathname from separately terminated chunks.
The shipped source change is confirmed by inspection; I did not run the affected or fixed server. Operators should use their distribution's security guidance when a packaged backport is provided.
CVE-2026-109163 is a residual one-byte stack overwrite in mod_vhost_alias path interpolation. Apache identifies 2.4.69–2.4.70 as affected and 2.4.71 as fixed. An exact-fill expansion leaves the destination at the end of the array, and the old strict comparison fails to reserve the byte required for string termination. The fixed comparison flushes before that state is created.
Public references:
- Apache advisory, release range, severity, and shared finder credit
- Apache module documentation and hostname interpolation
- HTTPD 2.4.69 affected module source
- HTTPD 2.4.70 affected module source
- HTTPD 2.4.71 fixed module source
- Earlier 2.4.69 hardening
- Exact-fit correction shipped in 2.4.71
Public-source report checked November 11, 2026.