CVE-2022-35098
Medium · 5.5CVSS
5.5
EPSS
0.4%
Published
Sep 23, 2022
CISA due date
—
Cloudanix analysis
A long-known flaw in an older file-processing tool can make the program crash when it tries to read certain bad files, and attackers already have working examples to trigger it.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Patch
- Effort
- Medium
- Patch risk
- Low
What it actually does
Heap-buffer overflow in GfxICCBasedColorSpace::getDefaultColor at xpdf/GfxState.cc allows out-of-bounds memory writes when processing malformed color space data in SWF files.
Why it matters to the business
Processing untrusted SWF files can cause application crashes and denial of service; the vulnerability has been public for over four years with public exploits available, increasing risk for any remaining deployments.
How an attack unfolds
An attacker crafts a malicious SWF file containing malformed ICC-based color space data. When a user or automated process opens the file with an affected SWFTools binary, the overflow is triggered during color space handling, leading to memory corruption and potential crash.
How to fix it
No fixed versions are published; discontinue use of SWFTools on untrusted input or rebuild from a post-772e55a2 codebase after applying upstream memory-safety fixes to the xpdf-derived color space handling.
How to confirm the fix worked
Confirm exposure by inspecting the binary for the vulnerable GfxICCBasedColorSpace::getDefaultColor symbol and testing with known crashing SWF samples; verify remediation by confirming absence of the overflow path in rebuilt binaries.
Typical attack path
- Craft malicious SWF embedding malformed GfxICCBasedColorSpace data
- Deliver the file via email, web download, or shared storage
- Victim opens the file using an affected swftools utility
- GfxState.cc triggers heap overflow during getDefaultColor processing
- Resulting memory corruption causes denial of service
How to detect it
Review process execution logs and file-access telemetry for swftools binaries opening SWF files from untrusted sources; look for repeated crashes or segmentation faults correlated with SWF processing in system logs.
What your security team should do
- Immediately restrict SWFTools execution to trusted files only
- Replace SWFTools workflows with maintained alternatives that handle SWF content safely
- Monitor EPSS and exploit repositories for any increase in weaponization given the four-year public exposure
The record
SWFTools commit 772e55a2 was discovered to contain a heap-buffer overflow via GfxICCBasedColorSpace::getDefaultColor(GfxColor*) at /xpdf/GfxState.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