CVE-2022-35094
Medium · 5.5CVSS
5.5
EPSS
0.4%
Published
Sep 23, 2022
CISA due date
—
Cloudanix analysis
A flaw in an older tool used to handle Flash files can make the program crash or behave unexpectedly when it opens a specially made file, potentially disrupting work that depends on that tool.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Moderate
- Impact
- Denial Of Service
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Patch
- Effort
- Medium
- Patch risk
- Low
What it actually does
Heap buffer overflow in DCTStream::readHuffSym when parsing malformed DCT Huffman tables inside SWF files, leading to out-of-bounds memory access and potential process crash or memory corruption.
Why it matters to the business
Processing untrusted SWF files with the affected tool can cause denial of service and may enable local code execution on developer or analyst workstations; the issue remains unpatched in public releases and affects any workflow that still relies on the legacy binary.
How an attack unfolds
An attacker supplies a specially crafted SWF containing a malicious DCT stream; when the victim opens the file with any SWFTools utility that invokes the xpdf-derived DCT decoder, the overflow is triggered during Huffman symbol decoding.
How to fix it
Replace SWFTools with a maintained alternative or compile from a post-772e55a2 tree that removes the vulnerable DCT path; sandbox or disable the tool for untrusted input; monitor upstream for any eventual security release.
How to confirm the fix worked
Confirm the binary still contains the exact DCTStream::readHuffSym symbol at the reported offset; test with known trigger files and verify absence of crash after replacement or removal.
Typical attack path
- Craft SWF containing oversized or malformed DCT Huffman table
- Deliver file via email, web download, or shared storage
- Victim opens file with swftools utilities (swfextract, swfrender, etc.)
- DCTStream::readHuffSym performs out-of-bounds write/read
- Process crashes or attacker-controlled memory state is reached
How to detect it
Look in process execution logs, crash reports, and file-access telemetry for invocations of swftools utilities against externally sourced SWF files; correlate with heap-related crashes in the xpdf/Stream.cc code path.
What your security team should do
- Inventory all systems and CI pipelines that invoke swftools binaries
- Block or quarantine untrusted SWF files from reaching those hosts
- Remove or replace the package; do not rely on the unpatched commit
- Add SWF file-type restrictions in mail gateways and file scanners
The record
SWFTools commit 772e55a2 was discovered to contain a heap-buffer overflow via DCTStream::readHuffSym(DCTHuffTable*) at /xpdf/Stream.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