crates.io
CVE-2026-116775
pageant: unbounded frame buffering on peer-controlled 4-byte length prefix (memory-exhaustion DoS)
- Severity
- Low
- Published
- 30 Oct 2026
- Last changed
- 30 Oct 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 0.2.5
- Exploit chance
- 0.5% in the next 30 daysHigher than 40% of CVEs. EPSS by FIRST, 24 Nov 2026
- Also known as
- GHSA-662x-8wvj-2276
- Sources
- OSV.dev and GitHub
Description
pageant::PageantStream reads a 4-byte big-endian length prefix from its input stream and buffers until len + 4 bytes are available, without ever validating len. The underlying WM_COPYDATA transport physically cannot carry frames larger than 8 KiB (_AGENT_MAX_MSGLEN, the fixed-size shared memory mapping), so an oversized frame is destined to fail — but only after the re-framing task has already buffered the full claimed size. A peer controlling the stream bytes can claim a frame of up to ~4 GiB and either stream that much data (forcing a corresponding allocation) or simply stop mid-frame and keep the partial buffer resident indefinitely.
The crate is documented as a raw transport ("This crate only implements the transport, not the actual SSH agent protocol"). The standard way to service a remote server's forwarded agent channel on Windows is to bridge the SSH channel to the local agent, e.g.:
Affected software
| Software | Affected versions |
|---|---|
pageantcrates.io · osv:crates.io:pageant |
|
About pageant
- Downloads in the last 90 days (crates.io)
- 2,798,455crates.io, 23 Nov 2026
- Total downloads (crates.io)
- 4,758,794crates.io, 23 Nov 2026
This is the only vulnerability in pageant in our list.
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-116775
- GitHub Advisory Database https://github.com/advisories/GHSA-662x-8wvj-2276