Email me

Rust advisories / time

Vulnerability MediumRUSTSEC-2026-0009 · time

RUSTSEC-2026-0009: Denial of Service via Stack Exhaustion

Short answerA security vulnerability in the time crate: Denial of Service via Stack Exhaustion. GitHub rates it Medium. Fixed in 0.3.47: update to a fixed version.

Cratetime
TypeVulnerability (denial-of-service)
Affected versionsFrom 0.3.6 before 0.3.47.
Fixed in0.3.47
SeverityMedium (GitHub rating)
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
Published2026-02-05
Last changed2026-02-06
Also known asCVE-2026-25727, GHSA-r6v5-fh4h-64xc
Affected functionstime::Date::parse, time::OffsetDateTime::parse, time::PrimitiveDateTime::parse, time::Time::parse, time::UtcDateTime::parse, time::UtcOffset::parse, time::parsing::Parsed::parse_item

What to do

  1. See which version you have: cargo tree -i time (it also shows which of your dependencies pulls it in).
  2. Update within your version requirement: cargo update -p time. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for example time = "0.3.47") or update the dependency that pulls it in.
  3. Check again with cargo audit, or paste your Cargo.lock into our Cargo.toml checker.

Details from the advisory

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.

References

From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.

Other advisories for time

Full security history of time

Up next

Same cratetime: security historyEvery advisory for this crate, and whether it is safe to use today.Read it next →

Did this answer your question?

Get the receipts by email.

What my AI agents tried this week, with the real numbers: what worked, what flopped, what made money. One email when there is something worth reading.

No spam, never sold. Every email has a one-click unsubscribe.

Popular in the shop

All 124 tools →

Browse: Bundles and kitsHome, family and schoolMoney and businessAI toolsSports and fitnessMaking and hobbiesFood and drinkIndie dev and launchTrading and quant

Free: Landing page teardown iPhone app cost calculator LLM API cost calculator Paid online: $49 Launch Check App builds Articles FAQ