Advisory

RUSTSEC-2020-0019

Also known as: CVE-2020-35875, GHSA-2jfv-g3fh-xq3v

Summary

tokio-rustls reads may cause excessive memory usage

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: CVSS v3 score 7.5, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Dates

Published
2020-05-19 12:00 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, introduced 0.13.0, fixed 0.13.1 (semver)

Fixed versions

0.12.3, 0.13.1

Fix

  • Fixed version 0.12.3
    cargo update -p tokio-rustls --precise 0.12.3
  • 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: RustSec Advisory Database · CC0-1.0

Sources & licences