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 serenity

Dependencies

(22 total, 13 outdated, 3 possibly insecure)

CrateRequiredLatestStatus
 audiopus^0.10.2.0out of date
 base64^0.100.22.0out of date
 bitflags^1.02.5.0out of date
 byteorder^1.31.5.0up to date
 chrono ⚠️^0.40.4.38maybe insecure
 command_attr^0.10.5.1out of date
 flate2^1.01.0.28up to date
 log^0.40.4.21up to date
 parking_lot^0.80.12.1out of date
 rand^0.60.8.5out of date
 reqwest^0.90.12.3out of date
 rustls^0.150.23.4out of date
 serde^1.01.0.198up to date
 serde_json^1.01.0.116up to date
 sodiumoxide^0.20.2.7up to date
 threadpool^1.71.8.1up to date
 tungstenite ⚠️^0.60.21.0out of date
 typemap^0.30.3.3up to date
 url^1.72.5.0out of date
 uwl^0.3.20.6.0out of date
 webpki ⚠️^0.190.22.4out of date
 webpki-roots^0.160.26.1out of date

Dev dependencies

(2 total, 1 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 http ⚠️^0.11.1.0out of date
 matches^0.10.1.10up to date

Security Vulnerabilities

http: Integer Overflow in HeaderMap::reserve() can cause Denial of Service

RUSTSEC-2019-0033

HeaderMap::reserve() used usize::next_power_of_two() to calculate the increased capacity. However, next_power_of_two() silently overflows to 0 if given a sufficiently large number in release mode.

If the map was not empty when the overflow happens, the library will invoke self.grow(0) and start infinite probing. This allows an attacker who controls the argument to reserve() to cause a potential denial of service (DoS).

The flaw was corrected in 0.1.20 release of http crate.

http: HeaderMap::Drain API is unsound

RUSTSEC-2019-0034

chrono: Potential segfault in `localtime_r` invocations

RUSTSEC-2020-0159

Impact

Unix-like operating systems may segfault due to dereferencing a dangling pointer in specific circumstances. This requires an environment variable to be set in a different thread than the affected functions. This may occur without the user's knowledge, notably in a third-party library.

Workarounds

No workarounds are known.

References

webpki: webpki: CPU denial of service in certificate path building

RUSTSEC-2023-0052

When this crate is given a pathological certificate chain to validate, it will spend CPU time exponential with the number of candidate certificates at each step of path building.

Both TLS clients and TLS servers that accept client certificate are affected.

This was previously reported in https://github.com/briansmith/webpki/issues/69 and re-reported recently by Luke Malinowski.

webpki 0.22.1 included a partial fix and webpki 0.22.2 added further fixes.

tungstenite: Tungstenite allows remote attackers to cause a denial of service

RUSTSEC-2023-0065

The Tungstenite crate through 0.20.0 for Rust allows remote attackers to cause a denial of service (minutes of CPU consumption) via an excessive length of an HTTP header in a client handshake. The length affects both how many times a parse is attempted (e.g., thousands of times) and the average amount of data for each parse attempt (e.g., millions of bytes).