CVE-2024-22956
High · 7.8CVSS
7.8
EPSS
0.4%
Published
Jan 19, 2024
CISA due date
—
Cloudanix analysis
A bug in an old Flash-file tool can let attackers take over a computer simply by getting it to open a specially made file.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Full Compromise
- Component
- Application
- Class
- Use After Free
- Remediation
- No Fix Yet
- Effort
- Other
- Patch risk
- Other
What it actually does
Heap use-after-free in the removeFromTo function allows memory corruption when processing specially crafted SWF input.
Why it matters to the business
Systems that parse untrusted SWF files with this library face elevated risk of crashes or full host compromise, with no vendor patch available after nearly three years.
How an attack unfolds
An attacker supplies a malicious SWF file that reaches the removeFromTo code path, triggering the use-after-free to corrupt heap metadata and achieve arbitrary code execution.
How to fix it
Remove or isolate swftools 0.9.2 from all build and runtime environments; replace with an alternative SWF processing library or maintain the component offline until a patched release appears.
How to confirm the fix worked
Confirm the installed swftools version is not 0.9.2, verify the swfc binary does not contain the vulnerable removeFromTo symbol at the reported offset, and test sample inputs in an isolated environment.
Typical attack path
- Craft a malicious SWF file that exercises the vulnerable code path in swfc.c
- Deliver the file to a target that invokes swftools utilities (swfc, swfcombine, etc.)
- Trigger the removeFromTo function to cause the use-after-free
- Leverage the resulting memory corruption for code execution or denial of service
How to detect it
Review process execution logs and command-line history for swfc or other swftools binaries run against external or untrusted SWF files; look for segmentation faults or heap-related crashes in those processes.
What your security team should do
- Inventory all instances of swftools and block its execution on production systems
- Add swftools to the organization's disallowed-software list
- Monitor upstream repositories for any future fixed release and reassess
- Scan historical logs for invocations of swfc or related binaries on untrusted input
The record
swftools 0.9.2 was discovered to contain a heap-use-after-free vulnerability via the function removeFromTo at swftools/src/swfc.c:838
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-22955 swftools 0.9.2 was discovered to contain a stack-buffer-underflow vulnerability via the… Also affects swftools