GitHub Advisoryadvisory · crates.io
GHSA-2jfv-g3fh-xq3v Excessive memory usage in tokio-rustls
HIGH
Official page ↗
- Aliases
- CVE-2020-35875
- Ecosystem
- crates.io
- Packages
- tokio-rustls
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Weaknesses
- CWE-400
- Reviewed
- 2021-08-19
Affected packages
• crates.io tokio-rustls: >= 0.12.0, < 0.12.3 → fixed in 0.12.3
• crates.io tokio-rustls: >= 0.13.0, < 0.13.1 → fixed in 0.13.1
Description
tokio-rustls does not call process_new_packets immediately after read, so the expected termination condition wants_read always returns true. As long as new incoming data arrives faster than it is processed and the reader does not return pending, data will be buffered. This may cause DoS.
Related
Alias · CVE (1)
- CVE-2020-35875 An issue was discovered in the tokio-rustls crate before 0.13.1 for Rust. vulnerability
Weakness · CWE (1)
- CWE-400 Uncontrolled Resource Consumption weakness