Medium, CVSS 5.5crates.ioPublished
gix-date can create non-utf8 string with TimeBuf::as_str
CVE-2026-0810 · GHSA-6mw6-mj76-grwc
- Affected
- crates.io gix-date < 0.12.0
- Fixed in
- 0.12.0· Vendor fix available
- Issue
- The function gixdate::parse::TimeBuf::asstr 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::fromutf8 to the function TimeBuf::write.
Recommended action: Upgrade to 0.12.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.