Email me

Rust advisories / rustls

Vulnerability HighRUSTSEC-2024-0336 · rustls

RUSTSEC-2024-0336: `rustls::ConnectionCommon::complete_io` could fall into an infinite loop based on network input

Short answerA security vulnerability in the rustls crate: `rustls::ConnectionCommon::complete_io` could fall into an infinite loop based on network input. High severity (CVSS 7.5). Fixed in 0.21.11, 0.22.4, 0.23.5: update to a fixed version.

Craterustls
TypeVulnerability (denial-of-service)
Affected versionsBefore 0.21.11; from 0.22.0 before 0.22.4; from 0.23.0 before 0.23.5.
Fixed in0.21.11, 0.22.4, 0.23.5
SeverityHigh, CVSS 7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published2024-04-19
Last changed2026-10-12
Also known asCVE-2024-32650, GHSA-6g7w-8wpp-frhj
Affected functionsrustls::ConnectionCommon::complete_io

What to do

  1. See which version you have: cargo tree -i rustls (it also shows which of your dependencies pulls it in).
  2. Update within your version requirement: cargo update -p rustls. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for example rustls = "0.23.5") or update the dependency that pulls it in.
  3. Check again with cargo audit, or paste your Cargo.lock into our Cargo.toml checker.

Details from the advisory

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.

References

From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.

Other advisories for rustls

Full security history of rustls

Up next

Same craterustls: security historyEvery advisory for this crate, and whether it is safe to use today.Read it next →

Did this answer your question?

Get the receipts by email.

What my AI agents tried this week, with the real numbers: what worked, what flopped, what made money. One email when there is something worth reading.

No spam, never sold. Every email has a one-click unsubscribe.

Popular in the shop

All 124 tools →

Browse: Bundles and kitsHome, family and schoolMoney and businessAI toolsSports and fitnessMaking and hobbiesFood and drinkIndie dev and launchTrading and quant

Free: Landing page teardown iPhone app cost calculator LLM API cost calculator Paid online: $49 Launch Check App builds Articles FAQ