CVE-2026-25727

CVE-2026-25727 is a medium-severity security vulnerability in time (rust), affecting versions >= 0.3.6, < 0.3.47. It is fixed in 0.3.47.

Does this CVE actually affect you?

Kodem shows which CVEs are reachable and running in your applications, so you fix what's exploitable, not just what's listed.

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

Runtime intelligence, not another scanner.

Summary

time vulnerable to stack exhaustion Denial of Service attack

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

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.

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.

Affected versions

time (>= 0.3.6, < 0.3.47)

Security releases

time → 0.3.47 (rust)

Kodem intelligence

Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.

Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter. Kodem's runtime-powered SCA identifies whether this CVE is reachable in your applications.

Already deployed Kodem?

See it in your environmentNew to Kodem? Get a demo →

Remediation advice

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.

Frequently Asked Questions

  1. What is CVE-2026-25727? CVE-2026-25727 is a medium-severity security vulnerability in time (rust), affecting versions >= 0.3.6, < 0.3.47. It is fixed in 0.3.47.
  2. Which versions of time are affected by CVE-2026-25727? time (rust) versions >= 0.3.6, < 0.3.47 is affected.
  3. Is there a fix for CVE-2026-25727? Yes. CVE-2026-25727 is fixed in 0.3.47. Upgrade to this version or later.
  4. Is CVE-2026-25727 exploitable, and should I be worried? Whether CVE-2026-25727 is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo
  5. What actually determines whether CVE-2026-25727 is exploitable, and how bad it is? Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.
  6. How do I fix CVE-2026-25727? Upgrade time to 0.3.47 or later.

Other vulnerabilities in time

Stop the waste.
Protect your environment with Kodem.