CVE-2024-22919
High · 7.8CVSS
7.8
EPSS
0.3%
Published
Jan 19, 2024
CISA due date
—
Cloudanix analysis
A problem in an older tool that works with Flash files could let an attacker take over your computer if you open a specially made file with it.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Full Compromise
- Component
- Application
- Class
- Buffer Overflow
- Remediation
- No Fix Yet
- Effort
- Other
- Patch risk
- Other
What it actually does
Global buffer overflow in parseExpression allows memory corruption when processing malformed input, enabling potential arbitrary code execution or denial of service.
Why it matters to the business
Attackers with local access can run malicious code on affected systems when users process untrusted files, risking data theft, system compromise, or ransomware deployment; the tool sees limited modern use but remains in legacy workflows.
How an attack unfolds
An attacker crafts a specially formed SWF file that triggers the overflow during parsing; the victim runs the swfc tool on the file, leading to memory corruption that the attacker leverages for code execution.
How to fix it
No official fixed versions are published; discontinue use of the affected swftools release, apply compiler-level mitigations such as ASLR and stack canaries when building from source, or replace with maintained alternatives.
How to confirm the fix worked
Rebuild and test with AddressSanitizer or similar memory-error detectors against known triggering inputs; verify the vulnerable parseExpression path is no longer reachable or that bounds checks prevent overflow.
Typical attack path
- Craft malicious SWF input targeting the parseExpression function
- Deliver the file to the target user or system
- Victim executes swfc on the malformed file
- Trigger buffer overflow and achieve code execution or crash
How to detect it
Review process execution logs and file-access records for invocations of swfc on untrusted or externally sourced files; look for crashes or abnormal memory usage during parsing.
What your security team should do
- Remove or isolate swftools from production and developer environments
- Scan file-processing pipelines for any remaining usage of the tool
- Block execution of swfc via application allowlisting where possible
- Monitor for new upstream patches or forks that address the issue
The record
swftools0.9.2 was discovered to contain a global-buffer-overflow vulnerability via the function parseExpression at swftools/src/swfc.c:2587.
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