diff --git a/crates/indradb-lib/RUSTSEC-0000-0000.md b/crates/indradb-lib/RUSTSEC-0000-0000.md new file mode 100644 index 0000000000..e8d88ef588 --- /dev/null +++ b/crates/indradb-lib/RUSTSEC-0000-0000.md @@ -0,0 +1,23 @@ +```toml +[advisory] +id = "RUSTSEC-0000-0000" +package = "indradb-lib" +date = "2025-01-18" +url = "https://github.com/indradb/indradb/issues/317" +categories = ["memory-corruption"] +keywords = ["out-of-bounds"] + +[versions] +patched = [">= 4.0.0"] +unaffected = ["< 3.0.0"] + +[affected.functions] +"indradb_lib::util::read_identifier" = [ + ">= 3.0.0, < 4.0.0", +] +``` + +# Unsound `read_identifier` +The function incorrectly assumes that any `T` could be legal `u8`, then could be used to create legal string with utf8-encoding, causing to out-of-bounds. + +The function is patched by making it `unsafe`, asking user to guarantee the correctness and safety of input before calling the API (commit `4773393`). \ No newline at end of file