← Lab /Security & privacy

HTTP.sys integer overflow allows remote unauthenticated RCE with kernel privileges

Sending over 1,000 TLS records with single-header lines can overflow HTTP.sys and enable kernel-level code execution.

Security & privacy Zero Day Initiative Blog 10 Jul 2026 Disclosure Prototype evidence

Published as “CVE-2026-47291: Remote Code Execution in the Windows HTTP.sys”

Why it matters

The bug allows remote unauthenticated attackers to achieve kernel-level code execution on vulnerable Windows servers.

Summary

The researchers analyzed the Windows HTTP.sys driver and identified an integer overflow in the per-request buffer reference array during HTTP/1.x header parsing. By sending each header line in a separate TLS 1.3 application data record, an attacker can cause the 16-bit capacity field to wrap, leading to a kernel pool overflow of over 500 KB. They estimate that about 65,536 header lines (≈262 KB total) are needed, which takes roughly 11 minutes at a 10 ms record interval, and that exploitation can result in kernel-mode code execution if memory layout is favorable.

What they found 2

  1. The capacity field wraps to zero after 13,112 growth events, enabling an out-of-bounds copy.

    “After 13,107 growth events, capacity reaches 0xFFFB. The next growth adds 5, producing 0x10000, which truncates to 0x0000 in the 16-bit field.”

  2. The overflow copies ~524 KB into a 40-byte allocation, corrupting kernel memory.

    “The allocation size computation 0x28 + 0 * 8 produces a 40-byte allocation, but the memmove copies count * 8 bytes (approximately 524,256 bytes) from the old buffer into the 40-byte allocation.”

Caveats 6

  • The default MaxRequestBytes registry value (16,384) prevents the request size needed to trigger the overflow.
  • Exploitation requires a sustained 11-minute connection, limiting practical attack feasibility.
  • The vulnerability is only reachable through HTTP/1.x header parsing over TLS; HTTP/2 and HTTP/3 are not affected.
  • MaxRequestBytes must be set to at least 262,144 bytes for the overflow to be reachable.
  • Successful RCE depends on specific kernel memory layout conditions.
  • The attack needs approximately 11 minutes of continuous transmission.

What’s new here 4

  • Discovery of a 16-bit overflow in HTTP.sys buffer reference array growth logic.
  • Demonstration that TLS record granularity can be abused to trigger the overflow.
  • Detection guidance using decrypted header-line counting or encrypted TLS-record heuristics.
  • Mitigation recommendation to limit MaxRequestBytes to ≤65,535 bytes.

In the news