Add advisory for uninitialized exposure in messagepack-rs (#835)

This commit is contained in:
Ammar Askar
2021-08-21 21:39:40 -04:00
committed by GitHub
parent cf6f9d252e
commit 460ac8be0d

View File

@@ -0,0 +1,25 @@
```toml
[advisory]
id = "RUSTSEC-0000-0000"
package = "messagepack-rs"
date = "2021-01-26"
url = "https://github.com/otake84/messagepack-rs/issues/2"
categories = ["memory-exposure"]
[versions]
patched = []
```
# Deserialization functions pass uninitialized memory to user-provided Read
Affected versions of this crate passed an uninitialized buffer to a
user-provided `Read` instance in:
* `deserialize_binary`
* `deserialize_string`
* `deserialize_extension_others`
* `deserialize_string_primitive`
This can result in safe `Read` implementations reading from the uninitialized
buffer leading to undefined behavior.