CVE-2023-28113
russh may use insecure Diffie-Hellman keys
Also known as GHSA-cqvm-j2r2-hwpg
Mitigation
- Upgrade russh to one of 0.36.2, 0.37.1 (or later in the same release line).
Who should check
- Projects that depend on crates.io package russh (< 0.36.2)
- Anyone running warp-tech russh >= 0.34.0, < 0.34.0*; >= 0.36.2, < 0.36.2; >= 0.37.0, < 0.37.0*; >= 0.37.1, < 0.37.1
Vulnerability facts
- Affected
- russh < 0.36.2
- Fixed in
- 0.36.2, 0.37.1
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 5.9 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: High
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: None
- Availability impact: None
- EPSS
- 0.57% chance of exploitation in 30 days (percentile 41, 2026-11-26)
- CWE
- CWE-20, CWE-358
- Modified
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
Affected and fixed versions
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2023-28113. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2023-28113.md Affected: russh < 0.36.2 Fixed in: 0.36.2, 0.37.1 Steps: 1. Search this machine and project for russh (crates.io), warp-tech russh: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
Other
- 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
FAQ
Is CVE-2023-28113 being exploited?
There is no confirmed exploitation: CVE-2023-28113 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.57% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2023-28113?
Medium: CVSS 5.9 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2023-28113?
russh < 0.36.2.
Is there a fix for CVE-2023-28113?
Yes. Fixed in 0.36.2, 0.37.1. Upgrade russh to one of 0.36.2, 0.37.1 (or later in the same release line).
How do I check if I'm affected by CVE-2023-28113?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.