Use-after-free in lib3mf - CVE-2021-21772

 

Use-after-free in lib3mf - CVE-2021-21772

Published: March 11, 2021 / Updated: October 10, 2022


Vulnerability identifier: #VU51410
CSH Severity: High
CVSS v4: 9.2 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2021-21772
CWE-ID: CWE-416
Exploitation vector: Remote access
Exploit availability: No public exploit available

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

lib3mf
Gentoo Linux
Fedora
Ubuntu
lib3mf (Debian package)
lib3mf1 (Ubuntu package)
lib3mf-dev (Ubuntu package)
lib3mf

How to mitigate CVE-2021-21772

Install updates from vendor's website.

lib3mf - update to 2.0.1
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

External References

Related Security Bulletins