{"id":"CVE-2026-25727","aliases":["CVE-2026-25727","GHSA-r6v5-fh4h-64xc","RUSTSEC-2026-0009"],"related":[],"kind":"vulnerability","state":"published","title":"time affected by a stack exhaustion denial of service attack","summary":"time provides date and time handling in Rust. From 0.3.6 to before 0.3.47, 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. 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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"time provides date and time handling in Rust. From 0.3.6 to before 0.3.47, 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. 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.","source":"cvelist"},{"lang":"en","text":"### 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.","format":"markdown","source":"ghsa"},{"lang":"en","text":"## Impact\n\nWhen user-provided input is provided to any type that parses with the RFC 2822 format, a denial of\nservice attack via stack exhaustion is possible. The attack relies on formally deprecated and\nrarely-used features that are part of the RFC 2822 format used in a malicious manner. Ordinary,\nnon-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\nrather 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\nthe stack consumed would be at most a factor of the length of the input.","format":"markdown","source":"rustsec"},{"lang":"es","text":"time proporciona manejo de fechas y horas en Rust. Desde la versión 0.3.6 hasta antes de la 0.3.47, cuando se proporciona una entrada del usuario a cualquier tipo que analiza el formato RFC 2822, es posible un ataque de denegación de servicio por agotamiento de la pila. El ataque se basa en características formalmente deprecadas y rara vez utilizadas que forman parte del formato RFC 2822, empleadas de manera maliciosa. Una entrada ordinaria y no maliciosa nunca encontrará este escenario. Se añadió un límite a la profundidad de recursión en la versión 0.3.47. A partir de esta versión, se devolverá un error en lugar de agotar la pila.","source":"nvd"}],"published":"2026-02-05T12:00:00.000Z","modified":"2026-09-10T03:50:35.583Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":6.8,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":6.8,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"},{"scorer":"RustSec Advisory Database","scheme":"CVSS:4.0","vector":"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"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-121"],"affected":[{"ranges":[{"version":">= 0.3.6, < 0.3.47","status":"affected"}],"vendor":"time-rs","product":"time","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.3.6","status":"affected","fixed":"0.3.47"}],"ecosystem":"crates.io","package":"time","purl":"pkg:cargo/time","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.3.6","status":"affected","fixed":"0.3.47"}],"ecosystem":"crates.io","package":"time","purl":"pkg:cargo/time","source":"rustsec"},{"ranges":[{"status":"affected","introduced":"0.3.6","fixed":"0.3.47"}],"vendor":"time_project","product":"time","cpe":"cpe:2.3:a:time_project:time:*:*:*:*:*:rust:*:*","source":"nvd"}],"references":[{"url":"https://github.com/time-rs/time/security/advisories/GHSA-r6v5-fh4h-64xc","tags":["vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/time-rs/time/commit/1c63dc7985b8fa26bd8c689423cc56b7a03841ee","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/time-rs/time/blob/main/CHANGELOG.md#0347-2026-02-05","tags":["release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","rustsec","nvd"]},{"url":"https://github.com/time-rs/time/releases/tag/v0.3.47","tags":["product","release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-25727","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/time-rs/time","tags":["package"],"sources":["ghsa"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0009.html","tags":["advisory","web"],"sources":["ghsa","rustsec"]},{"url":"https://crates.io/crates/time","tags":["package"],"sources":["rustsec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-02-06T20:22:34.026Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-25727","url":"https://www.cve.org/CVERecord?id=CVE-2026-25727","licence":"CVE Terms of Use","modified":"2026-02-06T20:22:58.488Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-r6v5-fh4h-64xc","url":"https://github.com/advisories/GHSA-r6v5-fh4h-64xc","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:35.583Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2026-0009","url":"https://rustsec.org/advisories/RUSTSEC-2026-0009.html","licence":"CC0-1.0","modified":"2026-02-06T09:17:04.230Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-25727","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-25727","licence":"Public domain","modified":"2026-06-17T10:25:07.083Z"}],"updatedAt":"2026-11-25T22:59:13.574Z","epss":{"score":0.00334,"percentile":0.28723,"date":"2026-12-01T12:00:22.000Z"}}