CVE-2022-35109
Medium · 5.5CVSS
5.5
EPSS
0.3%
Published
Aug 16, 2022
CISA due date
—
Cloudanix analysis
A bug in a Flash-file handling tool can make it crash when someone opens certain bad files, potentially stopping any work that depends on converting or viewing those files.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Application
- Class
- Memory Corruption
- Remediation
- Patch
- Effort
- Medium
- Patch risk
- Low
What it actually does
Heap buffer overflow in draw_stroke at gfxpoly/stroke.c when processing malformed SWF input, resulting in memory corruption with high availability impact.
Why it matters to the business
Processing untrusted files can crash the application and interrupt workflows that rely on SWF conversion or rendering, with public exploits available and no patches released after more than four years.
How an attack unfolds
An attacker crafts a malicious SWF file that triggers the overflow during stroke drawing. When the victim processes the file locally with SWFTools, the heap corruption occurs; public exploit code exists but requires user interaction and has not been observed in ransomware or named APT campaigns.
How to fix it
No fixed versions are available; replace or isolate SWFTools usage, sandbox all file processing, and avoid handling untrusted SWF input until a community patch is published.
How to confirm the fix worked
Test SWFTools against known-good and malformed SWF samples in an isolated environment; monitor upstream commit history for any fix to gfxpoly/stroke.c and re-verify crash behavior after updates.
Typical attack path
- Craft malicious SWF file to trigger overflow in stroke.c
- Deliver file to target user or system
- Victim opens or processes the file with affected SWFTools utilities
- Heap overflow executes leading to crash or potential code execution
How to detect it
Review application and system logs for segmentation faults or abnormal exits in SWFTools processes during SWF handling; correlate with file-processing timestamps to identify suspicious inputs.
What your security team should do
- Immediately restrict or disable SWFTools on untrusted inputs
- Implement application sandboxing or file-type gateways for any remaining usage
- Track community forks or patches and plan migration to maintained alternatives
The record
SWFTools commit 772e55a2 was discovered to contain a heap-buffer overflow via draw_stroke at /gfxpoly/stroke.c.
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