CVE-2022-35105
Medium · 5.5CVSS
5.5
EPSS
0.3%
Published
Aug 16, 2022
CISA due date
—
Cloudanix analysis
A flaw in an older image conversion tool can make it crash or behave unexpectedly when someone tries to turn a specially made picture file into another format.
- 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 the png2swf binary when processing a crafted PNG file, resulting in memory corruption that can lead to application crash or potential arbitrary code execution.
Why it matters to the business
Processing untrusted image files with the affected tool can cause service disruption or system compromise in environments relying on SWFTools for SWF generation workflows.
How an attack unfolds
An attacker crafts a malicious PNG file designed to trigger the heap overflow during conversion; the victim runs png2swf on the file locally, causing the overflow condition to manifest.
How to fix it
Upgrade to a patched version of SWFTools once available or replace the tool with a maintained alternative; avoid processing untrusted PNG files with png2swf until fixed.
How to confirm the fix worked
Test png2swf against known-good and known-bad PNG samples in a controlled environment; monitor for segmentation faults or abnormal memory usage during conversion; verify binary hash against upstream releases.
Typical attack path
- Craft malicious PNG payload targeting the vulnerable png2swf code path
- Deliver the file to the target environment via email, download, or shared storage
- Victim executes png2swf against the file
- Heap overflow occurs, potentially leading to crash or code execution
How to detect it
Review process execution logs and command-line history for png2swf invocations; inspect system logs for segmentation faults or heap-related errors around the time of image processing jobs.
- png2swf
- segmentation fault.*png2swf
- /bin/png2swf
What your security team should do
- Inventory all systems using SWFTools and restrict png2swf execution to trusted inputs only
- Implement file-type sandboxing or conversion in isolated containers
- Monitor for future upstream fixes and apply promptly given public exploit availability
The record
SWFTools commit 772e55a2 was discovered to contain a heap-buffer overflow via /bin/png2swf+0x552cea.
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