CVE-2024-22915
High · 7.8CVSS
7.8
EPSS
0.4%
Published
Jan 19, 2024
CISA due date
—
Cloudanix analysis
A flaw in a file-processing library 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 swf_DeleteTag allows attacker-controlled memory reuse leading to arbitrary code execution when processing malformed SWF content.
Why it matters to the business
Attackers can run malicious code on systems that open untrusted files with the affected library, potentially leading to full compromise of developer workstations or build pipelines that depend on the package.
How an attack unfolds
An attacker crafts a malicious SWF file that triggers the use-after-free during tag deletion; when the vulnerable application processes the file the freed memory is reused with attacker data, resulting in code execution. The flaw has publicly available exploit code but no known ransomware or named APT campaigns.
How to fix it
Upgrade @fedify/fedify to 0.11.1 or later, or update dahlia/fedify and fedify-dev/fedify to commit 30f9cf4a175704a04c874f3ea88414c5f1e00b28. Rebuild and redeploy any applications or containers that embed the vulnerable version.
How to confirm the fix worked
Confirm the updated package version or commit is present in lockfiles and container images; run regression tests that exercise SWF parsing paths and verify absence of the use-after-free under sanitizers.
Typical attack path
- Attacker prepares a specially crafted SWF file containing structures that trigger the use-after-free in swf_DeleteTag
- Victim opens the file with an application linked against the vulnerable SWFTools library or a dependent package
- The library reuses the freed heap chunk with attacker-controlled data
- Execution flow is redirected to attacker-supplied code, achieving arbitrary code execution
How to detect it
Review process execution logs and file-open events for unexpected SWF files processed by applications using the vulnerable library; look for crashes or sanitizer reports indicating heap-use-after-free during tag deletion.
What your security team should do
- Immediately update all Fedify-based projects to the fixed versions listed
- Scan dependency graphs for any remaining references to SWFTools 0.9.2 or earlier
- Add automated dependency-update checks and SBOM generation to prevent future regressions
The record
A heap-use-after-free was found in SWFTools v0.9.2, in the function swf_DeleteTag at rfxswf.c:1193. 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