git2
Affected
- introduced
0.0.0-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: GHSA-j39j-6gw9-jw6h
Potential undefined behavior when dereferencing Buf struct
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,
data must be non-null and aligned even for zero-length slices or slices of ZSTs. Thus, passing Null Pointer will lead to undefined behavior.
Not rated by the source.
0.0.0-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: RustSec Advisory Database · CC0-1.0