RUSTSEC-2026-0009

Source
https://rustsec.org/advisories/RUSTSEC-2026-0009
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0009.json
JSON Data
https://api.test.osv.dev/v1/vulns/RUSTSEC-2026-0009
Aliases
Published
2026-02-05T12:00:00Z
Modified
2026-02-06T11:58:32.469198Z
Severity
  • 6.8 (Medium) CVSS_V4 - 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 CVSS Calculator
Summary
Denial of Service via Stack Exhaustion
Details

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.

Database specific
{
    "license": "CC0-1.0"
}
References

Affected packages

crates.io / time

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.3.6
Fixed
0.3.47

Ecosystem specific

{
    "affects": {
        "arch": [],
        "os": [],
        "functions": [
            "time::Date::parse",
            "time::OffsetDateTime::parse",
            "time::PrimitiveDateTime::parse",
            "time::Time::parse",
            "time::UtcDateTime::parse",
            "time::UtcOffset::parse",
            "time::parsing::Parsed::parse_item"
        ]
    },
    "affected_functions": null
}

Database specific

informational
null
categories
[
    "denial-of-service"
]
cvss
"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"
source
"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0009.json"