CVE-2022-35113
Medium · 5.5CVSS
5.5
EPSS
0.3%
Published
Aug 16, 2022
CISA due date
—
Cloudanix analysis
A flaw in a popular tool for handling Flash files can make the program crash when it tries to read a specially crafted file, potentially interrupting work that depends on that tool.
- 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 swf_DefineLosslessBitsTagToImage within swfbits.c allows out-of-bounds memory writes when processing malformed lossless bitmap tags in SWF files.
Why it matters to the business
Processing untrusted SWF content can crash the application or corrupt memory, disrupting workflows that rely on SWFTools for file conversion or rendering and increasing operational downtime.
How an attack unfolds
An attacker crafts a malicious SWF file containing an oversized or malformed DefineLosslessBits tag, then convinces a victim to open it with a vulnerable SWFTools binary; the overflow occurs during tag parsing and can be leveraged for denial of service or further memory corruption.
How to fix it
Update to a build that contains the corrected swfbits.c implementation; if no official release is available, compile from a post-772e55a2 commit or apply equivalent bounds checks before processing untrusted SWF files.
How to confirm the fix worked
Rebuild SWFTools from source after applying the fix, then replay a corpus of known-triggering SWF samples and confirm absence of crashes or sanitizer violations under AddressSanitizer.
Typical attack path
- Craft SWF file with malicious DefineLosslessBits tag
- Deliver file via email, web download, or shared storage
- Victim opens file using affected swftools utilities
- swf_DefineLosslessBitsTagToImage performs out-of-bounds write
- Application crashes or attacker gains memory corruption primitive
How to detect it
Review application crash logs and core dumps for references to swfbits.c or swf_DefineLosslessBitsTagToImage; correlate with file-access events involving SWF files of anomalous size or structure.
What your security team should do
- Block or sandbox SWFTools execution on untrusted SWF inputs until patched
- Scan build pipelines and developer workstations for the vulnerable commit
- Add SWF file-type restrictions in content-processing workflows
- Monitor for new upstream releases and schedule upgrade within 30 days
The record
SWFTools commit 772e55a2 was discovered to contain a heap-buffer overflow via swf_DefineLosslessBitsTagToImage at /modules/swfbits.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