CVE-2026-116775

pageant: unbounded frame buffering on peer-controlled 4-byte length prefix (memory-exhaustion DoS)

Published Oct 27, 2026 CVSS 4.0 · 2.3 Low EPSS < 1% KEV · Not listed
Description
pageant provides a PageantStream type that implements AsyncRead and AsyncWrite traits and can be used to communicate with a running Pageant instance. From 0.2.0 until 0.2.5, PageantStream::new in pageant/src/wmmessage.rs trusts a peer-controlled four-byte length prefix and buffers until len + 4 bytes are available without checking the fixed _AGENT_MAX_MSGLEN transport capacity. An application that bridges an SSH forwarded-agent channel to the raw stream can allow a malicious server to force large allocations or retain a partially filled frame, causing client memory exhaustion. This issue is fixed in version 0.2.5.

Analysis

AI-generated

Technical impact

PageantStream::new in the russh Pageant module reads a 4‑byte length prefix supplied by a peer without enforcing the maximum transport capacity. This allows an attacker controlling the server side of an SSH forwarded‑agent channel to request its client to allocate arbitrarily large buffers. The resulting memory exhaustion can cause the client process to crash or become unresponsive, providing a denial‑of‑service vector. The flaw is a classic unchecked allocation issue and is formally classified as CWE‑770.

Affected Systems

The vulnerability affects the russh implementation from Eugeny, specifically the pageant module in version 0.2.0 through 0.2.5 inclusive. Both earlier releases and the current release v0.65.0 already contain the fix, so only the 0.2.0‑0.2.5 range is impacted.

Risk and Exploitability

The CVSS score of 2.3 indicates a low severity and low complexity exploitation path. EPSS is not available, and the vulnerability is not listed in CISA’s KEV catalog. An attacker would need to control or convince an SSH server to supply a malicious agent frame during a forwarded‑agent session; this is typically achievable over a network connection that the client initiates, which makes the attack remotely accessible but requires that the client allows forwarded‑agent connections.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade russh to version 0.2.5 or later (e.g., 0.65.0) where the issue is fixed.
  • If an upgrade is not feasible, disable or restrict SSH forwarded‑agent forwarding so that malicious servers cannot send oversized frames.
  • Apply kernel or container resource limits to guard against large memory allocations and consider configuring an OOM killer policy to terminate the client process before it can exhaust system memory.

Generated by OpenCVE AI on October 27, 2026 at 21:31 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-662x-8wvj-2276 pageant: unbounded frame buffering on peer-controlled 4-byte length prefix (memory-exhaustion DoS)
History
Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Eugeny
Eugeny russh
Vendors & Products Eugeny
Eugeny russh
Type Values Removed Values Added
Description pageant provides a PageantStream type that implements AsyncRead and AsyncWrite traits and can be used to communicate with a running Pageant instance. From 0.2.0 until 0.2.5, PageantStream::new in pageant/src/wmmessage.rs trusts a peer-controlled four-byte length prefix and buffers until len + 4 bytes are available without checking the fixed _AGENT_MAX_MSGLEN transport capacity. An application that bridges an SSH forwarded-agent channel to the raw stream can allow a malicious server to force large allocations or retain a partially filled frame, causing client memory exhaustion. This issue is fixed in version 0.2.5.
Title pageant: unbounded frame buffering on peer-controlled 4-byte length prefix (memory-exhaustion DoS)
Weaknesses CWE-770
References
Metrics cvssV4_0

{'score': 2.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-770

    Allocation of Resources Without Limits or Throttling

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 3, 2026, 12:14 PM
Reserved
Oct 26, 2026, 9:53 PM
Status
Deferred
Published
Oct 27, 2026, 9:18 PM
Modified
Nov 3, 2026, 1:17 PM
Severity
Moderate
Public date
Oct 27, 2026, 8:27 PM