Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. prost-types
  4. ›
  5. CVE-2021-38192

CVE-2021-38192: Overflow in prost-types

August 25, 2021 (updated June 13, 2023)

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.

References

  • github.com/advisories/GHSA-x4qm-mcjq-v2gf
  • github.com/tokio-rs/prost/commit/59f2a7311dd6540696bfd0145f5281ce495f4385
  • github.com/tokio-rs/prost/issues/438
  • github.com/tokio-rs/prost/pull/439
  • github.com/tokio-rs/prost/tree/master/prost-types
  • nvd.nist.gov/vuln/detail/CVE-2021-38192
  • rustsec.org/advisories/RUSTSEC-2021-0073.html

Code Behaviors & Features

Detect and mitigate CVE-2021-38192 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.8.0

Fixed versions

  • 0.8.0

Solution

Upgrade to version 0.8.0 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')
  • CWE-190: Integer Overflow or Wraparound

Source file

cargo/prost-types/CVE-2021-38192.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:11 +0000.