Use-after-free in lib3mf - CVE-2021-21772
Published: March 11, 2021 / Updated: October 10, 2022
Vulnerability details
The vulnerability allows a remote attacker to compromise vulnerable system.
The vulnerability exists due to a use-after-free error in the NMR::COpcPackageReader::releaseZIP() functionality. A remote attacker can use a specially crafted 3MF file and execute arbitrary code on the target system.
Successful exploitation of the vulnerability may allow an attacker to compromise vulnerable system.
Affected software
Gentoo Linux
Fedora
Ubuntu
lib3mf (Debian package)
lib3mf1 (Ubuntu package)
lib3mf-dev (Ubuntu package)
lib3mf
How to mitigate CVE-2021-21772
lib3mf (Debian package) - update to 1.8.1+ds-3+deb10u1
lib3mf1 (Ubuntu package) - update to 1.8.1+ds-3ubuntu0.2
lib3mf-dev (Ubuntu package) - update to 1.8.1+ds-3ubuntu0.2
lib3mf - addressed in versions 2.0.1-1.el7, 2.0.1-1.fc32, 2.0.1-1.fc33, 2.0.1-1.fc34