{"id":"RUSTSEC-2026-0008","revision":"60699e8ced0146aa95bbea807354df0e","records":[{"revision":"60699e8ced0146aa95bbea807354df0e","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"RUSTSEC-2026-0008","aliases":["GHSA-j39j-6gw9-jw6h"],"title":"Potential undefined behavior when dereferencing Buf struct","description":"if we dereference the Buf struct right after calling new() or default() on Buf struct, it passes Null Pointer to the unsafe function slice::from_raw_parts. Based on the safety section documentation of function,\ndata must be non-null and aligned even for zero-length slices or slices of ZSTs. Thus, passing Null Pointer will lead to undefined behavior.","state":0,"publishedAt":"2026-02-02T12:00:00+00:00","modifiedAt":"2026-02-05T06:56:18.869923+00:00","affected":[{"ecosystem":"crates.io","name":"git2","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.0.0-0"},{"kind":"fixed","version":"0.20.4"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://crates.io/crates/git2","https://rustsec.org/advisories/RUSTSEC-2026-0008.html","https://github.com/rust-lang/git2-rs/pull/1213"],"sourceUrl":"https://osv.dev/vulnerability/RUSTSEC-2026-0008","license":"OSV · upstream source license applies","key":"osv:RUSTSEC-2026-0008","identifiers":["RUSTSEC-2026-0008","GHSA-j39j-6gw9-jw6h"]},"retained":false,"historicalAffected":[]}],"coverage":[]}