Advisory

RUSTSEC-2024-0336

Also known as: CVE-2024-32650, GHSA-6g7w-8wpp-frhj

Summary

rustls::ConnectionCommon::complete_io could fall into an infinite loop based on network input

Details

If a close_notify alert is received during a handshake, complete_io
does not terminate.

Callers which do not call complete_io are not affected.

rustls-tokio and rustls-ffi do not call complete_io
and are not affected.

rustls::Stream and rustls::StreamOwned types use
complete_io and are affected.

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
2024-04-19 12:00 UTC
Modified
2026-10-12 18:00 UTC

Affected packages and fixes

rustls

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.21.11, introduced 0.22.0, fixed 0.22.4, introduced 0.23.0, fixed 0.23.5 (semver)

Fixed versions

0.21.11, 0.22.4, 0.23.5

Fix

  • Fixed version 0.21.11
    cargo update -p rustls --precise 0.21.11
  • Fixed version 0.22.4
    cargo update -p rustls --precise 0.22.4
  • Fixed version 0.23.5
    cargo update -p rustls --precise 0.23.5

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