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

Not scored Published

A null pointer dereference in a Rust Git library can cause a crash when processing blame hunks from buffers.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Not stated
Victim action needed
Not needed
Fix
Available

What is RUSTSEC-2026-0184?

RUSTSEC-2026-0184 is a vulnerability in git2, published on 13 May 2026.

Official 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 Signatures based on null pointers; attempting to access the data of the Signatures leads to dereferencing null pointers.

Which versions are affected by RUSTSEC-2026-0184?

1 open source package ship an affected version, including git2.

PackageAffectedFixed in
git2 crates.ioFrom 0.0.0-00.21.0

How do I fix RUSTSEC-2026-0184?

Upgrade git2 to 0.21.0 or later.

Is RUSTSEC-2026-0184 being exploited?

There is no known exploitation of RUSTSEC-2026-0184 in the wild and no public exploit code.

Sources

Is RUSTSEC-2026-0184 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free