RUSTSEC-2024-0336

Source
https://rustsec.org/advisories/RUSTSEC-2024-0336
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2024-0336.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2024-0336
Aliases
Published
2024-04-19T12:00:00Z
Modified
2024-04-20T02:21:14Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
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.

Database specific
{
    "license": "CC0-1.0"
}
References

Affected packages

crates.io / rustls

Package

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

Ecosystem specific

{
    "affected_functions": null,
    "affects": {
        "os": [],
        "functions": [
            "rustls::ConnectionCommon::complete_io"
        ],
        "arch": []
    }
}

Database specific

{
    "cvss": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
    "informational": null,
    "categories": [
        "denial-of-service"
    ]
}