CVE-2024-25165
NoneCVSS
—
EPSS
0.5%
Published
Feb 14, 2024
CISA due date
—
Cloudanix analysis
A bug in an older Flash-file processing tool can let attackers crash it or run malicious code simply by supplying a specially crafted file.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Moderate
- Impact
- Full Compromise
- Component
- Library
- Class
- Buffer Overflow
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Global buffer overflow in the LineText function at lib/swf5compiler.flex in SWFTools 0.9.2, enabling out-of-bounds memory writes during SWF5 compilation.
Why it matters to the business
Crashes or potential code execution when processing untrusted Flash files, interrupting build pipelines, content conversion, and legacy media workflows that depend on this utility.
How an attack unfolds
An attacker supplies a crafted SWF or source file that reaches the vulnerable LineText routine with excessive data, overflowing the global buffer and potentially hijacking control flow.
How to fix it
Upgrade SWFTools to a version containing a fix for the buffer overflow in lib/swf5compiler.flex; until then, avoid processing untrusted inputs and consider sandboxing or alternative tools.
How to confirm the fix worked
Rebuild with address sanitizers, run regression tests against known overflow-triggering inputs, and verify the LineText function no longer permits out-of-bounds access.
Typical attack path
- Locate systems or CI jobs invoking SWFTools on external input
- Prepare malicious SWF5 source triggering oversized LineText content
- Trigger compilation via the vulnerable binary
- Leverage overflow for crash or arbitrary code execution
How to detect it
Search process logs and crash dumps for segmentation faults or buffer-overrun signals originating from swf5compiler or LineText during SWF handling.
What your security team should do
- Block or sandbox SWFTools usage on untrusted files until patched
- Track upstream commits addressing the swf5compiler.flex overflow
- Scan build systems for the vulnerable 0.9.2 binary
- Replace SWFTools with maintained alternatives where possible
The record
A global-buffer-overflow vulnerability was found in SWFTools v0.9.2, in the function LineText at lib/swf5compiler.flex.
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-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