CVE-2021-42201
High · 7.8CVSS
7.8
EPSS
1.2%
Published
Jun 2, 2022
CISA due date
—
Cloudanix analysis
A flaw in certain file-handling software lets attackers take over a computer when someone opens a specially made file.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Full Compromise
- Component
- Application
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Heap-buffer-overflow in swf_GetD64 within rfxswf.c allows local code execution via crafted input.
Why it matters to the business
Enables full system compromise on affected hosts when users process malicious files, increasing breach and ransomware risk despite low EPSS and no KEV listing; limited downstream prevalence reduces widespread operational disruption.
How an attack unfolds
Attacker supplies a malicious input file that triggers the overflow in the vulnerable parsing function, achieving arbitrary code execution on the local system; public exploit code is available but no named threat actors are associated.
How to fix it
Upgrade libp2p/js-libp2p to commit 29c803a63e5aacda1e5b87527b15bf27b31ea5a6; rebuild and redeploy all dependent packages.
How to confirm the fix worked
Confirm the fixed commit is present in source, run regression tests against known overflow vectors, and verify no heap overflows occur with sanitizers.
Typical attack path
- Craft malicious input file exploiting the heap overflow
- Deliver file to target via email, download, or shared storage
- Victim opens or processes the file with the vulnerable library
- Overflow triggers and executes attacker-controlled code
How to detect it
Review application crash logs and memory sanitizer reports for heap overflows during SWF or related file processing; correlate with file open events in user activity logs.
What your security team should do
- Apply the listed commit upgrade across all libp2p/js-libp2p instances within 30 days
- Scan build pipelines and dependency manifests for the vulnerable version
- Monitor EPSS trend for any acceleration and prepare emergency patching if exploit usage rises
The record
An issue was discovered in swftools through 20201222. A heap-buffer-overflow exists in the function swf_GetD64() located in rfxswf.c. It allows an attacker to cause code execution.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Ubuntu:16.04:LTS | swftools | 0 | No fix |
| Ubuntu:18.04:LTS | swftools | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | swftools | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | swftools | 0 | No fix |
Related vulnerabilities
- CVE-2024-28458 Null Pointer Dereference vulnerability in swfdump in swftools 0.9.2 allows attackers to… Also affects swftools
- CVE-2024-26334 swftools v0.9.2 was discovered to contain a segmentation violation via the function… Also affects swftools
- CVE-2024-26337 swftools v0.9.2 was discovered to contain a segmentation violation via the function… Also affects swftools
- CVE-2024-26335 swftools v0.9.2 was discovered to contain a segmentation violation via the function… Also affects swftools
- CVE-2024-26339 swftools v0.9.2 was discovered to contain a strcpy parameter overlap via… Also affects swftools
- CVE-2024-26333 swftools v0.9.2 was discovered to contain a segmentation violation via the function… Also affects swftools
- CVE-2024-25165 A global-buffer-overflow vulnerability was found in SWFTools v0.9.2, in the function… Also affects swftools
- CVE-2024-22956 swftools 0.9.2 was discovered to contain a heap-use-after-free vulnerability via the… Also affects swftools