Update Rust crate rustls to 0.23.5 [SECURITY] (dev)#434
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
Author
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.23→0.23.50.23→0.23.5Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Denial of Service Vulnerability in Rustls Library
CVE-2024-32650 / GHSA-6g7w-8wpp-frhj
More information
Details
Summary
rustls::ConnectionCommon::complete_iocould fall into an infinite loop based on network input.Details
Verified at
0.22and0.23rustls, but0.21and0.20release lines are also affected.tokio-rustlsandrustls-ffido not callcomplete_ioand are not affected.rustls::Streamandrustls::StreamOwnedtypes usecomplete_ioand are affected.When using a blocking rustls server, if a client send a
close_notifymessage immediately afterclient_hello, the server'scomplete_iowill get in an infinite loop where:eof: falseuntil_handshaked: trueself.is_handshaking(): trueself.wants_write(): falseself.wants_read(): falsePoC
cargo run --bin simpleserver test-ca/rsa/end.fullchain test-ca/rsa/end.keyrustls::conn::ConnectionCommon::complete_io, you could see the function is spinning.Also note that the server thread is stuck in this infinite loop even if the client closes the socket.
Impact
This is a DOS.
A multithread non-async server that uses
rustlscould be attacked by getting few requests like above (each request could cause one thread to spin) and stop handling normal requests.Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Denial of Service Vulnerability in Rustls Library
CVE-2024-32650 / GHSA-6g7w-8wpp-frhj / RUSTSEC-2024-0336
More information
Details
Summary
rustls::ConnectionCommon::complete_iocould fall into an infinite loop based on network input.Details
Verified at
0.22and0.23rustls, but0.21and0.20release lines are also affected.tokio-rustlsandrustls-ffido not callcomplete_ioand are not affected.rustls::Streamandrustls::StreamOwnedtypes usecomplete_ioand are affected.When using a blocking rustls server, if a client send a
close_notifymessage immediately afterclient_hello, the server'scomplete_iowill get in an infinite loop where:eof: falseuntil_handshaked: trueself.is_handshaking(): trueself.wants_write(): falseself.wants_read(): falsePoC
cargo run --bin simpleserver test-ca/rsa/end.fullchain test-ca/rsa/end.keyrustls::conn::ConnectionCommon::complete_io, you could see the function is spinning.Also note that the server thread is stuck in this infinite loop even if the client closes the socket.
Impact
This is a DOS.
A multithread non-async server that uses
rustlscould be attacked by getting few requests like above (each request could cause one thread to spin) and stop handling normal requests.Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HReferences
This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).
rustls::ConnectionCommon::complete_iocould fall into an infinite loop based on network inputCVE-2024-32650 / GHSA-6g7w-8wpp-frhj / RUSTSEC-2024-0336
More information
Details
If a
close_notifyalert is received during a handshake,complete_iodoes not terminate.
Callers which do not call
complete_ioare not affected.rustls-tokioandrustls-ffido not callcomplete_ioand are not affected.
rustls::Streamandrustls::StreamOwnedtypes usecomplete_ioand are affected.Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HReferences
This data is provided by OSV and the Rust Advisory Database (CC0 1.0).
Configuration
📅 Schedule: (in timezone Europe/Warsaw)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.