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

(4 total, all up-to-date)

CrateRequiredLatestStatus
 indexmap^1.9.11.9.2up to date
 log^0.4.170.4.17up to date
 serde^1.0.1371.0.152up to date
 ordered-float^3.0.03.4.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.91up to date

Crate webrtc-data

Dependencies

(5 total, 1 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 tokio ⚠️^1.191.25.0maybe insecure
 bytes^11.4.0up to date
 derive_builder^0.11.20.12.0out of date
 log^0.4.160.4.17up to date
 thiserror^1.01.0.38up 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.23up to date

Crate webrtc-dtls

Dependencies

(33 total, 10 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 byteorder^11.4.3up to date
 rand_core^0.6.30.6.4up to date
 elliptic-curve^0.12.10.12.3up to date
 hkdf~0.12.10.12.3up to date
 curve25519-dalek^3.23.2.1up to date
 p256^0.11.10.12.0out of date
 p384^0.11.20.12.0out of date
 rand^0.8.50.8.5up to date
 hmac^0.12.10.12.1up to date
 sec1^0.3.00.3.0up to 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.1up to date
 ccm^0.3.00.5.0out of date
 tokio ⚠️^1.191.25.0maybe insecure
 async-trait^0.1.560.1.64up to date
 x25519-dalek^2.0.0-pre.11.2.0up to date
 signature^1.2.22.0.0out of date
 oid-registry^0.6.00.6.1up to date
 x509-parser^0.13.20.14.0out of date
 der-parser^8.18.1.0up to date
 rcgen^0.9.20.10.0out of date
 ring^0.16.190.16.20up to date
 webpki^0.21.40.22.0out of date
 rustls^0.19.00.20.8out of date
 bincode^1.31.3.3up to date
 serde^1.0.1101.0.152up to date
 subtle^2.42.4.1up to date
 log^0.4.160.4.17up to date
 thiserror^1.01.0.38up to date
 pem^11.1.1up to 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.23up to date
 clap^3.2.64.1.4out of date

Crate examples

Dev dependencies

(13 total, 3 outdated, 2 possibly insecure)

CrateRequiredLatestStatus
 tokio ⚠️^1.151.25.0maybe insecure
 env_logger^0.90.10.0out of date
 clap^3.04.1.4out of date
 hyper ⚠️^0.140.14.24maybe insecure
 tokio-util^0.60.7.4out of date
 anyhow^1.01.0.68up to date
 chrono^0.4.230.4.23up to date
 log^0.4.160.4.17up to date
 serde^1.0.1021.0.152up to date
 serde_json^1.01.0.91up 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.64up to date
 crc^3.03.0.1up to date
 log^0.4.160.4.17up to date
 rand^0.8.50.8.5up to date
 serde^1.0.1021.0.152up to date
 serde_json^1.01.0.91up to date
 thiserror^1.01.0.38up to date
 tokio ⚠️^1.191.25.0maybe insecure
 url^2.22.3.1up to date
 uuid^1.11.3.0up 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.7.1maybe insecure
 env_logger^0.9.00.10.0out of date
 chrono^0.4.230.4.23up to date
 ipnet^2.5.02.7.1up to date
 clap^3.2.64.1.4out of date
 lazy_static^1.4.01.4.0up to date
 hyper^0.14.190.14.24up to date
 sha1^0.10.50.10.5up to date

Crate interceptor

Dependencies

(7 total, 1 possibly insecure)

CrateRequiredLatestStatus
 tokio ⚠️^1.191.25.0maybe insecure
 async-trait^0.1.560.1.64up to date
 bytes^11.4.0up to date
 thiserror^1.01.0.38up to date
 rand^0.8.50.8.5up to date
 waitgroup^0.1.20.1.2up to date
 log^0.4.160.4.17up 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.23up to date

Crate webrtc-mdns

Dependencies

(4 total, 1 possibly insecure)

CrateRequiredLatestStatus
 tokio ⚠️^1.191.25.0maybe insecure
 socket2^0.4.40.4.7up to date
 log^0.4.160.4.17up to date
 thiserror^1.01.0.38up to date

Dev dependencies

(3 total, 2 outdated)

CrateRequiredLatestStatus
 env_logger^0.9.00.10.0out of date
 chrono^0.4.230.4.23up to date
 clap^3.2.64.1.4out of date

Crate webrtc-media

Dependencies

(6 total, 1 outdated)

CrateRequiredLatestStatus
 byteorder^11.4.3up to date
 bytes^11.4.0up to date
 displaydoc^0.2.30.2.3up to date
 thiserror^1.01.0.38up to date
 rand^0.8.50.8.5up to date
 derive_builder^0.11.20.12.0out of date

Dev dependencies

(2 total, 1 outdated)

CrateRequiredLatestStatus
 criterion^0.3.50.4.0out 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.38up to date

Dev dependencies

(2 total, 1 possibly insecure)

CrateRequiredLatestStatus
 tokio ⚠️^1.191.25.0maybe insecure
 tokio-test^0.4.00.4.2up to date

Crate rtp

Dependencies

(5 total, all up-to-date)

CrateRequiredLatestStatus
 bytes^11.4.0up to date
 rand^0.8.50.8.5up to date
 thiserror^1.01.0.38up to date
 async-trait^0.1.560.1.64up to date
 serde^1.0.1021.0.152up to date

Dev dependencies

(4 total, 1 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 chrono^0.4.230.4.23up to date
 criterion^0.3.50.4.0out of date
 tokio ⚠️^1.191.25.0maybe insecure
 tokio-test^0.4.00.4.2up to date

Crate webrtc-sctp

Dependencies

(8 total, 1 possibly insecure)

CrateRequiredLatestStatus
 arc-swap^1.51.6.0up to date
 tokio ⚠️^1.191.25.0maybe 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.64up to date
 log^0.4.160.4.17up to date
 thiserror^1.01.0.38up 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.23up to date
 clap^3.2.64.1.4out of date

Crate sdp

Dependencies

(4 total, all up-to-date)

CrateRequiredLatestStatus
 url^2.22.3.1up to date
 rand^0.8.50.8.5up to date
 thiserror~1.0.101.0.38up to date
 substring^1.41.4.5up to date

Dev dependencies

(1 total, 1 outdated)

CrateRequiredLatestStatus
 criterion^0.3.50.4.0out of date

Crate webrtc-srtp

Dependencies

(13 total, 3 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 byteorder^11.4.3up to date
 bytes^11.4.0up to date
 thiserror^1.01.0.38up 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.4.1up to date
 tokio ⚠️^1.191.25.0maybe insecure
 async-trait^0.1.560.1.64up to date
 log^0.4.160.4.17up to date
 aead^0.4.30.5.1out of date
 aes-gcm^0.10.10.10.1up 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 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 tokio ⚠️^1.191.25.0maybe insecure
 lazy_static^1.41.4.0up to date
 url^2.22.3.1up to date
 rand^0.8.50.8.5up to date
 base64^0.13.00.21.0out of date
 subtle^2.42.4.1up 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.38up to date

Dev dependencies

(3 total, 2 outdated)

CrateRequiredLatestStatus
 tokio-test^0.4.00.4.2up to date
 clap^3.2.64.1.4out of date
 criterion^0.3.50.4.0out of date

Crate turn

Dependencies

(9 total, 1 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 futures^0.3.210.3.26up to date
 tokio ⚠️^1.191.25.0maybe insecure
 async-trait^0.1.560.1.64up to date
 log^0.4.160.4.17up to date
 base64^0.13.00.21.0out of 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.38up 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.23up to date
 hex^0.4.30.4.3up to date
 clap^3.2.64.1.4out of date
 criterion^0.3.50.4.0out of date

Crate webrtc-util

Dependencies

(8 total, 1 possibly insecure)

CrateRequiredLatestStatus
 tokio ⚠️^1.191.25.0maybe insecure
 lazy_static^1.41.4.0up to date
 async-trait^0.1.560.1.64up to date
 ipnet^2.52.7.1up to date
 log^0.4.160.4.17up to date
 rand^0.8.50.8.5up to date
 bytes^11.4.0up to date
 thiserror~1.0.21.0.38up 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.23up to date
 criterion^0.3.50.4.0out 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

(20 total, 2 outdated, 2 possibly insecure)

CrateRequiredLatestStatus
 arc-swap^1.51.6.0up to date
 tokio ⚠️^1.191.25.0maybe insecure
 log^0.4.160.4.17up to date
 async-trait^0.1.560.1.64up to date
 serde^1.0.1101.0.152up to date
 serde_json^1.01.0.91up to date
 rand^0.8.50.8.5up to date
 bytes^11.4.0up to date
 thiserror^1.01.0.38up to date
 waitgroup^0.1.20.1.2up to date
 regex ⚠️^11.7.1maybe insecure
 url^2.22.3.1up to date
 rustls^0.19.00.20.8out of date
 rcgen^0.9.20.10.0out of 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^11.1.1up to date
 time~0.3.10.3.17up 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

(7 total, 3 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 tokio ⚠️^11.25.0maybe insecure
 x509-parser^0.130.14.0out of date
 rcgen^0.90.10.0out of date
 ring^0.160.16.20up to date
 rustls^0.190.20.8out of date
 log^0.4.160.4.17up to date
 thiserror^11.0.38up to date

Crate signal

Dependencies

(5 total, 1 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 tokio ⚠️^1.15.01.25.0maybe insecure
 anyhow^1.0.521.0.68up to date
 base64^0.13.00.21.0out of date
 lazy_static^1.41.4.0up to date
 hyper^0.14.160.14.24up 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 overriden 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);