CVE-2021-21772
A use-after-free vulnerability exists in the NMR::COpcPackageReader::releaseZIP() functionality...
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- High
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
8.1
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.
- Record
CVE-2021-21772- CVSS 3.0
- 8.1 High
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
EUVDEUVD-2021-8944
8.1
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.
- Record
EUVD-2021-8944- CVSS 3.0
- 8.1 High
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-03
GitHub AdvisoriesGHSA-6f4r-f2fv-g8f4
8.1
A use-after-free vulnerability exists in the NMR::COpcPackageReader::releaseZIP() functionality...
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.
- Record
GHSA-6f4r-f2fv-g8f4- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-416
- Updated
- 2026-11-02
NVD
8.1
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.
- Record
CVE-2021-21772- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H - CVSS 3.0
- 8.1 High
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H - CVSS 2.0
- 6.8 Medium
AV:N/AC:M/Au:N/C:P/I:P/A:P - Weakness
- CWE-416
- Updated
- 2026-11-02
OSV
8.1
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.
- Record
CVE-2021-21772- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2021-21772
8.1
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.
- Record
DEBIAN-CVE-2021-21772- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2021-21772
8.1
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.
- Record
UBUNTU-CVE-2021-21772- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H - CVSS 3.0
- 8.1 High
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVMGASA-2021-0368 No score
Updated lib3mf packages fix security vulnerability
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 (CVE-2021-21772).
A new package 'act' is introduced to build newer version of lib3mf.
Also, openscad is rebuilt against this updated library.
- Record
MGASA-2021-0368- Updated
- 2026-11-02
OSVUSN-6216-1 No score
lib3mf vulnerability
It was discovered that lib3mf did not properly manage memory under certain circumstances. If a user were tricked into opening a specially crafted 3MF file, a local attacker could possibly use this issue to cause applications using lib3mf to crash, resulting in a denial of service, or possibly execute arbitrary code.
- Record
USN-6216-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
lib3mfDebian:12 |
before 1.8.1+ds-4 | 1.8.1+ds-4 |
lib3mfDebian:13 |
before 1.8.1+ds-4 | 1.8.1+ds-4 |
lib3mfDebian:14 |
before 1.8.1+ds-4 | 1.8.1+ds-4 |
lib3mfDebian:10 |
before 1.8.1+ds-3+deb10u1, plus listed versions 1.8.1+ds-3 |
1.8.1+ds-3+deb10u1 |
lib3mfMageia:8 |
before 2.1.1-1.mga8 | 2.1.1-1.mga8 |
actMageia:8 |
before 1.6.0-4.mga8 | 1.6.0-4.mga8 |
openscadMageia:8 |
before 2021.01-1.2.mga8 | 2021.01-1.2.mga8 |
lib3mfUbuntu:20.04:LTS |
before 1.8.1+ds-3ubuntu0.2, plus listed versions 1.8.1+ds-3 |
1.8.1+ds-3ubuntu0.2 |
Public exploits
Links only. Every CVE stores no exploit code.
| Source | Link | Date |
|---|---|---|
| PoC in GitHub | 3dluvr/New-lib3mf.dll-for-MeshMixer | 2024-12-31 |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV, PoC in GitHub |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2021-21772 is a high vulnerability (CVSS 8.1) in 3mf Lib3mf, published March 10, 2021. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 4.17%, the 90th percentile. Fixed in lib3mf 1.8.1+ds-4.
References
talosintelligence.com/vulnerability_reports/TALOS-2020-1226
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WDGGB65YBQL662M3MOBNNJJNRNURW4TG
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/IHMMHD2EOMIVJ7EKZTJJMX4C7E6ZRWDL
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NPBS642OYVA6DUKK3HZHEINVWEDZSMEU
debian.org/security/2021/dsa-4887
security.gentoo.org/glsa/202208-01
Show 13 moreShow less
talosintelligence.com/vulnerability_reports/TALOS-2021-1226
nvd.nist.gov/vuln/detail/CVE-2021-21772
lists.fedoraproject.org/archives/list/[email protected]/message/IHMMHD2EOMIVJ7EKZTJJMX4C7E6ZRWDL
lists.fedoraproject.org/archives/list/[email protected]/message/NPBS642OYVA6DUKK3HZHEINVWEDZSMEU
lists.fedoraproject.org/archives/list/[email protected]/message/WDGGB65YBQL662M3MOBNNJJNRNURW4TG
github.com/advisories/GHSA-6f4r-f2fv-g8f4
security-tracker.debian.org/tracker/CVE-2021-21772
advisories.mageia.org/MGASA-2021-0368.html
bugs.mageia.org/show_bug.cgi?id=29018
lists.fedoraproject.org/archives/list/[email protected]/thread/WDGGB65YBQL662M3MOBNNJJNRNURW4TG
ubuntu.com/security/CVE-2021-21772
ubuntu.com/security/notices/USN-6216-1
cve.org/CVERecord?id=CVE-2021-21772