CVE-2021-42202
Medium · 5.5CVSS
5.5
EPSS
0.7%
Published
Jun 2, 2022
CISA due date
—
Cloudanix analysis
A flaw in an older Flash file handling tool can make the program crash when it tries to open certain bad files, interrupting any work that depends on that tool.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Application
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
NULL pointer dereference in swf_DeleteFilter() within swffilter.c triggers an immediate crash when processing certain malformed SWF inputs.
Why it matters to the business
Local users or automated workflows that invoke swftools on untrusted files experience abrupt process termination, leading to interrupted media processing pipelines and potential loss of productivity until the tool is avoided or replaced.
How an attack unfolds
An attacker crafts a minimal SWF file containing structures that reach swf_DeleteFilter with a NULL filter pointer. When the victim opens or converts the file with any swftools utility, the dereference occurs and the process terminates.
How to fix it
Remove or isolate swftools from environments that process untrusted files; replace with maintained alternatives. Monitor the upstream repository for any future patches addressing the swffilter.c NULL dereference.
How to confirm the fix worked
Attempt to process known crashing SWF test cases with updated builds; confirm the process no longer terminates with a segmentation fault or equivalent signal. Verify that no swftools binaries remain in default PATHs on production systems.
Typical attack path
- Attacker generates a malformed SWF file designed to hit the NULL filter path.
- Victim receives the file via email, download, or shared storage.
- Victim or an automated script invokes an swftools binary on the file.
- swf_DeleteFilter dereferences the NULL pointer and the process crashes.
- Attacker observes denial of service or uses the crash as a stepping stone for further attacks.
How to detect it
Review system and application logs for segmentation faults or abrupt terminations of swftools binaries (swfcombine, swfdump, swfrender, etc.) immediately after SWF file operations. Correlate timestamps with file access events involving .swf extensions.
- swf_DeleteFilter
- swffilter.c
- segmentation fault.*swf
- null pointer.*swftools
What your security team should do
- Inventory all systems and build pipelines that depend on swftools and mark them for decommissioning.
- Block execution of swftools binaries via application allow-listing where possible.
- Add SWF file type restrictions or sandboxing to any remaining media conversion workflows.
- Subscribe to swftools repository notifications for any future security commits.
The record
An issue was discovered in swftools through 20201222. A NULL pointer dereference exists in the function swf_DeleteFilter() located in swffilter.c. It allows an attacker to cause Denial of Service.
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