Advisory

RUSTSEC-2025-0140

Also known as: CVE-2026-0810, GHSA-6mw6-mj76-grwc

Summary

Non-utf8 String can be created 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

Not rated by the source.

Dates

Published
2025-12-29 12:00 UTC
Modified
2026-03-04 07:42 UTC

Affected packages and fixes

gix-date

crates.io · All systems

Affected

  • introduced 0.0.0-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: RustSec Advisory Database · CC0-1.0

Sources & licences