Advisory

RUSTSEC-2026-0184

Also known as: None

Summary

Potential undefined behavior with Signature from a buffer-created BlameHunk

Details

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.

Severity

Not rated by the source.

Dates

Published
2026-05-13 12:00 UTC
Modified
2026-06-17 14:00 UTC

Affected packages and fixes

git2

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.21.0 (semver)

Fixed versions

0.21.0

Fix

  • Fixed version 0.21.0
    cargo update -p git2 --precise 0.21.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences