CVE-2022-35097
Medium · 5.5CVSS
5.5
EPSS
0.4%
Published
Sep 23, 2022
CISA due date
—
Cloudanix analysis
A tool used to work with older Flash files can suddenly crash when it tries to read certain bad files, interrupting any tasks that depend on it.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
A segmentation violation occurs in FoFiTrueType::writeTTF during processing of malformed TrueType font data embedded in SWF files, resulting in memory corruption that crashes the application.
Why it matters to the business
Workloads that convert, inspect, or manipulate SWF files can be disrupted by crashes when encountering malicious or malformed input, affecting legacy media pipelines with no available patches.
How an attack unfolds
An attacker creates an SWF file containing a malformed TrueType font table and supplies it to a target system running the vulnerable SWFTools binary; when the tool invokes FoFiTrueType::writeTTF the malformed data triggers a segmentation fault, and public exploits for this crash are available.
How to fix it
Upgrade SWFTools to a release that resolves the writeTTF memory corruption; where no fixed version exists, isolate or sandbox all file-processing workflows and avoid handling untrusted SWF input.
How to confirm the fix worked
Test the affected swftools binaries against known crashing samples and confirm absence of segmentation faults; monitor upstream commits for patches addressing FoFiTrueType.cc.
Typical attack path
- Craft SWF containing malformed TrueType font tables
- Deliver the file to a system using SWFTools
- Invoke swftools utilities on the malicious file
- Trigger segmentation violation and application crash
How to detect it
Search process and system logs for segmentation faults originating from swftools binaries during font or SWF handling; correlate with file-access events involving untrusted SWF or TTF content.
What your security team should do
- Treat untrusted SWF processing as high-risk until a patch is released
- Implement sandboxing or input filtering for all swftools invocations
- Review and restrict legacy media-conversion jobs that rely on this library
The record
SWFTools commit 772e55a2 was discovered to contain a segmentation violation via FoFiTrueType::writeTTF at /xpdf/FoFiTrueType.cc.
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