CVE-2021-38192
JSON

7.5high

Overflow in prost-types

Severity
7.5high CVSS:3.1 by NVD
Exploit likelihood
1.10% (higher than 66% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-x4qm-mcjq-v2gfRUSTSEC-2021-0073

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.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
prost-types (crates.io)before 0.8.0, from 0.0.0-0 before 0.8.0GitHub Advisory Database, RustSec Advisory Database
prost_project prostbefore 0.8.0NVD

All scores

GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD5.0medium CVSS:2.0AV:N/AC:L/Au:N/C:N/I:N/A:P

Classification

What each source says

CVE List

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.

GitHub Advisory Database

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.

RustSec Advisory Database

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.

See #438 for more information.

NVD (es)

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

References

Sources

SourceRecordLicence
CVE ListCVE-2021-38192 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-x4qm-mcjq-v2gf changed 2023-11-08CC-BY-4.0
RustSec Advisory DatabaseRUSTSEC-2021-0073 changed 2023-11-08CC0-1.0
NVDCVE-2021-38192 changed 2026-06-17Public domain