git2
Affected
- introduced
0, fixed0.20.4(semver)
Fixed versions
0.20.4
Fix
- Fixed version
0.20.4cargo update -p git2 --precise 0.20.4
Advisory
Also known as: RUSTSEC-2026-0008
git2 has potential undefined behavior when dereferencing Buf struct
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.
Low Basis: The source's own band: LOW
0, fixed 0.20.4 (semver)0.20.4
0.20.4cargo update -p git2 --precise 0.20.4Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0