CVE-2021-39585
Medium · 5.5CVSS
5.5
EPSS
0.7%
Published
Sep 20, 2021
CISA due date
—
Cloudanix analysis
A bug in older Flash conversion software can make the program crash when it tries to read certain bad files, interrupting any work that depends on that software.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- 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 traits_dump() within abc.c causes immediate process termination when parsing malformed ABC structures in SWF files.
Why it matters to the business
Processing untrusted Flash files with the affected tools can unexpectedly crash workflows, halting automated media conversion or analysis pipelines until manual intervention.
How an attack unfolds
An attacker creates a specially crafted SWF file containing an ABC section that triggers the null dereference during traits_dump processing; the victim opens or converts the file locally with swftools, causing denial of service.
How to fix it
Upgrade swftools to the latest available build that resolves the abc.c flaw; if no update exists, replace the tool with an actively maintained alternative and restrict processing to trusted inputs only.
How to confirm the fix worked
Confirm current installed version against upstream repository; test remediation by attempting to process a known-triggering sample file and verifying the process no longer crashes.
Typical attack path
- Generate malicious SWF embedding malformed ABC traits data
- Deliver file to target environment via email, web, or shared storage
- Induce victim to invoke swftools utilities on the file
- Observe application crash and service interruption
How to detect it
Review process crash logs and core dumps for swftools binaries; correlate file access timestamps on suspicious SWF files with application failures.
What your security team should do
- Immediately restrict swftools usage to trusted files only
- Evaluate and migrate to maintained alternatives such as modern SWF parsers
- Add file-type sandboxing or containerization for any remaining legacy usage
- Monitor upstream commits for a definitive patch and schedule upgrade
The record
An issue was discovered in swftools through 20200710. A NULL pointer dereference exists in the function traits_dump() 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