Advisory

GHSA-2jfv-g3fh-xq3v

Also known as: CVE-2020-35875, RUSTSEC-2020-0019

Summary

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2021-08-25 20:46 UTC
Modified
2023-11-08 04:03 UTC

Affected packages and fixes

tokio-rustls

crates.io · All systems

Affected

  • introduced 0.12.0, fixed 0.12.3 (semver)

Fixed versions

0.12.3

Fix

  • Fixed version 0.12.3
    cargo update -p tokio-rustls --precise 0.12.3

tokio-rustls

crates.io · All systems

Affected

  • introduced 0.13.0, fixed 0.13.1 (semver)

Fixed versions

0.13.1

Fix

  • Fixed version 0.13.1
    cargo update -p tokio-rustls --precise 0.13.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences