---
id: CVE-2020-35858
aliases:
  - RUSTSEC-2020-0002
  - GHSA-gv73-9mwv-fwgq
title: Parsing a specially crafted message can result in a stack overflow
summary: Parsing a specially crafted message can result in a stack overflow
severity: critical
cvss: 9.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'
vendor: prost
product: prost
ecosystem: rust
affected:
  - 'prost >= 0.0.0-0, < 0.6.1'
patched:
  - prost 0.6.1
published: '2020-01-16'
updated: '2026-07-17'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/RUSTSEC-2020-0002'
references:
  - url: 'https://crates.io/crates/prost'
  - url: 'https://rustsec.org/advisories/RUSTSEC-2020-0002.html'
  - url: 'https://github.com/danburkert/prost/issues/267'
tags:
  - osv
  - rust
epss: 0.0326
epssPercentile: 0.87873
ingestedAt: '2026-07-17T19:00:51.738Z'
---

## Overview

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](https://github.com/danburkert) and released in
version 0.6.1.

## Affected packages

- `prost >= 0.0.0-0, < 0.6.1`

## Remediation

Upgrade to a patched release:

- `prost 0.6.1`
