CVE-2021-39575
Medium · 5.5CVSS
5.5
EPSS
0.6%
Published
Sep 20, 2021
CISA due date
—
Cloudanix analysis
A bug in an older flash-file tool lets attackers crash the program simply by making it open a specially made file.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Application
- Class
- Denial of service
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
NULL pointer dereference in dump_method() within abc.c crashes the swftools process when parsing a crafted SWF file.
Why it matters to the business
Attackers can cause application crashes that interrupt any workflows or scripts relying on swftools for SWF file handling, leading to operational downtime.
How an attack unfolds
An attacker supplies a malicious SWF file that reaches the vulnerable dump_method function during normal file processing, triggering the dereference and immediate crash.
How to fix it
No fixed versions are published; discontinue use of swftools on untrusted inputs or replace it with an unaffected alternative.
How to confirm the fix worked
Attempt to process known crashing SWF samples with the updated binary and confirm the process no longer terminates unexpectedly.
Typical attack path
- Create a specially crafted SWF file that triggers the NULL dereference
- Deliver the file to a target system via email, download, or shared storage
- Victim opens or processes the file using an affected swftools binary
- Application terminates with a segmentation fault or crash
How to detect it
Monitor process logs and crash dumps for segmentation faults or abrupt exits immediately after swftools opens an SWF file.
What your security team should do
- Block or sandbox untrusted SWF files before any swftools processing
- Replace swftools with a maintained alternative in all production pipelines
- Add crash monitoring for swftools binaries in security logging
The record
An issue was discovered in swftools through 20200710. A NULL pointer dereference exists in the function dump_method() located in abc.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