Advisory

RUSTSEC-2021-0073

Also known as: CVE-2021-38192, GHSA-x4qm-mcjq-v2gf

Summary

Conversion from prost_types::Timestamp to SystemTime can cause an overflow and panic

Details

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.

[#438]: https://github.com/tokio-rs/prost/issues/438

Severity

Not rated by the source.

Dates

Published
2021-07-08 12:00 UTC
Modified
2023-11-08 04:06 UTC

Affected packages and fixes

prost-types

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.8.0 (semver)

Fixed versions

0.8.0

Fix

  • Fixed version 0.8.0
    cargo update -p prost-types --precise 0.8.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences