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

- Severity: Medium 5.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.64%, higher than 51% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-03-16T00:00:00.000Z
- Modified: 2026-06-17T05:46:54.000Z
- Also known as: GHSA-cqvm-j2r2-hwpg
- Weaknesses: CWE-20, CWE-347, CWE-358
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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

(As written by CVE List.)

## Affected

- warp-tech russh: from 0.34.0 before 0.34.0*; from 0.36.2 before 0.36.2; from 0.37.0 before 0.37.0*; from 0.37.1 before 0.37.1
- russh (crates.io): before 0.36.2; from 0.37.0 before 0.37.1
- russh_project russh: from 0.34.0 before 0.36.2; 0.37.0

## Every score

- GitHub_M: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/warp-tech/russh/security/advisories/GHSA-cqvm-j2r2-hwpg> (exploit, vendor-advisory, web)
- <https://github.com/warp-tech/russh/commit/d831a3716d3719dc76f091fcea9d94bd4ef97c6e> (patch, web)
- <https://github.com/warp-tech/russh/blob/master/russh/src/kex/dh/groups.rs#L72-L76> (product, web)
- <https://github.com/warp-tech/russh/blob/master/russh/src/kex/dh/groups.rs#L78-L81> (product, web)
- <https://github.com/warp-tech/russh/releases/tag/v0.36.2> (release-notes, web)
- <https://github.com/warp-tech/russh/releases/tag/v0.37.1> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-28113> (advisory)
- <https://github.com/warp-tech/russh/commit/45d2d82930bf4a675bd57abfafec8fe4065befcd> (web)
- <https://github.com/warp-tech/russh> (package)

## Sources

- CVE List: [CVE-2023-28113](https://www.cve.org/CVERecord?id=CVE-2023-28113), CVE Terms of Use, modified 2025-02-25
- GitHub Advisory Database: [GHSA-cqvm-j2r2-hwpg](https://github.com/advisories/GHSA-cqvm-j2r2-hwpg), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2023-28113](https://nvd.nist.gov/vuln/detail/CVE-2023-28113), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-28113 · Whole record: https://cve.day/CVE-2023-28113.json · Rebuilt by cve.day 2026-11-25T22:58:22.499Z
