---
id: CVE-2026-46673
aliases:
  - RUSTSEC-2026-0154
  - GHSA-g9f8-wqj9-fjw5
  - RUSTSEC-2026-0153
title: Unbounded 32-bit allocation
summary: Unbounded 32-bit allocation
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'
vendor: russh
product: russh
ecosystem: rust
affected:
  - 'russh >= 0.0.0-0, < 0.60.3'
patched:
  - russh 0.60.3
published: '2026-05-15'
updated: '2026-10-12'
sourceUpdated: '2026-10-12T18:00:13.569892882Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/RUSTSEC-2026-0154'
references:
  - url: 'https://crates.io/crates/russh'
  - url: 'https://rustsec.org/advisories/RUSTSEC-2026-0154.html'
  - url: >-
      https://github.com/Eugeny/russh/commit/a2d48a71fe93d18cbd666c8d53d0882f5ce110c4
  - url: >-
      https://github.com/Eugeny/russh/commit/a2d48a71fe93d18cbd666c8d53d0882f5ce110c4
  - url: 'https://crates.io/crates/russh-cryptovec'
  - url: 'https://rustsec.org/advisories/RUSTSEC-2026-0153.html'
tags:
  - osv
  - rust
epss: 0.0046
epssPercentile: 0.38044
ingestedAt: '2026-10-13T11:45:30.194Z'
---

## Overview

Both the SSH agent server and client accepted peer-controlled frame lengths
without enforcing a maximum frame size. This could cause large memory
allocations while parsing a maliciously crafted agent frame.

A malicious peer could advertise an oversized frame length, causing the client
or server to attempt a large memory allocation before validating the frame,
potentially leading to memory exhaustion or process termination.

This is fixed by enforcing a maximum agent frame size of 256 KiB and
rejecting oversized frames before buffer allocation.

## Affected packages

- `russh >= 0.0.0-0, < 0.60.3`

## Remediation

Upgrade to a patched release:

- `russh 0.60.3`
