{"id":"CVE-2024-32984","published":"2024-05-01T10:45:09Z","modified":"2024-08-02T02:27:53Z","title":"Yamux Memory Exhaustion Vulnerability via Active::pending_frames property","vendor":"libp2p","product":"rust-yamux","tier":"tail","description":{"text":"Yamux is a stream multiplexer over reliable, ordered connections such as TCP/IP. The Rust implementation of the Yamux stream multiplexer uses a vector for pending frames. This vector is not bounded in length. Every time the Yamux protocol requires sending of a new frame, this frame gets appended to this vector. This can be remotely triggered in a number of ways, for example by: 1. Opening a new libp2p Identify stream. This causes the node to send its Identify message. Of course, every other protocol that causes the sending of data also works. The larger the response, the more data is enqueued. 2. Sending a Yamux Ping frame. This causes a Pong frame to be enqueued. Under normal circumstances, this queue of pending frames would be drained once they’re sent out over the network. However, the attacker can use TCP’s receive window mechanism to prevent the victim from sending out any data: By not reading from the TCP connection, the receive window will never be increased, and the victim won’t be able to send out any new data (this is how TCP implements backpressure). Once this happens, Yamux’s queue of pending frames will start growing indefinitely. The queue will only be drained once the underlying TCP connection is closed. An attacker can cause a remote node to run out of memory, which will result in the corresponding process getting terminated by the operating system.\n","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01112,"percentile":0.6558,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"references":[{"url":"https://github.com/libp2p/rust-yamux/security/advisories/GHSA-3999-5ffv-wp2r","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/sigp/rust-yamux/commit/6689e227a48258a52347cd1d984adfc94afc6f7a","tags":["x_refsource_MISC"]},{"url":"https://github.com/libp2p/rust-yamux/blob/yamux-v0.13.1/yamux/src/connection.rs#L289","tags":["x_refsource_MISC"]}],"priority":{"score":18.4,"factors":[{"name":"EPSS percentile","points":13.12},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"libp2p","affectedVersions":[{"vendor":"libp2p","product":"rust-yamux","versions":["< 0.13.2"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2024-07-03T15:14:49.366813Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"yamux","vulnerableRanges":[">=0.13.0, <0.13.2"],"patched":["0.13.2"],"from":["GHSA-3999-5ffv-wp2r"],"provenance":"source"}],"summary":{"text":"The rust-yamux stream multiplexer, as implemented in libp2p, stores outgoing frames in an unbounded pending-frames vector in its Active component, so the queue grows without limit whenever frames cannot be sent. An unauthenticated remote attacker over the network can exploit this without user interaction by triggering responses such as Identify messages or Ping frames while withholding TCP reads to block the send path, eventually exhausting the victim's memory and causing its process to be terminated by the operating system.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:10:09Z"},"euvd":{"id":"EUVD-2024-1384","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-libp2p-rust-yamux-cve-2024-32984","children":[{"from":"CVE-2024-32984","to":"CVE-2026-31814","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"crates.io:yamux","fromFixed":"0.13.2","toFixed":"0.13.9","daysApart":681},{"kind":"same-code","provenance":"machine","files":["yamux/src/connection.rs"],"commits":["https://github.com/libp2p/rust-yamux/commit/460baf2ccb7d5982b266cb3cb9c0bdf75b4fb779","https://github.com/libp2p/rust-yamux/commit/b1aae09d60c0bd6a5915a5448f4e8cbc5174db53"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2024-32984","published":"2024-05-01","fixed":"0.13.2","kev":false},{"cve":"CVE-2026-31814","published":"2026-03-13","fixed":"0.13.9","kev":false},{"cve":"CVE-2026-32314","published":"2026-03-13","fixed":"0.13.10","kev":false}],"package":"crates.io:yamux"}}