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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | 3MF | 3MF Consortium lib3mf 2.0.0 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | lib3mf | 1.8.1+ds-4 | — |
| Debian 13 | lib3mf | 1.8.1+ds-4 | — |
| Debian 12 | lib3mf | 1.8.1+ds-4 | — |
| Debian 10 | lib3mf | 1.8.1+ds-3+deb10u1 | DSA-4887-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | lib3mf | 1.8.1+ds-3ubuntu0.2 | USN-6216-1 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 1 repository
-
3dluvr/New-lib3mf.dll-for-MeshMixer ★ 1 · Dec 31, 2024
Precompiled lib3mf.dll for MeshMixer which includes a backported patch for CVE-2021-21772 and zlib 1.3.1
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 2
- USN-6216-1 lib3mf vulnerability Ubuntu Security Notices (USN) · Apr 22, 2026
- DSA-4887-1 lib3mf - security update Debian Security (DSA / DLA) · Mar 9, 2026
References
- https://talosintelligence.com/vulnerability_reports/TALOS-2020-1226
- FEDORA-2021-bb1b7591c4 vendor-advisory
- FEDORA-2021-6945629745 vendor-advisory
- FEDORA-2021-b73f9c96ee vendor-advisory
- DSA-4887 vendor-advisory
- GLSA-202208-01 vendor-advisory
- https://www.talosintelligence.com/vulnerability_reports/TALOS-2021-1226