Advisory

RUSTSEC-2020-0002

Also known as: CVE-2020-35858, GHSA-gv73-9mwv-fwgq

Summary

Parsing a specially crafted message can result in a stack overflow

Details

Affected versions of this crate contained a bug in which decoding untrusted
input could overflow the stack.

On architectures with stack probes (like x86), this can be used for denial of
service attacks, while on architectures without stack probes (like ARM)
overflowing the stack is unsound and can result in potential memory corruption
(or even RCE).

The flaw was quickly corrected by @danburkert and released in
version 0.6.1.

Severity

Critical Basis: CVSS v3 score 9.8, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Dates

Published
2020-01-16 12:00 UTC
Modified
2026-07-17 16:00 UTC

Affected packages and fixes

prost

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.6.1 (semver)

Fixed versions

0.6.1

Fix

  • Fixed version 0.6.1
    cargo update -p prost --precise 0.6.1

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