CVE-2026-25727: Time Denial of Service Vulnerability

MODERATE
Advisory Identifier: GHSA-r6v5-fh4h-64xc
CWE-121
Published
Advisory Summary

CVE-2026-25727 is a MODERATE denial of service vulnerability (CWE-121: Stack-based Buffer Overflow) affecting Time libraries in the crates.io ecosystem. The issue involves time vulnerable to stack exhaustion denial of service attack. Remediation is available by upgrading affected packages to version 0.3.47.

CVE-2026-25727 at a Glance

CVE Identifier CVE-2026-25727
GHSA Identifier GHSA-r6v5-fh4h-64xc
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-121: Stack-based Buffer Overflow
Affected Product Time
Package Ecosystem crates.io
Published Date
Last Updated

How to Fix CVE-2026-25727

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

time fixed: 0.3.47
Upgrade time to 0.3.47
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 time

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-25727, inspect your project dependencies for Time:

inspect dependencies for time

Analyze the terminal output to locate any version of Time in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.3.47), 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-121: Stack-based Buffer Overflow, where a stack-based buffer overflow condition is a condition where the buffer being overwritten is allocated on the stack (i.e., is a local variable or, rarely, a parameter to a function). In Time, 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

### Impact When user-provided input is provided to any type that parses with the RFC 2822 format, a denial of service attack via stack exhaustion is possible. The attack relies on formally deprecated and rarely-used features that are part of the RFC 2822 format used in a malicious manner. Ordinary, non-malicious input will never encounter this scenario. ### Patches A limit to the depth of recursion was added in v0.3.47. From this version, an error will be returned rather than exhausting the stack. ### Workarounds Limiting the length of user input is the simplest way to avoid stack exhaustion, as the amount of the stack consumed would be at most a factor of the length of the input. Alternatively, avoiding the format altogether would also ensure that the vulnerability is not encountered. To do this, add ```toml disallowed-types = ["time::format_description::well_known::Rfc2822"] ``` to your `clippy.toml` file. This will trigger the `clippy::disallowed_types` lint, which is warn-by-default and can be explicitly denied.

CVE-2026-25727 Affected Time Versions

1 component(s)
Fixed Versions:
0.3.47
Product / Package Ecosystem Affected Versions Fixed Version
time
crates.io
≥ 0.3.6
< 0.3.47
0.3.47

References

Frequently Asked Questions

What is CVE-2026-25727?
CVE-2026-25727 is a security vulnerability in Time involving time vulnerable to stack exhaustion Denial of Service attack under CWE-121: Stack-based Buffer Overflow.
Which Time versions are affected?
Affected versions include releases prior to 0.3.47 across affected packages: time.
What version fixes CVE-2026-25727?
Upgrading to 0.3.47 (or the latest patched release for your respective branch) resolves the vulnerability.
Is time affected?
Yes, time is affected in releases prior to 0.3.47. Upgrade your dependency to 0.3.47 or later.
What CWE is associated with CVE-2026-25727?
CVE-2026-25727 is classified under CWE-121: Stack-based Buffer Overflow (A stack-based buffer overflow condition is a condition where the buffer being overwritten is allocated on the stack (i.e., is a local variable or, rarely, a parameter to a function).).
How can I check crates.io dependencies for CVE-2026-25727?
Run the dependency tree command: 'inspect dependencies for time'. 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-r6v5-fh4h-64xc",
  "modified" : "2026-02-23T22:34:23Z",
  "published" : "2026-02-05T17:57:55Z",
  "aliases" : [ "CVE-2026-25727" ],
  "summary" : "time vulnerable to stack exhaustion Denial of Service attack",
  "details" : "### Impact\n\nWhen user-provided input is provided to any type that parses with the RFC 2822 format, a denial of service attack via stack exhaustion is possible. The attack relies on formally deprecated and rarely-used features that are part of the RFC 2822 format used in a malicious manner. Ordinary, non-malicious input will never encounter this scenario.\n\n### Patches\n\nA limit to the depth of recursion was added in v0.3.47. From this version, an error will be returned rather than exhausting the stack.\n\n### Workarounds\n\nLimiting the length of user input is the simplest way to avoid stack exhaustion, as the amount of the stack consumed would be at most a factor of the length of the input.\n\nAlternatively, avoiding the format altogether would also ensure that the vulnerability is not encountered. To do this, add\n\n```toml\ndisallowed-types = [\"time::format_description::well_known::Rfc2822\"]\n```\n\nto your `clippy.toml` file. This will trigger the `clippy::disallowed_types` lint, which is warn-by-default and can be explicitly denied.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "time"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.3.6"
      }, {
        "fixed" : "0.3.47"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/time-rs/time/security/advisories/GHSA-r6v5-fh4h-64xc"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-25727"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/time-rs/time/commit/1c63dc7985b8fa26bd8c689423cc56b7a03841ee"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/time-rs/time"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/time-rs/time/blob/main/CHANGELOG.md#0347-2026-02-05"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/time-rs/time/releases/tag/v0.3.47"
  }, {
    "type" : "WEB",
    "url" : "https://rustsec.org/advisories/RUSTSEC-2026-0009.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-121" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-02-05T17:57:55Z",
    "nvd_published_at" : "2026-02-06T20:16:11Z"
  }
}