Vulnerability CriticalRUSTSEC-2020-0002 · prost
RUSTSEC-2020-0002: Parsing a specially crafted message can result in a stack overflow
Short answerA security vulnerability in the prost crate: Parsing a specially crafted message can result in a stack overflow. Critical severity (CVSS 9.8). Fixed in 0.6.1: update to a fixed version.
| Crate | prost |
|---|---|
| Type | Vulnerability (denial-of-service, memory-corruption) |
| Affected versions | Before 0.6.1. |
| Fixed in | 0.6.1 |
| Severity | Critical, CVSS 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Published | 2020-01-16 |
| Last changed | 2026-07-17 |
| Also known as | CVE-2020-35858, GHSA-gv73-9mwv-fwgq |
What to do
- See which version you have:
cargo tree -i prost(it also shows which of your dependencies pulls it in). - Update within your version requirement:
cargo update -p prost. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for exampleprost = "0.6.1") or update the dependency that pulls it in. - Check again with
cargo audit, or paste your Cargo.lock into our Cargo.toml checker.
Details from the advisory
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.
References
- Package: crates.io/crates/prost
- Advisory: rustsec.org/advisories/RUSTSEC-2020-0002.html
- Report: github.com/danburkert/prost/issues/267
From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.
Up next
Same crateprost: security historyEvery advisory for this crate, and whether it is safe to use today.Read it next →Did this answer your question?