CVE-2024-26335
NoneCVSS
—
EPSS
0.4%
Published
Mar 5, 2024
CISA due date
—
Cloudanix analysis
A flaw in an older version of a tool that handles Flash files can make the program crash when it tries to read certain bad files, potentially stopping any automated work that depends on it.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Application
- Class
- Memory Corruption
- Remediation
- No Fix Yet
- Effort
- Other
- Patch risk
- Other
What it actually does
The vulnerability triggers a segmentation violation (crash) inside the state_free function when processing certain SWF input, indicating memory corruption such as use-after-free, double-free, or invalid pointer dereference.
Why it matters to the business
Processing untrusted SWF files with the affected tool can cause the application to crash, interrupting automated conversion or analysis workflows and requiring manual restarts or fallback processing.
How an attack unfolds
An attacker crafts a malicious SWF file that reaches the state_free function with corrupted internal state; when the tool opens or converts the file, the invalid memory access occurs and the process terminates.
How to fix it
Upgrade swftools to the latest available version that resolves the memory issue in swfc-history.c; if no patched release exists, replace the tool with an alternative SWF processor or sandbox its execution.
How to confirm the fix worked
Test the updated binary against a corpus of known-good and previously crashing SWF samples; confirm absence of crashes under the same inputs and review source history for the state_free fix.
Typical attack path
- Attacker prepares a specially malformed SWF file designed to corrupt history state.
- Victim or automated system invokes swftools on the supplied file.
- state_free is called with an invalid pointer or already-freed structure.
- Segmentation violation occurs, terminating the process.
How to detect it
Review application or system logs for segmentation faults or abrupt termination while processing SWF files; correlate with file names or hashes that were recently introduced into processing queues.
What your security team should do
- Remove or isolate swftools from any pipeline that accepts untrusted SWF input.
- Monitor vendor or community repositories for a patched release and apply it immediately upon availability.
- Add runtime sandboxing or resource limits around the tool to contain crashes.
The record
swftools v0.9.2 was discovered to contain a segmentation violation via the function state_free at swftools/src/swfc-history.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-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
- CVE-2024-22955 swftools 0.9.2 was discovered to contain a stack-buffer-underflow vulnerability via the… Also affects swftools