CVE-2022-35106
Medium · 5.5CVSS
5.5
EPSS
0.3%
Published
Aug 16, 2022
CISA due date
—
Cloudanix analysis
A bug in a file-handling program can make the program crash when it tries to open certain damaged files, which may interrupt any work that depends on that program.
- 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
The vulnerability triggers a segmentation violation (crash) inside FoFiTrueType::computeTableChecksum when malformed input is supplied to the checksum routine.
Why it matters to the business
Untrusted SWF or PDF-derived files can cause the processing application to terminate unexpectedly, interrupting automated conversion, rendering, or analysis pipelines.
How an attack unfolds
An attacker creates a malformed file that reaches the checksum function with invalid data; when the victim opens or converts the file, the resulting memory access violation forces the process to exit.
How to fix it
No official fixed versions are published; replace or sandbox the affected binary, restrict it to trusted input only, or migrate to an alternative tool that does not use the vulnerable xpdf-derived code.
How to confirm the fix worked
Reproduce the crash with the originally reported malformed input both before and after any mitigation to confirm the fault is no longer reachable.
Typical attack path
- Craft a file containing data that triggers the faulty checksum path
- Deliver the file via email, download, or shared storage
- Victim invokes an affected SWFTools utility on the file
- Application crashes with a segmentation fault
How to detect it
Search process and system logs for segmentation faults or abrupt terminations of swftools binaries when handling user-supplied files.
What your security team should do
- Block or sandbox execution of swftools on untrusted files
- Add crash-monitoring alerts for swftools processes
- Inventory all systems that invoke swftools and prioritize removal or replacement
The record
SWFTools commit 772e55a2 was discovered to contain a segmentation violation via FoFiTrueType::computeTableChecksum(unsigned char*, int) 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