RUSTSEC-2026-0183
Potential undefined behavior when calling Remote::list()
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.
What each source reports
OSV No score
Potential undefined behavior when calling Remote::list()
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.
- Record
RUSTSEC-2026-0183- Updated
- 2026-11-02
Affected packages
| Package | Affected | Fixed |
|---|---|---|
git2crates.io |
0.0.0-0 up to 0.21.0 | 0.21.0 |
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
RUSTSEC-2026-0183 is a vulnerability with no CVSS score yet in git2, published May 12, 2026. No source lists public exploit code. Fixed in git2 0.21.0.