GHSA-6mw6-mj76-grwc

Suggest an improvement
Source
https://github.com/advisories/GHSA-6mw6-mj76-grwc
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/01/GHSA-6mw6-mj76-grwc/GHSA-6mw6-mj76-grwc.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-6mw6-mj76-grwc
Aliases
Downstream
Related
Published
2026-01-05T19:43:29Z
Modified
2026-02-05T13:43:53.101972Z
Severity
  • 5.5 (Medium) CVSS_V4 - CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N/E:P CVSS Calculator
Summary
gix-date can create non-utf8 string 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
{
    "cwe_ids": [
        "CWE-787"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "nvd_published_at": null,
    "github_reviewed_at": "2026-01-05T19:43:29Z"
}
References

Affected packages

crates.io / gix-date

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.12.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/01/GHSA-6mw6-mj76-grwc/GHSA-6mw6-mj76-grwc.json"