Advisory

GHSA-6mw6-mj76-grwc

Also known as: CVE-2026-0810, RUSTSEC-2025-0140

Summary

gix-date can create non-utf8 string with TimeBuf::as_str

Details

The function gix_date::parse::TimeBuf::as_str can create an illegal string containing non-utf8 characters. This violates the safety invariant of TimeBuf and can lead to undefined behavior when consuming the string.

The bug can be prevented by adding str::from_utf8 to the function TimeBuf::write.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-01-05 19:43 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

gix-date

crates.io · All systems

Affected

  • introduced 0, fixed 0.12.0 (semver)

Fixed versions

0.12.0

Fix

  • Fixed version 0.12.0
    cargo update -p gix-date --precise 0.12.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: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences