mirror of
https://github.com/OMGeeky/advisory-db.git
synced 2026-01-03 18:15:23 +01:00
prost-types: Timestamp conversion overflow (#954)
This commit is contained in:
25
crates/prost-types/RUSTSEC-0000-0000.md
Normal file
25
crates/prost-types/RUSTSEC-0000-0000.md
Normal file
@@ -0,0 +1,25 @@
|
||||
```toml
|
||||
[advisory]
|
||||
id = "RUSTSEC-0000-0000"
|
||||
package = "prost-types"
|
||||
date = "2021-07-08"
|
||||
url = "https://github.com/tokio-rs/prost/issues/438"
|
||||
categories = ["denial-of-service"]
|
||||
keywords = ["denial-of-service"]
|
||||
|
||||
[versions]
|
||||
patched = [">= 0.8.0"]
|
||||
|
||||
[affected]
|
||||
functions = { "prost_types::Timestamp::Into<SystemTime>" = ["<= 0.7.0"] }
|
||||
```
|
||||
|
||||
# Conversion from `prost_types::Timestamp` to `SystemTime` can cause an overflow and panic
|
||||
|
||||
Affected versions of this crate contained a bug in which untrusted input could cause an overflow and panic when converting a `Timestamp` to `SystemTime`.
|
||||
|
||||
It is recommended to upgrade to `prost-types` v0.8 and switch the usage of `From<Timestamp> for SystemTime` to `TryFrom<Timestamp> for SystemTime`.
|
||||
|
||||
See [#438] for more information.
|
||||
|
||||
[#438]: https://github.com/tokio-rs/prost/issues/438
|
||||
Reference in New Issue
Block a user