GitHub Advisory Database
GHSA-2jfv-g3fh-xq3v
Excessive memory usage in tokio-rustls
Details
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| crates.io | tokio-rustls | From 0.12.0 before 0.12.3 (fixed in 0.12.3) |
| crates.io | tokio-rustls | From 0.13.0 before 0.13.1 (fixed in 0.13.1) |