CVE-2021-21772 Use after free in 3MF
A use-after-free in lib3mf allows attackers to execute arbitrary code via a specially crafted 3MF file.
- 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-21772?
CVE-2021-21772 is a high-severity use after free vulnerability in Debian Debian Linux, published on 10 Mar 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
A use-after-free vulnerability exists in the NMR::COpcPackageReader::releaseZIP() functionality of 3MF Consortium lib3mf 2.0.0. A specially crafted 3MF file can lead to code execution. An attacker can provide a malicious file to trigger this vulnerability.
Weakness: CWE-416
Which versions are affected by CVE-2021-21772?
It affects 3 products.
Products include 3mf Lib3mf, Debian Debian Linux, Fedoraproject Fedora.
How do I fix CVE-2021-21772?
Apply the vendor's patch.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2021-21772 being exploited?
There is no known exploitation of CVE-2021-21772 in the wild and no public exploit code.
Public exploit code: 1 proofs of concept on GitHub.
Sources
Also known as DEBIAN-CVE-2021-21772, DSA-4887-1, GHSA-6f4r-f2fv-g8f4, MGASA-2021-0368, UBUNTU-CVE-2021-21772, USN-6216-1.