Skip to content

Commit

Permalink
Add advisory for uninitialized exposure in messagepack-rs (#835)
Browse files Browse the repository at this point in the history
  • Loading branch information
ammaraskar committed Aug 22, 2021
1 parent cf6f9d2 commit 460ac8b
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions crates/messagepack-rs/RUSTSEC-0000-0000.md
Original file line number Diff line number Diff line change
@@ -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.

0 comments on commit 460ac8b

Please sign in to comment.