{"id":"RUSTSEC-2025-0140","revision":"b6c5ac6885a74c5e8891e38f9c5b57bc","records":[{"revision":"b6c5ac6885a74c5e8891e38f9c5b57bc","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"RUSTSEC-2025-0140","aliases":["CVE-2026-0810","GHSA-6mw6-mj76-grwc"],"title":"Non-utf8 String can be created with `TimeBuf::as_str`","description":"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`.","state":0,"publishedAt":"2025-12-29T12:00:00+00:00","modifiedAt":"2026-03-04T07:42:48+00:00","affected":[{"ecosystem":"crates.io","name":"gix-date","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.0.0-0"},{"kind":"fixed","version":"0.12.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://crates.io/crates/gix-date","https://rustsec.org/advisories/RUSTSEC-2025-0140.html","https://github.com/GitoxideLabs/gitoxide/issues/2305"],"sourceUrl":"https://osv.dev/vulnerability/RUSTSEC-2025-0140","license":"OSV · upstream source license applies","key":"osv:RUSTSEC-2025-0140","identifiers":["RUSTSEC-2025-0140","CVE-2026-0810","GHSA-6mw6-mj76-grwc"]},"retained":false,"historicalAffected":[]}],"coverage":[]}