Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. tokio-rustls
  4. ›
  5. CVE-2020-35875

CVE-2020-35875: Excessive memory usage in tokio-rustls

August 25, 2021 (updated June 13, 2023)

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.

References

  • github.com/advisories/GHSA-2jfv-g3fh-xq3v
  • github.com/tokio-rs/tls
  • github.com/tokio-rs/tls/pull/14
  • nvd.nist.gov/vuln/detail/CVE-2020-35875
  • rustsec.org/advisories/RUSTSEC-2020-0019.html

Code Behaviors & Features

Detect and mitigate CVE-2020-35875 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 0.12.0 before 0.12.3, all versions starting from 0.13.0 before 0.13.1

Fixed versions

  • 0.12.3
  • 0.13.1

Solution

Upgrade to versions 0.12.3, 0.13.1 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-400: Uncontrolled Resource Consumption

Source file

cargo/tokio-rustls/CVE-2020-35875.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:07 +0000.