{"id":"RUSTSEC-2025-0140","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.\n\nThe bug can be prevented by adding `str::from_utf8` to the function `TimeBuf::write`.","aliases":["CVE-2026-0810","GHSA-6mw6-mj76-grwc"],"modified":"2026-03-04T07:42:48Z","published":"2025-12-29T12:00:00Z","database_specific":{"license":"CC0-1.0"},"references":[{"type":"PACKAGE","url":"https://crates.io/crates/gix-date"},{"type":"ADVISORY","url":"https://rustsec.org/advisories/RUSTSEC-2025-0140.html"},{"type":"REPORT","url":"https://github.com/GitoxideLabs/gitoxide/issues/2305"}],"affected":[{"package":{"name":"gix-date","ecosystem":"crates.io","purl":"pkg:cargo/gix-date"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"0.12.0"}]}],"ecosystem_specific":{"affects":{"arch":[],"os":[],"functions":["gix_date::parse::TimeBuf::as_str"]},"affected_functions":null},"database_specific":{"categories":["memory-corruption"],"informational":null,"cvss":null,"source":"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2025-0140.json"}}],"schema_version":"1.7.3"}