CVE-2022-35096
Medium · 5.5CVSS
5.5
EPSS
0.4%
Published
Sep 23, 2022
CISA due date
—
Cloudanix analysis
A bug in a tool that handles flash files can make the program crash when someone opens a specially made file.
- 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 allows out-of-bounds memory writes when processing malformed SWF input, resulting in memory corruption.
Why it matters to the business
Processing untrusted SWF files on affected systems can cause application crashes and denial of service; low exploitability and lack of known campaigns limit widespread operational disruption.
How an attack unfolds
An attacker creates a specially crafted SWF file that triggers the overflow condition inside draw_stroke when the file is opened or converted by SWFTools; the malformed stroke data causes the heap write during rendering.
How to fix it
Upgrade SWFTools beyond commit 772e55a2 to a version containing the fix for the heap buffer overflow in stroke.c; until a release is available, avoid processing untrusted SWF files.
How to confirm the fix worked
Confirm installed SWFTools binary or source is newer than commit 772e55a2; test with known malformed SWF samples that previously triggered the overflow and verify absence of crashes or memory errors.
Typical attack path
- Craft SWF file containing malformed stroke data to trigger draw_stroke overflow
- Deliver file to target via email, web, or shared storage
- Victim or automated process opens or converts the file with vulnerable SWFTools
- Heap corruption occurs, typically resulting in crash
How to detect it
Review application and system logs for SWFTools crashes or segmentation faults during SWF processing; look for repeated failures on specific files in file-processing workflows.
What your security team should do
- Restrict SWFTools usage to trusted files only until patched
- Monitor upstream repository for a release addressing the stroke.c issue
- Sandbox or isolate SWFTools processes that handle external files
- Replace SWFTools with alternative tools where feasible for SWF processing
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