PT-2026-50497 · Crates.Io · Git2

Published

2026-05-12

·

Updated

2026-05-12

None

No severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.
When calling Remote::list() for a remote of a git repository, when that remote does not advertise any references, git2 passes a null pointer to the unsafe function slice::from raw parts(). Based on the safety section documentation of function, data must be non-null even for slices of length zero. Thus, the use of a null pointer leads to undefined behavior.
Found an issue in the description? Have something to add? Feel free to write us 👾

Related Identifiers

RUSTSEC-2026-0183

Affected Products

Git2