{"id":"CVE-2023-28113","published":"2023-03-16T00:00:00Z","modified":"2025-02-25T14:55:51Z","title":"russh may use insecure Diffie-Hellman keys","vendor":"warp-tech","product":"russh","tier":"tail","description":{"text":"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","provenance":"source","from":"CVE.org"},"cvss":{"score":5.9,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00638,"percentile":0.51531,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"},{"id":"CWE-358","name":"Improperly Implemented Security Check for Standard"}],"references":[{"url":"https://github.com/warp-tech/russh/commit/d831a3716d3719dc76f091fcea9d94bd4ef97c6e","tags":[]},{"url":"https://github.com/warp-tech/russh/blob/master/russh/src/kex/dh/groups.rs#L72-L76","tags":[]},{"url":"https://github.com/warp-tech/russh/blob/master/russh/src/kex/dh/groups.rs#L78-L81","tags":[]},{"url":"https://github.com/warp-tech/russh/releases/tag/v0.36.2","tags":[]},{"url":"https://github.com/warp-tech/russh/releases/tag/v0.37.1","tags":[]},{"url":"https://github.com/warp-tech/russh/security/advisories/GHSA-cqvm-j2r2-hwpg","tags":[]}],"priority":{"score":14.4,"factors":[{"name":"EPSS percentile","points":10.31},{"name":"CVSS severity","points":4.13}]},"vendorSlug":"warp-tech","affectedVersions":[{"vendor":"warp-tech","product":"russh","versions":[">= 0.34.0, < 0.34.0*",">= 0.36.2, < 0.36.2",">= 0.37.0, < 0.37.0*",">= 0.37.1, < 0.37.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-02-25T14:29:28.461323Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"russh","vulnerableRanges":["<0.36.2",">=0.37.0, <0.37.1"],"patched":["0.36.2","0.37.1"],"from":["GHSA-cqvm-j2r2-hwpg"],"provenance":"source"}],"summary":{"text":"The russh Rust SSH library (both client and server) fails to properly validate Diffie-Hellman keys, which can produce insecure shared secrets. An attacker with network access positioned on a connection between a russh peer and a misbehaving or non-compliant peer can eavesdrop on the session, and the risk is greatest in those mixed-implementation scenarios, since most other SSH implementations reject such keys.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:37:35Z"},"euvd":{"id":"EUVD-2023-0989","exploited":false,"provenance":"source"}}