{"id":"CVE-2021-38192","aliases":["CVE-2021-38192","GHSA-x4qm-mcjq-v2gf","RUSTSEC-2021-0073"],"related":[],"kind":"vulnerability","state":"published","title":"Overflow in prost-types","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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.","format":"markdown","source":"ghsa"},{"lang":"en","text":"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<Timestamp> for SystemTime` to `TryFrom<Timestamp> for SystemTime`.\n\nSee [#438] for more information.\n\n[#438]: https://github.com/tokio-rs/prost/issues/438","format":"markdown","source":"rustsec"},{"lang":"es","text":"Se ha detectado un problema en la crate prost-types versiones anteriores a 0.8.0 para Rust. Puede ocurrir un desbordamiento durante la conversión de Timestamp a SystemTime","source":"nvd"}],"published":"2021-07-08T12:00:00.000Z","modified":"2026-06-17T04:01:43.877Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","score":5,"rating":"MEDIUM"}],"cwes":["CWE-120","CWE-190"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.8.0"}],"ecosystem":"crates.io","package":"prost-types","purl":"pkg:cargo/prost-types","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"0.8.0"}],"ecosystem":"crates.io","package":"prost-types","purl":"pkg:cargo/prost-types","source":"rustsec"},{"ranges":[{"status":"affected","fixed":"0.8.0"}],"vendor":"prost_project","product":"prost","cpe":"cpe:2.3:a:prost_project:prost:*:*:*:*:*:rust:*:*","source":"nvd"}],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2021-0073.html","tags":["advisory","exploit","issue-tracking","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","rustsec","nvd"]},{"url":"https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/prost-types/RUSTSEC-2021-0073.md","tags":["third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-38192","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/tokio-rs/prost/issues/438","tags":["report","web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/tokio-rs/prost/pull/439","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/tokio-rs/prost/commit/59f2a7311dd6540696bfd0145f5281ce495f4385","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/tokio-rs/prost/tree/master/prost-types","tags":["package"],"sources":["ghsa"]},{"url":"https://crates.io/crates/prost-types","tags":["package"],"sources":["rustsec"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-38192","url":"https://www.cve.org/CVERecord?id=CVE-2021-38192","licence":"CVE Terms of Use","modified":"2024-08-04T01:37:16.331Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-x4qm-mcjq-v2gf","url":"https://github.com/advisories/GHSA-x4qm-mcjq-v2gf","licence":"CC-BY-4.0","modified":"2023-11-08T04:06:26.043Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2021-0073","url":"https://rustsec.org/advisories/RUSTSEC-2021-0073.html","licence":"CC0-1.0","modified":"2023-11-08T04:06:26.043Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-38192","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-38192","licence":"Public domain","modified":"2026-06-17T04:01:43.877Z"}],"updatedAt":"2026-11-25T22:58:03.055Z","epss":{"score":0.01103,"percentile":0.66653,"date":"2026-12-01T12:00:22.000Z"}}