CVE-2022-35095
Medium · 5.5CVSS
5.5
EPSS
0.4%
Published
Sep 23, 2022
CISA due date
—
Cloudanix analysis
A bug in a document-processing tool can make it crash when someone opens a specially made file, potentially stopping work that depends on that tool.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Moderate
- Impact
- Denial Of Service
- Component
- Application
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Local memory corruption causing a segmentation violation (crash) inside InfoOutputDev::type3D1 while parsing malformed PDF content.
Why it matters to the business
Processing of untrusted PDF or SWF files with the affected tools can crash the application, interrupting automated workflows that rely on swftools for document conversion or inspection.
How an attack unfolds
An attacker supplies a specially crafted PDF file containing malformed Type 3 font data; when swftools parses the file, the type3D1 routine dereferences invalid memory and terminates the process.
How to fix it
Upgrade to a patched build of swftools that corrects the type3D1 handling; if no official release exists, apply the upstream commit that resolves the out-of-bounds access or replace swftools with an alternative tool.
How to confirm the fix worked
Confirm the installed swftools binary is newer than commit 772e55a2, then re-run parsing against known trigger files to verify absence of the crash.
Typical attack path
- Craft a PDF containing invalid Type 3 font structures that reach InfoOutputDev::type3D1
- Deliver the file to a target system or service that invokes swftools binaries
- Trigger parsing of the file, causing an immediate segmentation fault and denial of service
How to detect it
Inspect system and application logs for segmentation fault entries or core dumps generated by swftools binaries during PDF processing; correlate with file access timestamps of suspicious PDF inputs.
- InfoOutputDev::type3D1
- segmentation violation
- pdf/InfoOutputDev.cc
What your security team should do
- Remove or sandbox swftools from any automated pipelines that accept untrusted documents
- Monitor for updates or community patches addressing this crash
- Replace swftools usage with maintained alternatives where possible
The record
SWFTools commit 772e55a2 was discovered to contain a segmentation violation via InfoOutputDev::type3D1 at /pdf/InfoOutputDev.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