RUSTSEC-2025-0140

Source
https://rustsec.org/advisories/RUSTSEC-2025-0140
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2025-0140.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2025-0140
Aliases
Published
2025-12-29T12:00:00Z
Modified
2026-03-04T07:42:48Z
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.

Database specific
{
    "license": "CC0-1.0"
}
References

Affected packages

crates.io / gix-date

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.0.0-0
Fixed
0.12.0

Ecosystem specific

{
    "affects": {
        "functions": [
            "gix_date::parse::TimeBuf::as_str"
        ],
        "arch": [],
        "os": []
    },
    "affected_functions": null
}

Database specific

informational
null
categories
[
    "memory-corruption"
]
cvss
null
source
"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2025-0140.json"