{"id":"GHSA-j39j-6gw9-jw6h","revision":"1b3c97f335b54e11bf4a0eb7a21409c5","records":[{"revision":"1b3c97f335b54e11bf4a0eb7a21409c5","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"GHSA-j39j-6gw9-jw6h","aliases":["RUSTSEC-2026-0008"],"title":"git2 has potential undefined behavior when dereferencing Buf struct ","description":"If the Buf struct is dereferenced immediately after calling new() or default() on the Buf struct, a null pointer is passed to the unsafe function slice::from_raw_parts. According to the safety section documentation of the function, data must be non-null and aligned even for zero-length slices or slices of ZSTs. Thus, passing a null pointer will lead to undefined behavior.","state":0,"publishedAt":"2026-02-04T20:36:04+00:00","modifiedAt":"2026-09-10T03:50:35.3086861+00:00","affected":[{"ecosystem":"crates.io","name":"git2","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"0.20.4"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V4","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"LOW"}],"references":["https://github.com/rust-lang/git2-rs/issues/1211","https://github.com/rust-lang/git2-rs/pull/1213","https://github.com/rust-lang/git2-rs/commit/9e160f15bd056f82143109bb330573381e5de719","https://github.com/rust-lang/git2-rs","https://rustsec.org/advisories/RUSTSEC-2026-0008.html"],"sourceUrl":"https://github.com/advisories/GHSA-j39j-6gw9-jw6h","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-j39j-6gw9-jw6h","identifiers":["GHSA-j39j-6gw9-jw6h","RUSTSEC-2026-0008"]},"retained":false,"historicalAffected":[]}],"coverage":[]}