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 package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| prost-types (crates.io) | before 0.8.0, from 0.0.0-0 before 0.8.0 | GitHub Advisory Database, RustSec Advisory Database |
| prost_project prost | before 0.8.0 | NVD |
All scores
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 5.0medium CVSS:2.0 | AV: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
| https://rustsec.org/advisories/RUSTSEC-2021-0073.html | advisory, exploit, issue-tracking, patch, third-party-advisory, web | |
| https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/prost-types/RUSTSEC-2021-0073.md | third-party-advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-38192 | advisory | |
| https://github.com/tokio-rs/prost/issues/438 | report, web | |
| https://github.com/tokio-rs/prost/pull/439 | web | |
| https://github.com/tokio-rs/prost/commit/59f2a7311dd6540696bfd0145f5281ce495f4385 | web | |
| https://github.com/tokio-rs/prost/tree/master/prost-types | package | |
| https://crates.io/crates/prost-types | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-38192 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-x4qm-mcjq-v2gf changed 2023-11-08 | CC-BY-4.0 |
| RustSec Advisory Database | RUSTSEC-2021-0073 changed 2023-11-08 | CC0-1.0 |
| NVD | CVE-2021-38192 changed 2026-06-17 | Public domain |