HighFix available
`rustls::ConnectionCommon::complete_io` could fall into an infinite loop based on network input
Type: advisorySources: OSV
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.
- Products
- rustls
- Affected versions
- Not specified
- Fixed versions
- 0.21.11, 0.22.4, 0.23.5
- CVEs
- CVE-2024-32650
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 30 Oct 2026, 08:43 UTC · Revision 1
Source evidence
`rustls::ConnectionCommon::complete_io` could fall into an infinite loop based on network input
core-osv · Original sourcePublished 19 Apr 2024, 12:00 UTC
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.
osv:RUSTSEC-2024-0336
rustls
Fixed versions: 0.21.11, 0.22.4, 0.23.5
Complete source record
{
"id": "d88c9341f6dcb99c321a2a355f59af2549253626d0cc76e204bb7d219c14a18a",
"url": "https://osv.dev/vulnerability/RUSTSEC-2024-0336",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "`rustls::ConnectionCommon::complete_io` could fall into an infinite loop based on network input",
"summary": "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.",
"evidence": "osv:RUSTSEC-2024-0336",
"products": [
{
"name": {
"value": "rustls",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "0.21.11",
"evidence": "/affected/0/ranges"
},
{
"value": "0.22.4",
"evidence": "/affected/0/ranges"
},
{
"value": "0.23.5",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "RUSTSEC-2024-0336",
"aliases": [
"CVE-2024-32650",
"GHSA-6g7w-8wpp-frhj",
"RUSTSEC-2024-0336"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"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"
}
]
}
],
"package": {
"name": "rustls",
"purl": "pkg:cargo/rustls",
"ecosystem": "crates.io"
},
"database_specific": {
"cvss": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
"source": "https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2024-0336.json",
"categories": [
"denial-of-service"
],
"informational": null
},
"ecosystem_specific": {
"affects": {
"os": [],
"arch": [],
"functions": [
"rustls::ConnectionCommon::complete_io"
]
},
"affected_functions": null
}
}
],
"modified": "2026-10-12T18:00:07.054681492Z",
"provider": "osv",
"references": [
"https://crates.io/crates/rustls",
"https://rustsec.org/advisories/RUSTSEC-2024-0336.html",
"https://github.com/rustls/rustls/commit/2123576840aa31043a31b0770e6572136fbe0c2d"
],
"provider_metadata": {
"license": "CC0-1.0"
}
},
"related_cves": [
{
"value": "CVE-2024-32650",
"evidence": "/aliases"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 306372,
"published_at": "2024-04-19T12:00:00+00:00"
}