# RUSTSEC-2026-0184: Potential undefined behavior with Signature from a buffer-created BlameHunk

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-05-13T12:00:00.000Z
- Modified: 2026-06-17T14:00:05.672Z

## 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.

(As written by RustSec Advisory Database.)

## Affected

- git2 (crates.io): from 0.0.0-0 before 0.21.0

## References

- <https://crates.io/crates/git2> (package)
- <https://rustsec.org/advisories/RUSTSEC-2026-0184.html> (advisory)
- <https://github.com/rust-lang/git2-rs/pull/1254> (web)

## Sources

- RustSec Advisory Database: [RUSTSEC-2026-0184](https://rustsec.org/advisories/RUSTSEC-2026-0184.html), CC0-1.0, modified 2026-06-17

---

Page: https://cve.day/RUSTSEC-2026-0184 · Whole record: https://cve.day/RUSTSEC-2026-0184.json · Rebuilt by cve.day 2026-11-25T22:56:43.372Z
