CVE-2024-22914
Medium · 5.5CVSS
5.5
EPSS
0.3%
Published
Jan 19, 2024
CISA due date
—
Cloudanix analysis
A bug in a program that reads certain older flash files can let a specially made file crash the program, stopping whatever task it was doing until someone restarts it.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Application
- Class
- Use After Free
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Heap use-after-free in the input function at lex.swf5.c:2620 allows an attacker-supplied SWF file to trigger memory corruption resulting in denial of service.
Why it matters to the business
An attacker who supplies a malicious file can crash the affected process, interrupting any service or workflow that depends on parsing untrusted SWF content and forcing restarts or failover.
How an attack unfolds
An attacker crafts a malformed SWF file that triggers the use-after-free during lexical analysis; the file is opened locally or supplied to any application using the vulnerable parser, causing the process to crash.
How to fix it
Upgrade to a build containing commit 876899be4bb347b00a2f697e776bc844f1afbcb3 or later; rebuild any packages that statically link the vulnerable SWFTools code; replace or remove SWF parsing functionality where feasible.
How to confirm the fix worked
Confirm the installed binary or library no longer contains the vulnerable lex.swf5.c:2620 code path; run regression tests with known trigger files and verify the process does not crash; monitor vendor changelogs for the referenced commit.
Typical attack path
- Attacker creates or modifies an SWF file to exercise the vulnerable code path in lex.swf5.c
- Victim or automated process opens the file with the affected SWFTools component
- Use-after-free occurs during input processing, resulting in immediate crash or memory corruption
- Service or application becomes unavailable until restarted
How to detect it
Review process crash logs and core dumps for references to lex.swf5.c or SWFTools; look for repeated restarts of processes that handle SWF input; correlate file-access timestamps of SWF files with crash events.
What your security team should do
- Apply the fixed commit or newer build immediately on all systems that parse SWF files
- Inventory dependencies to identify any downstream packages still shipping the vulnerable SWFTools code
- Disable or sandbox SWF parsing if the functionality is not required
- Add file-type validation and sandboxing for any remaining SWF processing workflows
The record
A heap-use-after-free was found in SWFTools v0.9.2, in the function input at lex.swf5.c:2620. It allows an attacker to cause denial of service.
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