{"id":"RUSTSEC-2026-0184","aliases":[],"status":"published","title":"Potential undefined behavior with Signature from a buffer-created BlameHunk","description":"When a `Blame` is created via `Blame::blame_buffer()`, and a `BlameHunk` is retrieved, the pointers to the original author, original committer, final author, and final committer may be null if unavailable. The corresponding `BlameHunk` methods then create `Signature`s based on null pointers; attempting to access the data of the `Signature`s leads to dereferencing null pointers.","facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"published":"2026-05-13T12:00:00Z","modified":"2026-06-17T14:00:05Z","fixes":[{"ecosystem":"crates.io","package":"git2","fixed_in":["0.21.0"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"crates.io","package":"git2","ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"0.21.0"}]}]}],"references":[{"url":"https://crates.io/crates/git2","tags":["package"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0184.html","tags":["advisory"]},{"url":"https://github.com/rust-lang/git2-rs/pull/1254","tags":["web"]}],"sources":{"osv":[{"id":"RUSTSEC-2026-0184","title":"Potential undefined behavior with Signature from a buffer-created BlameHunk","description":"When a `Blame` is created via `Blame::blame_buffer()`, and a `BlameHunk` is retrieved, the pointers to the original author, original committer, final author, and final committer may be null if unavailable. The corresponding `BlameHunk` methods then create `Signature`s based on null pointers; attempting to access the data of the `Signature`s leads to dereferencing null pointers.","status":"published","published":"2026-05-13T12:00:00Z","modified":"2026-06-17T14:00:05.672935662Z","updated_at":"2026-11-02T15:53:40.430679Z"}]}}
