{"id":"CVE-2020-35896","aliases":["CVE-2020-35896","GHSA-rh7x-ppxx-p34c","RUSTSEC-2020-0043"],"related":[],"kind":"vulnerability","state":"published","title":"Insufficient size checks in ws","summary":"An issue was discovered in the ws crate through 2020-09-25 for Rust. The outgoing buffer is not properly limited, leading to a remote memory-consumption attack.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"An issue was discovered in the ws crate through 2020-09-25 for Rust. The outgoing buffer is not properly limited, leading to a remote memory-consumption attack.","source":"cvelist"},{"lang":"en","text":"Affected versions of this crate did not properly check and cap the growth of the outgoing buffer.\n\nThis allows a remote attacker to take down the process by growing the buffer of their (single) connection until the process runs out of memory it can allocate and is killed.\n\nThe flaw was corrected in the [`parity-ws` fork](https://crates.io/crates/parity-ws) (>=0.10.0) by [disconnecting a client when the buffer runs full](https://github.com/housleyjk/ws-rs/pull/328).","format":"markdown","source":"rustsec"},{"lang":"es","text":"Se detectó un problema en la crate WS hasta el 25-09-2020 para Rust.&#xa0;El búfer de salida no está apropiadamente limitado, conllevando un ataque de consumo de memoria remoto.","source":"nvd"}],"published":"2020-09-25T12:00:00.000Z","modified":"2026-06-17T03:14:33.520Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"RustSec Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","score":5,"rating":"MEDIUM"}],"cwes":["CWE-400","CWE-770"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"0.9.1"}],"ecosystem":"crates.io","package":"ws","purl":"pkg:cargo/ws","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected"}],"ecosystem":"crates.io","package":"ws","purl":"pkg:cargo/ws","source":"rustsec"},{"ranges":[{"status":"affected","lastAffected":"0.9.1"}],"vendor":"ws-rs_project","product":"ws-rs","cpe":"cpe:2.3:a:ws-rs_project:ws-rs:*:*:*:*:*:rust:*:*","source":"nvd"}],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2020-0043.html","tags":["advisory","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","rustsec","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-35896","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/housleyjk/ws-rs/issues/291","tags":["report","web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/housleyjk/ws-rs","tags":["package"],"sources":["ghsa"]},{"url":"https://crates.io/crates/ws","tags":["package"],"sources":["rustsec"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-35896","url":"https://www.cve.org/CVERecord?id=CVE-2020-35896","licence":"CVE Terms of Use","modified":"2024-08-04T17:16:13.175Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-rh7x-ppxx-p34c","url":"https://github.com/advisories/GHSA-rh7x-ppxx-p34c","licence":"CC-BY-4.0","modified":"2023-11-08T04:03:38.052Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2020-0043","url":"https://rustsec.org/advisories/RUSTSEC-2020-0043.html","licence":"CC0-1.0","modified":"2023-11-08T04:03:38.052Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-35896","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-35896","licence":"Public domain","modified":"2026-06-17T03:14:33.520Z"}],"updatedAt":"2026-11-25T22:57:56.703Z","epss":{"score":0.01352,"percentile":0.72358,"date":"2026-12-01T12:00:22.000Z"}}