GHSA-x4qm-mcjq-v2gf

Suggest an improvement
Source
https://github.com/advisories/GHSA-x4qm-mcjq-v2gf
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-x4qm-mcjq-v2gf/GHSA-x4qm-mcjq-v2gf.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-x4qm-mcjq-v2gf
Aliases
Published
2021-08-25T20:55:53Z
Modified
2023-11-08T04:06:26.043741Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
Overflow in prost-types
Details

Affected versions of this crate contained a bug in which untrusted input could cause an overflow and panic when converting a Timestamp to SystemTime. It is recommended to upgrade to prost-types v0.8 and switch the usage of From<Timestamp> for SystemTime to TryFrom<Timestamp> for SystemTime.

Database specific
{
    "nvd_published_at": "2021-08-08T06:15:00Z",
    "cwe_ids": [
        "CWE-120",
        "CWE-190"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2021-08-18T21:29:54Z"
}
References

Affected packages

crates.io / prost-types

Package

Affected ranges

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

Ecosystem specific

{
    "affected_functions": [
        "prost_types::Timestamp::Into<SystemTime>"
    ]
}