{"id":"CVE-2017-18589","aliases":["EUVD-2021-1897","GHSA-vjrq-cg9x-rfjp","RUSTSEC-2017-0005"],"status":"published","title":"Improper Input Validation in cookie","description":"An issue was discovered in the cookie crate before 0.7.6 for Rust. Large integers in the Max-Age of a cookie cause a panic.","severity":{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.01514,"percentile":0.74668,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-20"],"published":"2017-05-06T12:00:00Z","modified":"2026-06-17T01:13:09Z","fixes":[{"ecosystem":"crates.io","package":"cookie","fixed_in":["0.7.6","0.6.2"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"crates.io","package":"cookie","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.7.6"}]}]},{"source":"osv","ecosystem":"crates.io","package":"cookie","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.7.6"}]}]},{"source":"osv","ecosystem":"crates.io","package":"cookie","ranges":[{"type":"SEMVER","events":[{"introduced":"0.6.0"},{"fixed":"0.6.2"},{"introduced":"0.7.0-0"},{"fixed":"0.7.6"}]}]}],"products":[{"vendor":"cookie_project","product":"cookie"}],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2017-0005.html","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","web","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2017-18589","tags":["advisory"]},{"url":"https://github.com/SergioBenitez/cookie-rs/pull/86","tags":["web"]},{"url":"https://github.com/SergioBenitez/cookie-rs/commit/ee18b79fbf0903b73da525d302b09448009e0050","tags":["web"]},{"url":"https://github.com/advisories/GHSA-vjrq-cg9x-rfjp"},{"url":"https://github.com/alexcrichton/cookie-rs","tags":["package"]},{"url":"https://crates.io/crates/cookie","tags":["package"]},{"url":"https://github.com/alexcrichton/cookie-rs/pull/86","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2017-18589","description":"An issue was discovered in the cookie crate before 0.7.6 for Rust. Large integers in the Max-Age of a cookie cause a panic.","status":"published","published":"2019-08-26T17:14:55Z","modified":"2024-08-05T21:28:55.594Z","updated_at":"2026-11-02T14:33:22.064284Z"}],"euvd":[{"id":"EUVD-2021-1897","description":"An issue was discovered in the cookie crate before 0.7.6 for Rust. Large integers in the Max-Age of a cookie cause a panic.","status":"published","published":"2019-08-26T17:14:55Z","modified":"2024-08-05T21:28:55Z","updated_at":"2026-11-03T02:23:05.586343Z"}],"ghsa":[{"id":"GHSA-vjrq-cg9x-rfjp","title":"Improper Input Validation in cookie","description":"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.\n\nThis flaw was corrected by explicitly checking for the Max-Age being in this integer range and clamping the value to the maximum duration value.","status":"published","published":"2021-08-25T20:43:02Z","modified":"2023-06-13T17:03:44Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-20"],"updated_at":"2026-11-02T14:36:53.103029Z"}],"nvd":[{"id":"CVE-2017-18589","description":"An issue was discovered in the cookie crate before 0.7.6 for Rust. Large integers in the Max-Age of a cookie cause a panic.","status":"published","published":"2019-08-26T18:15:11.267Z","modified":"2026-06-17T01:13:09.17Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-20"],"updated_at":"2026-11-02T14:04:20.074898Z"}],"osv":[{"id":"GHSA-vjrq-cg9x-rfjp","title":"Improper Input Validation in cookie","description":"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.\n\nThis flaw was corrected by explicitly checking for the Max-Age being in this integer range and clamping the value to the maximum duration value.","status":"published","published":"2021-08-25T20:43:02Z","modified":"2023-11-08T03:59:16.406669Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-20"],"updated_at":"2026-11-02T15:46:57.348035Z"},{"id":"RUSTSEC-2017-0005","title":"Large cookie Max-Age values can cause a denial of service","description":"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.","status":"published","published":"2017-05-06T12:00:00Z","modified":"2023-11-08T03:59:16.406669Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:53:39.492624Z"}]}}
