CVE-2021-30454 Uninitialized memory access in outer_cgi
The outer_cgi Rust library allows attackers to trigger memory corruption via uninitialized buffers, potentially leading to code execution or crashes.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-30454?
CVE-2021-30454 is a critical memory corruption vulnerability in n/a, published on 7 Apr 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
An issue was discovered in the outer_cgi crate before 0.2.1 for Rust. A user-provided Read instance receives an uninitialized memory buffer from KeyValueReader.
Weakness: CWE-119
Which versions are affected by CVE-2021-30454?
3 open source packages ship an affected version, including outer_cgi. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
outer_cgi crates.io | All versions | 0.2.1 |
outer_cgi crates.io | All versions | 0.2.1 |
outer_cgi crates.io | From 0.0.0-0 | 0.2.1 |
Products include Outer Cgi Project Outer Cgi.
How do I fix CVE-2021-30454?
Upgrade outer_cgi to 0.2.1 or later.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2021-30454 being exploited?
There is no known exploitation of CVE-2021-30454 in the wild and no public exploit code.
Sources
Also known as GHSA-6vmq-jh76-hq43, RUSTSEC-2021-0051.