CVE-2021-28027 Loading a bgzip block can write out of bounds if size overflows.
An integer underflow in the bam crate allows out-of-bounds writes when loading bgzip blocks, 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-28027?
CVE-2021-28027 is a critical vulnerability in n/a, published on 5 Mar 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 bam crate before 0.1.3 for Rust. There is an integer underflow and out-of-bounds write during the loading of a bgzip block.
Weakness: CWE-191
Which versions are affected by CVE-2021-28027?
3 open source packages ship an affected version, including bam. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
bam crates.io | All versions | 0.1.3 |
bam crates.io | All versions | 0.1.3 |
bam crates.io | From 0.0.0-0 | 0.1.3 |
Products include Bam Project Bam.
How do I fix CVE-2021-28027?
Upgrade bam to 0.1.3 or later.
Is CVE-2021-28027 being exploited?
There is no known exploitation of CVE-2021-28027 in the wild and no public exploit code.
Sources
Also known as GHSA-cpqj-r29q-chrh, RUSTSEC-2021-0027.