{"id":"RUSTSEC-2017-0005","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\n`Duration::seconds` to parse the `Max-Age` duration cookie setting. This method\nwill panic if the value is greater than 2^64/1000 and less than or equal to\n2^64, which can result in denial of service for a client or server.\n\nThis flaw was corrected by explicitly checking for the `Max-Age` being in this\ninteger range and clamping the value to the maximum duration value.","aliases":["CVE-2017-18589","GHSA-vjrq-cg9x-rfjp"],"modified":"2023-11-08T03:59:16.406669Z","published":"2017-05-06T12:00:00Z","database_specific":{"license":"CC0-1.0"},"references":[{"type":"PACKAGE","url":"https://crates.io/crates/cookie"},{"type":"ADVISORY","url":"https://rustsec.org/advisories/RUSTSEC-2017-0005.html"},{"type":"WEB","url":"https://github.com/alexcrichton/cookie-rs/pull/86"}],"affected":[{"package":{"name":"cookie","ecosystem":"crates.io","purl":"pkg:cargo/cookie"},"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":{"functions":[],"os":[],"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,"source":"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2017-0005.json","categories":[]}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}