{"id":"RUSTSEC-2026-0184","aliases":["RUSTSEC-2026-0184"],"related":[],"kind":"vulnerability","state":"published","title":"Potential undefined behavior with Signature from a buffer-created BlameHunk","summary":"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.","summaryFormat":"markdown","summarySource":"rustsec","descriptions":[{"lang":"en","text":"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.","format":"markdown","source":"rustsec"}],"published":"2026-05-13T12:00:00.000Z","modified":"2026-06-17T14:00:05.672Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"0.21.0"}],"ecosystem":"crates.io","package":"git2","purl":"pkg:cargo/git2","source":"rustsec"}],"references":[{"url":"https://crates.io/crates/git2","tags":["package"],"sources":["rustsec"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0184.html","tags":["advisory"],"sources":["rustsec"]},{"url":"https://github.com/rust-lang/git2-rs/pull/1254","tags":["web"],"sources":["rustsec"]}],"credits":[],"sources":[{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2026-0184","url":"https://rustsec.org/advisories/RUSTSEC-2026-0184.html","licence":"CC0-1.0","modified":"2026-06-17T14:00:05.672Z"}],"updatedAt":"2026-11-25T22:56:43.372Z"}