All reports
Medium

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

Affected versions

Version ranges need review.

Rust / Cargogix-date
Affected versions
>=0.0.0-0 <0.12.0
Fixed version
0.12.0
Rust / Cargogix-date
Affected versions
< 0.12.0
Fixed version
0.12.0
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-0810

Probability of exploitation in the next 30 days: 0.21%

FIRST EPSS · 2026-11-23

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.

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

Links