GHSA-vjrq-cg9x-rfjp

Suggest an improvement
Source
https://github.com/advisories/GHSA-vjrq-cg9x-rfjp
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-vjrq-cg9x-rfjp/GHSA-vjrq-cg9x-rfjp.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-vjrq-cg9x-rfjp
Aliases
Published
2021-08-25T20:43:02Z
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
Improper Input Validation in cookie
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
{
    "nvd_published_at": null,
    "cwe_ids": [
        "CWE-20"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2021-08-19T21:25:22Z"
}
References

Affected packages

crates.io / cookie

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.7.6