CVE-2022-35100
Medium · 6.5CVSS
6.5
EPSS
0.7%
Published
Aug 16, 2022
CISA due date
—
Cloudanix analysis
A bug in a common SWF processing tool can make the program crash when it tries to handle certain files, which may stop related work from finishing.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Application
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
A segmentation violation occurs in gfxline_getbbox at /lib/gfxtools.c due to invalid memory access during graphics bounding box calculations, constituting a memory corruption flaw that crashes the process.
Why it matters to the business
SWFTools utilities become unreliable when handling certain SWF content, interrupting media processing, conversion, or analysis workflows that depend on the package.
How an attack unfolds
An attacker supplies a specially crafted SWF file that reaches the vulnerable gfxline_getbbox path; the resulting memory corruption triggers an immediate segmentation fault and application crash. Public exploit code is available, though no named threat actors or ransomware campaigns have been observed.
How to fix it
Apply source-level patches that correct the invalid memory handling in gfxtools.c; rebuild SWFTools from a revision after commit 772e55a2; until a fixed release appears, restrict processing of untrusted SWF files or migrate to alternative tooling.
How to confirm the fix worked
Rebuild and test with known triggering SWF samples to confirm absence of crashes; inspect gfxtools.c for corrected bounds or null checks around gfxline_getbbox; monitor upstream commits for a resolving change.
Typical attack path
- Craft a malicious SWF file that exercises the gfxline_getbbox flaw
- Deliver the file to a target environment that invokes SWFTools
- Trigger processing of the file, inducing the segmentation violation and denial of service
How to detect it
Review system logs, core dumps, or application output for segmentation faults originating from gfxline_getbbox or gfxtools.c when SWF files are processed; correlate with process termination events on systems running SWFTools.
What your security team should do
- Treat as priority for environments that process external SWF content given public exploit availability
- Implement file-type sandboxing or input validation before invoking SWFTools
- Track upstream repository for a corrected release and update immediately upon availability
- Document compensating controls if the package cannot be replaced
The record
SWFTools commit 772e55a2 was discovered to contain a segmentation violation via gfxline_getbbox at /lib/gfxtools.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