Every CVE Search/ Get API key

CVE-2021-21772

A use-after-free vulnerability exists in the NMR::COpcPackageReader::releaseZIP() functionality...

8.1 HighPublic exploitFix available

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

4.17%Up 2.0 points since Apr 14, 2021
90%50%10%1%

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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 3.0
8.1 HighCVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.0
6.8 MediumAV: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 HighCVSS: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 HighCVSS: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 HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 3.0
8.1 HighCVSS: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

Affected packages
PackageAffectedFixed
lib3mf
Debian:12
before 1.8.1+ds-4
1.8.1+ds-4
lib3mf
Debian:13
before 1.8.1+ds-4
1.8.1+ds-4
lib3mf
Debian:14
before 1.8.1+ds-4
1.8.1+ds-4
lib3mf
Debian:10
before 1.8.1+ds-3+deb10u1, plus listed versions
1.8.1+ds-3
1.8.1+ds-3+deb10u1
lib3mf
Mageia:8
before 2.1.1-1.mga8
2.1.1-1.mga8
act
Mageia:8
before 1.6.0-4.mga8
1.6.0-4.mga8
openscad
Mageia:8
before 2021.01-1.2.mga8
2021.01-1.2.mga8
lib3mf
Ubuntu: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.

Public exploits
SourceLinkDate
PoC in GitHub3dluvr/New-lib3mf.dll-for-MeshMixer2024-12-31

History

History
RecordedChangedSources
aliasesEUVD
first indexedCVE 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

Show 13 moreShow less
MoveEnter Open