CVE-2021-39563
Medium · 5.5CVSS
5.5
EPSS
0.6%
Published
Sep 20, 2021
CISA due date
—
Cloudanix analysis
A bug in older swftools software can make the program crash when it tries to read certain bad Flash files, interrupting any work that depends on those tools.
- Exploitation
- Requires User Interaction
- Attacker needs
- Local User
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Application
- Class
- Memory Corruption
- Remediation
- No Fix Yet
- Effort
- Other
- Patch risk
- Other
What it actually does
NULL pointer dereference in swf_DumpActions within swfaction.c triggers an application crash when processing a specially crafted SWF file.
Why it matters to the business
Processing untrusted SWF files with the affected tools can cause unexpected crashes and service interruptions for any workflow that relies on swftools.
How an attack unfolds
An attacker crafts a malformed SWF file that reaches the vulnerable swf_DumpActions function, causing the tool to dereference a NULL pointer and terminate when the file is opened or dumped.
How to fix it
Upgrade to a patched release of swftools if one becomes available; otherwise replace swftools usage with maintained alternatives and avoid processing untrusted SWF files with the vulnerable binaries.
How to confirm the fix worked
Test that the updated or replacement tools no longer crash on the same malformed SWF samples used for validation; scan source builds for the presence of the vulnerable swf_DumpActions implementation.
Typical attack path
- Create or obtain a malformed SWF file engineered to trigger the NULL dereference
- Deliver the file to a target system running swftools
- Invoke a swftools utility (such as swfdump) on the malicious file
- Observe application crash and denial of service
How to detect it
Review process crash logs and core dumps from swftools binaries; correlate unexpected terminations of swfdump or similar utilities with recent receipt of SWF files.
What your security team should do
- Remove or isolate swftools from any automated or user-facing pipelines that handle external files
- Monitor for new upstream releases or community patches addressing the NULL dereference
- Implement file-type sandboxing or conversion steps before any remaining swftools invocations
The record
An issue was discovered in swftools through 20200710. A NULL pointer dereference exists in the function swf_DumpActions() located in swfaction.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