CVE-2026-0810: Gix date :as_str` Vulnerability

MODERATE
Advisory Identifier: GHSA-6mw6-mj76-grwc
CWE-787
Published
Advisory Summary

CVE-2026-0810 is a MODERATE :as_str` vulnerability (CWE-787: Out-of-bounds Write) affecting Gix date libraries in the crates.io ecosystem. The issue involves :as_str`. Remediation is available by upgrading affected packages to version 0.12.0.

CVE-2026-0810 at a Glance

CVE Identifier CVE-2026-0810
GHSA Identifier GHSA-6mw6-mj76-grwc
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-787: Out-of-bounds Write
Affected Product Gix date
Package Ecosystem crates.io
Published Date
Last Updated

How to Fix CVE-2026-0810

To remediate this vulnerability, upgrade all affected Gix date dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

gix-date fixed: 0.12.0
Upgrade gix-date to 0.12.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for gix-date

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-0810, inspect your project dependencies for Gix date:

inspect dependencies for gix-date

Analyze the terminal output to locate any version of Gix date in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.12.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-787: Out-of-bounds Write, where the product writes data past the end, or before the beginning, of the intended buffer. In Gix date, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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`.

CVE-2026-0810 Affected Gix date Versions

1 component(s)
Fixed Versions:
0.12.0
Product / Package Ecosystem Affected Versions Fixed Version
gix-date
crates.io
< 0.12.0
0.12.0

References

Frequently Asked Questions

What is CVE-2026-0810?
CVE-2026-0810 is a security vulnerability in Gix date involving :as_str` under CWE-787: Out-of-bounds Write.
Which Gix date versions are affected?
Affected versions include releases prior to 0.12.0 across affected packages: gix-date.
What version fixes CVE-2026-0810?
Upgrading to 0.12.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is gix-date affected?
Yes, gix-date is affected in releases prior to 0.12.0. Upgrade your dependency to 0.12.0 or later.
What CWE is associated with CVE-2026-0810?
CVE-2026-0810 is classified under CWE-787: Out-of-bounds Write (The product writes data past the end, or before the beginning, of the intended buffer.).
How can I check crates.io dependencies for CVE-2026-0810?
Run the dependency tree command: 'inspect dependencies for gix-date'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-6mw6-mj76-grwc",
  "modified" : "2026-01-27T22:23:11Z",
  "published" : "2026-01-05T19:43:29Z",
  "aliases" : [ "CVE-2026-0810" ],
  "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.\n\nThe bug can be prevented by adding `str::from_utf8` to the function `TimeBuf::write`.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "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"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "gix-date"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.12.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-0810"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/GitoxideLabs/gitoxide/issues/2305"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/GitoxideLabs/gitoxide/pull/2306"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/GitoxideLabs/gitoxide/commit/76376ef5e97c63e108db0c9fe2eb096f4bfe70f7"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/security/cve/CVE-2026-0810"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2427057"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/GitoxideLabs/gitoxide"
  }, {
    "type" : "WEB",
    "url" : "https://rustsec.org/advisories/RUSTSEC-2025-0140.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-787" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-01-05T19:43:29Z",
    "nvd_published_at" : null
  }
}