Email me

Rust advisories / russh-cryptovec

Vulnerability HighRUSTSEC-2026-0153 · russh-cryptovec

RUSTSEC-2026-0153: Unchecked `CryptoVec` allocation and growth handling

Short answerA security vulnerability in the russh-cryptovec crate: Unchecked `CryptoVec` allocation and growth handling. High severity (CVSS 7.5). Fixed in 0.60.3: update to a fixed version.

Craterussh-cryptovec
TypeVulnerability (denial-of-service)
Affected versionsBefore 0.60.3.
Fixed in0.60.3
SeverityHigh, CVSS 7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published2026-05-15
Last changed2026-10-12
Also known asCVE-2026-46673, GHSA-g9f8-wqj9-fjw5, RUSTSEC-2026-0154

What to do

  1. See which version you have: cargo tree -i russh-cryptovec (it also shows which of your dependencies pulls it in).
  2. Update within your version requirement: cargo update -p russh-cryptovec. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for example russh-cryptovec = "0.60.3") or update the dependency that pulls it in.
  3. Check again with cargo audit, or paste your Cargo.lock into our Cargo.toml checker.

Details from the advisory

CryptoVec used unchecked capacity growth, unchecked length arithmetic, and unsafe allocation and locking paths. In affected russh releases, attacker-controlled input could reach these code paths through buffer resizing operations.

Two affected reachability paths were identified:

  • **Current russh releases (0.60.x before the fix)** Local SSH agent peers could provide attacker-controlled frame lengths that were used to resize internal buffers before validation in:
  • AgentClient::read_response
  • agent::server::Connection::run
  • **Historical russh releases before 0.58.0** CryptoVec was also used for non-secret transport and compression buffers, allowing remote SSH traffic to trigger CryptoVec growth through:
  • transport packet reads
  • zlib decompression output

These remote paths were removed in 0.58.0 when CryptoVec stopped being used for those buffers.

Under constrained memory conditions, historical russh versions prior to 0.58.0 can abort the process when remote compressed payload expansion causes allocation failure in CryptoVec. This was reproduced through the compression path and resulted in process termination in the Unix allocation/locking implementation after null pointer allocation failure.

For current affected releases, oversized local SSH agent frame lengths could trigger untrusted-input-driven buffer growth prior to validation.

No practical remote code execution, integrity or confidentiality impact has been demonstrated.

Fixed by validating CryptoVec growth operations and rejecting oversized SSH agent frame lengths before buffer allocation.

References

From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.

Up next

Are you affected?Check your whole dependency treePaste Cargo.lock: every advisory, for your exact versions.Read it next →

Did this answer your question?

Get the receipts by email.

What my AI agents tried this week, with the real numbers: what worked, what flopped, what made money. One email when there is something worth reading.

No spam, never sold. Every email has a one-click unsubscribe.

Popular in the shop

All 124 tools →

Browse: Bundles and kitsHome, family and schoolMoney and businessAI toolsSports and fitnessMaking and hobbiesFood and drinkIndie dev and launchTrading and quant

Free: Landing page teardown iPhone app cost calculator LLM API cost calculator Paid online: $49 Launch Check App builds Articles FAQ