CVE-2024-22912
High · 7.8CVSS
7.8
EPSS
0.4%
Published
Jan 19, 2024
CISA due date
—
Cloudanix analysis
A flaw in an older version of a tool that works with Flash files can let attackers take over a computer when someone opens a specially made file.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Full Compromise
- Component
- Application
- Class
- Buffer Overflow
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Global buffer overflow in the countline function at swf5compiler.flex:327 allows an attacker to overwrite adjacent memory and achieve arbitrary code execution when processing a specially crafted SWF file.
Why it matters to the business
Successful exploitation can lead to full compromise of workstations or servers that process untrusted SWF content, resulting in data theft, ransomware deployment, or persistence by attackers.
How an attack unfolds
An attacker crafts a malicious SWF file that triggers the buffer overflow in countline during compilation or parsing; when a victim opens the file with an affected SWFTools binary, the overflow is triggered and attacker-controlled code executes with the privileges of the running process.
How to fix it
Upgrade to a patched version of SWFTools once available; until then, avoid processing untrusted SWF files with the affected tools and consider replacing SWFTools with maintained alternatives that support modern SWF parsing.
How to confirm the fix worked
Confirm SWFTools version is newer than 0.9.2 or apply the upstream fix for countline in swf5compiler.flex; test by attempting to compile a known-triggering SWF sample and verify the process does not crash or execute unexpected code.
Typical attack path
- Craft malicious SWF file that overflows the global buffer in countline
- Deliver the file via email, web download, or shared storage
- Victim opens the file using an affected SWFTools binary (swfc, swfextract, etc.)
- Overflow occurs during lexical analysis, corrupting memory and hijacking control flow
- Attacker payload executes, establishing foothold or executing further commands
How to detect it
Review process creation and file-access logs for invocations of SWFTools binaries on unexpected or newly received SWF files; look for segmentation faults or abnormal memory behavior in swfc or related utilities around the time of file processing.
What your security team should do
- Immediately restrict use of SWFTools on systems that handle external or untrusted files
- Scan endpoints for presence of swftools 0.9.2 binaries and replace or isolate them
- Add SWFTools execution to application allow-listing policies where feasible
- Monitor for new upstream releases and apply fixes as soon as they are published
The record
A global-buffer-overflow was found in SWFTools v0.9.2, in the function countline at swf5compiler.flex:327. It allows an attacker to cause code execution.
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