{"id":"CVE-2021-38192","aliases":["EUVD-2021-1927","GHSA-x4qm-mcjq-v2gf","RUSTSEC-2021-0073"],"status":"published","title":"Overflow in prost-types","description":"An issue was discovered in the prost-types crate before 0.8.0 for Rust. An overflow can occur during conversion from Timestamp to SystemTime.","severity":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/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-12","score":0.01103,"percentile":0.66192,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-120","CWE-190"],"published":"2021-07-08T12:00:00Z","modified":"2026-06-17T04:01:43Z","fixes":[{"ecosystem":"crates.io","package":"prost-types","fixed_in":["0.8.0"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"crates.io","package":"prost-types","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.8.0"}]}]},{"source":"osv","ecosystem":"crates.io","package":"prost-types","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.8.0"}]}]},{"source":"osv","ecosystem":"crates.io","package":"prost-types","ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"0.8.0"}]}]}],"products":[{"vendor":"prost_project","product":"prost"}],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2021-0073.html","tags":["x_refsource_MISC","x_transferred","Exploit","Issue Tracking","Patch","Third Party Advisory","web","advisory"]},{"url":"https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/prost-types/RUSTSEC-2021-0073.md","tags":["x_refsource_MISC","x_transferred","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-38192","tags":["advisory"]},{"url":"https://github.com/tokio-rs/prost/issues/438","tags":["web","report"]},{"url":"https://github.com/tokio-rs/prost/pull/439","tags":["web"]},{"url":"https://github.com/tokio-rs/prost/commit/59f2a7311dd6540696bfd0145f5281ce495f4385","tags":["web"]},{"url":"https://github.com/advisories/GHSA-x4qm-mcjq-v2gf"},{"url":"https://github.com/tokio-rs/prost/tree/master/prost-types","tags":["package"]},{"url":"https://crates.io/crates/prost-types","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2021-38192","description":"An issue was discovered in the prost-types crate before 0.8.0 for Rust. An overflow can occur during conversion from Timestamp to SystemTime.","status":"published","published":"2021-08-08T05:09:14Z","modified":"2024-08-04T01:37:16.331Z","updated_at":"2026-11-02T14:33:07.349244Z"}],"euvd":[{"id":"EUVD-2021-1927","description":"An issue was discovered in the prost-types crate before 0.8.0 for Rust. An overflow can occur during conversion from Timestamp to SystemTime.","status":"published","published":"2021-08-08T05:09:14Z","modified":"2024-08-04T01:37:16Z","updated_at":"2026-11-03T03:24:25.244479Z"}],"ghsa":[{"id":"GHSA-x4qm-mcjq-v2gf","title":"Overflow in prost-types","description":"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\u003cTimestamp\u003e for SystemTime to TryFrom\u003cTimestamp\u003e for SystemTime.","status":"published","published":"2021-08-25T20:55:53Z","modified":"2023-06-22T05:03:17Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-120","CWE-190"],"updated_at":"2026-11-02T14:36:55.184601Z"}],"nvd":[{"id":"CVE-2021-38192","description":"An issue was discovered in the prost-types crate before 0.8.0 for Rust. An overflow can occur during conversion from Timestamp to SystemTime.","status":"published","published":"2021-08-08T06:15:09.007Z","modified":"2026-06-17T04:01:43.877Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/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-120"],"updated_at":"2026-11-02T14:06:56.562207Z"}],"osv":[{"id":"GHSA-x4qm-mcjq-v2gf","title":"Overflow in prost-types","description":"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\u003cTimestamp\u003e for SystemTime to TryFrom\u003cTimestamp\u003e for SystemTime.","status":"published","published":"2021-08-25T20:55:53Z","modified":"2023-11-08T04:06:26.043741Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-120","CWE-190"],"updated_at":"2026-11-02T15:46:59.484835Z"},{"id":"RUSTSEC-2021-0073","title":"Conversion from `prost_types::Timestamp` to `SystemTime` can cause an overflow and panic","description":"Affected versions of this crate contained a bug in which untrusted input could cause an overflow and panic when converting a `Timestamp` to `SystemTime`.\n\nIt is recommended to upgrade to `prost-types` v0.8 and switch the usage of `From\u003cTimestamp\u003e for SystemTime` to `TryFrom\u003cTimestamp\u003e for SystemTime`.\n\nSee [#438] for more information.\n\n[#438]: https://github.com/tokio-rs/prost/issues/438","status":"published","published":"2021-07-08T12:00:00Z","modified":"2023-11-08T04:06:26.043741Z","updated_at":"2026-11-02T15:53:39.492624Z"}]}}
