diff --git a/crates/columnar/RUSTSEC-0000-0000.md b/crates/columnar/RUSTSEC-0000-0000.md new file mode 100644 index 0000000..3a51142 --- /dev/null +++ b/crates/columnar/RUSTSEC-0000-0000.md @@ -0,0 +1,19 @@ +```toml +[advisory] +id = "RUSTSEC-0000-0000" +package = "columnar" +date = "2021-01-07" +url = "https://github.com/frankmcsherry/columnar/issues/6" +categories = ["memory-exposure"] +informational = "unsound" + +[versions] +patched = [] +``` + +# columnar: `Read` on uninitialized buffer may cause UB (ColumnarReadExt::read_typed_vec()) + +Affected versions of this crate passes an uninitialized buffer to a user-provided `Read` implementation (`ColumnarReadExt::read_typed_vec()`). + +Arbitrary `Read` implementations can read from the uninitialized buffer (memory exposure) and also can return incorrect number of bytes written to the buffer. +Reading from uninitialized memory produces undefined values that can quickly invoke undefined behavior.