tokio-rs/prost · Security
Overflow in prost-types
- GHSA ID
- GHSA-x4qm-mcjq-v2gf
- CVE ID
- CVE-2021-38192
- Severity
- high
- Published
- Updated
- CVSS
- 7.5 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- CVSS v3
- 7.5 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
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 for SystemTime to TryFrom for SystemTime.
CWEs
- CWE-120 · Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')
- CWE-190 · Integer Overflow or Wraparound
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-38192 ↗
- https://github.com/tokio-rs/prost/issues/438 ↗
- https://rustsec.org/advisories/RUSTSEC-2021-0073.html ↗
- https://github.com/tokio-rs/prost/pull/439 ↗
- https://github.com/tokio-rs/prost/commit/59f2a7311dd6540696bfd0145f5281ce495f4385 ↗
- https://github.com/advisories/GHSA-x4qm-mcjq-v2gf ↗