RUSTSEC-2017-0005

Source
https://rustsec.org/advisories/RUSTSEC-2017-0005
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2017-0005.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2017-0005
Aliases
Published
2017-05-06T12:00:00Z
Modified
2023-11-08T03:59:16.406669Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
Large cookie Max-Age values can cause a denial of service
Details

Affected versions of this crate use the time crate and the method Duration::seconds to parse the Max-Age duration cookie setting. This method will panic if the value is greater than 2^64/1000 and less than or equal to 2^64, which can result in denial of service for a client or server.

This flaw was corrected by explicitly checking for the Max-Age being in this integer range and clamping the value to the maximum duration value.

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

Affected packages

crates.io / cookie

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.6.0
Fixed
0.6.2
Introduced
0.7.0-0
Fixed
0.7.6

Ecosystem specific

{
    "affected_functions": null,
    "affects": {
        "os": [],
        "functions": [],
        "arch": []
    }
}

Database specific

{
    "cvss": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
    "informational": null,
    "categories": []
}