This project might be open to known security vulnerabilities, which can be prevented by tightening the version range of affected dependencies. Find detailed information at the bottom.

Crate webrtc-constraints

Dependencies

(3 total, all up-to-date)

CrateRequiredLatestStatus
 indexmap^1.9.11.9.3up to date
 serde^1.0.1371.0.163up to date
 ordered-float^3.0.03.7.0up to date

Dev dependencies

(3 total, 1 outdated)

CrateRequiredLatestStatus
 env_logger^0.9.00.10.0out of date
 lazy_static^1.4.01.4.0up to date
 serde_json^1.0.911.0.96up to date

Crate webrtc-data

Dependencies

(4 total, 1 possibly insecure)

CrateRequiredLatestStatus
 tokio ⚠️^1.191.28.2maybe insecure
 bytes^11.4.0up to date
 log^0.4.160.4.18up to date
 thiserror^1.01.0.40up to date

Dev dependencies

(3 total, 1 outdated)

CrateRequiredLatestStatus
 tokio-test^0.4.00.4.2up to date
 env_logger^0.9.00.10.0out of date
 chrono^0.4.230.4.26up to date

Crate webrtc-dtls

Dependencies

(29 total, 10 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 byteorder^11.4.3up to date
 rand_core^0.6.30.6.4up to date
 hkdf~0.12.10.12.3up to date
 p256^0.11.10.13.2out of date
 p384^0.11.20.13.0out of date
 rand^0.8.50.8.5up to date
 hmac^0.12.10.12.1up to date
 sec1^0.3.00.7.2out of date
 sha1^0.10.50.10.5up to date
 sha2^0.10.60.10.6up to date
 aes^0.6.00.8.2out of date
 block-modes^0.7.00.9.1out of date
 aes-gcm^0.10.10.10.2up to date
 ccm^0.3.00.5.0out of date
 tokio ⚠️^1.191.28.2maybe insecure
 async-trait^0.1.560.1.68up to date
 x25519-dalek^2.0.0-rc.21.2.0up to date
 x509-parser^0.13.20.15.0out of date
 der-parser^8.18.2.0up to date
 rcgen^0.10.00.10.0up to date
 ring^0.16.190.16.20up to date
 webpki^0.21.40.22.0out of date
 rustls^0.19.00.21.1out of date
 bincode^1.31.3.3up to date
 serde^1.0.1101.0.163up to date
 subtle^2.42.5.0up to date
 log^0.4.160.4.18up to date
 thiserror^1.01.0.40up to date
 pem^12.0.1out of date

Dev dependencies

(4 total, 2 outdated)

CrateRequiredLatestStatus
 tokio-test^0.4.00.4.2up to date
 env_logger^0.9.00.10.0out of date
 chrono^0.4.230.4.26up to date
 clap^3.2.64.3.2out of date

Crate examples

Dev dependencies

(13 total, 2 outdated, 2 possibly insecure)

CrateRequiredLatestStatus
 tokio ⚠️^1.151.28.2maybe insecure
 env_logger^0.90.10.0out of date
 clap^3.04.3.2out of date
 hyper ⚠️^0.140.14.26maybe insecure
 tokio-util^0.70.7.8up to date
 anyhow^1.01.0.71up to date
 chrono^0.4.230.4.26up to date
 log^0.4.160.4.18up to date
 serde^1.0.1021.0.163up to date
 serde_json^1.01.0.96up to date
 bytes^1.11.4.0up to date
 lazy_static^1.41.4.0up to date
 rand^0.80.8.5up to date

Crate webrtc-ice

Dependencies

(12 total, 1 possibly insecure)

CrateRequiredLatestStatus
 arc-swap^1.51.6.0up to date
 async-trait^0.1.560.1.68up to date
 crc^3.03.0.1up to date
 log^0.4.160.4.18up to date
 rand^0.8.50.8.5up to date
 serde^1.0.1021.0.163up to date
 serde_json^1.01.0.96up to date
 thiserror^1.01.0.40up to date
 tokio ⚠️^1.191.28.2maybe insecure
 url^2.22.4.0up to date
 uuid^1.11.3.3up to date
 waitgroup^0.1.20.1.2up to date

Dev dependencies

(9 total, 2 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 tokio-test^0.4.00.4.2up to date
 regex ⚠️^11.8.4maybe insecure
 env_logger^0.9.00.10.0out of date
 chrono^0.4.230.4.26up to date
 ipnet^2.5.02.7.2up to date
 clap^3.2.64.3.2out of date
 lazy_static^1.4.01.4.0up to date
 hyper^0.14.190.14.26up to date
 sha1^0.10.50.10.5up to date

Crate interceptor

Dependencies

(7 total, 1 possibly insecure)

CrateRequiredLatestStatus
 tokio ⚠️^1.191.28.2maybe insecure
 async-trait^0.1.560.1.68up to date
 bytes^11.4.0up to date
 thiserror^1.01.0.40up to date
 rand^0.8.50.8.5up to date
 waitgroup^0.1.20.1.2up to date
 log^0.4.160.4.18up to date

Dev dependencies

(2 total, all up-to-date)

CrateRequiredLatestStatus
 tokio-test^0.4.00.4.2up to date
 chrono^0.4.230.4.26up to date

Crate webrtc-mdns

Dependencies

(4 total, 1 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 tokio ⚠️^1.191.28.2maybe insecure
 socket2^0.4.40.5.3out of date
 log^0.4.160.4.18up to date
 thiserror^1.01.0.40up to date

Dev dependencies

(3 total, 2 outdated)

CrateRequiredLatestStatus
 env_logger^0.9.00.10.0out of date
 chrono^0.4.230.4.26up to date
 clap^3.2.64.3.2out of date

Crate webrtc-media

Dependencies

(4 total, all up-to-date)

CrateRequiredLatestStatus
 byteorder^11.4.3up to date
 bytes^11.4.0up to date
 thiserror^1.01.0.40up to date
 rand^0.8.50.8.5up to date

Dev dependencies

(2 total, 1 outdated)

CrateRequiredLatestStatus
 criterion^0.4.00.5.1out of date
 nearly_eq^0.2.40.2.4up to date

Crate rtcp

Dependencies

(2 total, all up-to-date)

CrateRequiredLatestStatus
 bytes^11.4.0up to date
 thiserror^1.01.0.40up to date

Crate rtp

Dependencies

(4 total, all up-to-date)

CrateRequiredLatestStatus
 bytes^11.4.0up to date
 rand^0.8.50.8.5up to date
 thiserror^1.01.0.40up to date
 serde^1.0.1021.0.163up to date

Dev dependencies

(2 total, 1 outdated)

CrateRequiredLatestStatus
 chrono^0.4.230.4.26up to date
 criterion^0.4.00.5.1out of date

Crate webrtc-sctp

Dependencies

(8 total, 1 possibly insecure)

CrateRequiredLatestStatus
 arc-swap^1.51.6.0up to date
 tokio ⚠️^1.191.28.2maybe insecure
 bytes^11.4.0up to date
 rand^0.8.50.8.5up to date
 crc^3.03.0.1up to date
 async-trait^0.1.560.1.68up to date
 log^0.4.160.4.18up to date
 thiserror^1.01.0.40up to date

Dev dependencies

(5 total, 2 outdated)

CrateRequiredLatestStatus
 tokio-test^0.4.00.4.2up to date
 lazy_static^1.4.01.4.0up to date
 env_logger^0.9.00.10.0out of date
 chrono^0.4.230.4.26up to date
 clap^3.2.64.3.2out of date

Crate sdp

Dependencies

(4 total, all up-to-date)

CrateRequiredLatestStatus
 url^2.22.4.0up to date
 rand^0.8.50.8.5up to date
 thiserror~1.0.101.0.40up to date
 substring^1.41.4.5up to date

Dev dependencies

(1 total, 1 outdated)

CrateRequiredLatestStatus
 criterion^0.4.00.5.1out of date

Crate webrtc-srtp

Dependencies

(12 total, 3 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 byteorder^11.4.3up to date
 bytes^11.4.0up to date
 thiserror^1.01.0.40up to date
 hmac^0.12.10.12.1up to date
 sha1^0.10.50.10.5up to date
 ctr^0.8.00.9.2out of date
 aes^0.7.50.8.2out of date
 subtle^2.42.5.0up to date
 tokio ⚠️^1.191.28.2maybe insecure
 log^0.4.160.4.18up to date
 aead^0.4.30.5.2out of date
 aes-gcm^0.10.10.10.2up to date

Dev dependencies

(2 total, all up-to-date)

CrateRequiredLatestStatus
 tokio-test^0.4.00.4.2up to date
 lazy_static^1.4.01.4.0up to date

Crate stun

Dependencies

(10 total, 1 possibly insecure)

CrateRequiredLatestStatus
 tokio ⚠️^1.191.28.2maybe insecure
 lazy_static^1.41.4.0up to date
 url^2.22.4.0up to date
 rand^0.8.50.8.5up to date
 base64^0.21.20.21.2up to date
 subtle^2.42.5.0up to date
 crc^3.03.0.1up to date
 ring^0.16.200.16.20up to date
 md-5^0.10.10.10.5up to date
 thiserror^1.01.0.40up to date

Dev dependencies

(3 total, 2 outdated)

CrateRequiredLatestStatus
 tokio-test^0.4.00.4.2up to date
 clap^3.2.64.3.2out of date
 criterion^0.4.00.5.1out of date

Crate turn

Dependencies

(9 total, 1 possibly insecure)

CrateRequiredLatestStatus
 futures^0.3.210.3.28up to date
 tokio ⚠️^1.191.28.2maybe insecure
 async-trait^0.1.560.1.68up to date
 log^0.4.160.4.18up to date
 base64^0.21.20.21.2up to date
 rand^0.8.50.8.5up to date
 ring^0.16.200.16.20up to date
 md-5^0.10.10.10.5up to date
 thiserror^1.01.0.40up to date

Dev dependencies

(6 total, 3 outdated)

CrateRequiredLatestStatus
 tokio-test^0.4.00.4.2up to date
 env_logger^0.9.00.10.0out of date
 chrono^0.4.230.4.26up to date
 hex^0.4.30.4.3up to date
 clap^3.2.64.3.2out of date
 criterion^0.4.00.5.1out of date

Crate webrtc-util

Dependencies

(8 total, 1 possibly insecure)

CrateRequiredLatestStatus
 tokio ⚠️^1.191.28.2maybe insecure
 lazy_static^1.41.4.0up to date
 async-trait^0.1.560.1.68up to date
 ipnet^2.52.7.2up to date
 log^0.4.160.4.18up to date
 rand^0.8.50.8.5up to date
 bytes^11.4.0up to date
 thiserror~1.0.21.0.40up to date

Dev dependencies

(5 total, 2 outdated)

CrateRequiredLatestStatus
 tokio-test^0.4.00.4.2up to date
 env_logger^0.9.00.10.0out of date
 chrono^0.4.230.4.26up to date
 criterion^0.4.00.5.1out of date
 async-global-executor^2.3.12.3.1up to date

Build dependencies

(1 total, all up-to-date)

CrateRequiredLatestStatus
 cc^1.0.731.0.79up to date

Crate webrtc

Dependencies

(21 total, 2 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 arc-swap^1.51.6.0up to date
 tokio ⚠️^1.191.28.2maybe insecure
 log^0.4.160.4.18up to date
 async-trait^0.1.560.1.68up to date
 serde^1.0.1101.0.163up to date
 serde_json^1.01.0.96up to date
 rand^0.8.50.8.5up to date
 bytes^11.4.0up to date
 thiserror^1.01.0.40up to date
 waitgroup^0.1.20.1.2up to date
 regex^1.7.11.8.4up to date
 smol_str^0.2.00.2.0up to date
 url^2.22.4.0up to date
 rustls^0.19.00.21.1out of date
 rcgen^0.10.00.10.0up to date
 ring^0.16.200.16.20up to date
 sha2^0.10.60.10.6up to date
 lazy_static^1.41.4.0up to date
 hex^0.4.30.4.3up to date
 pem^12.0.1out of date
 time~0.3.10.3.21up to date

Dev dependencies

(2 total, 1 outdated)

CrateRequiredLatestStatus
 tokio-test^0.4.00.4.2up to date
 env_logger^0.9.00.10.0out of date

Crate hub

Dependencies

(4 total, 1 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 tokio ⚠️^11.28.2maybe insecure
 rcgen^0.100.10.0up to date
 rustls^0.190.21.1out of date
 thiserror^11.0.40up to date

Crate signal

Dependencies

(5 total, 1 possibly insecure)

CrateRequiredLatestStatus
 tokio ⚠️^1.15.01.28.2maybe insecure
 anyhow^1.0.521.0.71up to date
 base64^0.21.20.21.2up to date
 lazy_static^1.41.4.0up to date
 hyper^0.14.160.14.26up to date

Security Vulnerabilities

hyper: Lenient `hyper` header parsing of `Content-Length` could allow request smuggling

RUSTSEC-2021-0078

hyper's HTTP header parser accepted, according to RFC 7230, illegal contents inside Content-Length headers. Due to this, upstream HTTP proxies that ignore the header may still forward them along if it chooses to ignore the error.

To be vulnerable, hyper must be used as an HTTP/1 server and using an HTTP proxy upstream that ignores the header's contents but still forwards it. Due to all the factors that must line up, an attack exploiting this vulnerability is unlikely.

hyper: Integer overflow in `hyper`'s parsing of the `Transfer-Encoding` header leads to data loss

RUSTSEC-2021-0079

When decoding chunk sizes that are too large, hyper's code would encounter an integer overflow. Depending on the situation, this could lead to data loss from an incorrect total size, or in rarer cases, a request smuggling attack.

To be vulnerable, you must be using hyper for any HTTP/1 purpose, including as a client or server, and consumers must send requests or responses that specify a chunk size greater than 18 exabytes. For a possible request smuggling attack to be possible, any upstream proxies must accept a chunk size greater than 64 bits.

regex: Regexes with large repetitions on empty sub-expressions take a very long time to parse

RUSTSEC-2022-0013

The Rust Security Response WG was notified that the regex crate did not properly limit the complexity of the regular expressions (regex) it parses. An attacker could use this security issue to perform a denial of service, by sending a specially crafted regex to a service accepting untrusted regexes. No known vulnerability is present when parsing untrusted input with trusted regexes.

This issue has been assigned CVE-2022-24713. The severity of this vulnerability is "high" when the regex crate is used to parse untrusted regexes. Other uses of the regex crate are not affected by this vulnerability.

Overview

The regex crate features built-in mitigations to prevent denial of service attacks caused by untrusted regexes, or untrusted input matched by trusted regexes. Those (tunable) mitigations already provide sane defaults to prevent attacks. This guarantee is documented and it's considered part of the crate's API.

Unfortunately a bug was discovered in the mitigations designed to prevent untrusted regexes to take an arbitrary amount of time during parsing, and it's possible to craft regexes that bypass such mitigations. This makes it possible to perform denial of service attacks by sending specially crafted regexes to services accepting user-controlled, untrusted regexes.

Affected versions

All versions of the regex crate before or equal to 1.5.4 are affected by this issue. The fix is include starting from regex 1.5.5.

Mitigations

We recommend everyone accepting user-controlled regexes to upgrade immediately to the latest version of the regex crate.

Unfortunately there is no fixed set of problematic regexes, as there are practically infinite regexes that could be crafted to exploit this vulnerability. Because of this, we do not recommend denying known problematic regexes.

Acknowledgements

We want to thank Addison Crump for responsibly disclosing this to us according to the Rust security policy, and for helping review the fix.

We also want to thank Andrew Gallant for developing the fix, and Pietro Albini for coordinating the disclosure and writing this advisory.

tokio: reject_remote_clients Configuration corruption

RUSTSEC-2023-0001

On Windows, configuring a named pipe server with pipe_mode will force ServerOptions::reject_remote_clients as false.

This drops any intended explicit configuration for the reject_remote_clients that may have been set as true previously.

The default setting of reject_remote_clients is normally true meaning the default is also overridden as false.

Workarounds

Ensure that pipe_mode is set first after initializing a ServerOptions. For example:

let mut opts = ServerOptions::new();
opts.pipe_mode(PipeMode::Message);
opts.reject_remote_clients(true);