CVE-2024-22957
Medium · 5.5CVSS
5.5
EPSS
0.3%
Published
Jan 19, 2024
CISA due date
—
Cloudanix analysis
A bug in an older version of a tool that converts Flash files can make the program crash when it opens certain bad files, potentially stopping any automated work that relies on the tool.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Moderate
- Impact
- Denial Of Service
- Component
- Application
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Out-of-bounds read in dict_do_lookup allows an attacker-controlled SWF structure to access memory beyond allocated dictionary bounds, resulting in a process crash (denial of service).
Why it matters to the business
Processing untrusted SWF files with affected swftools versions can cause the utility to terminate unexpectedly, disrupting automated media conversion or analysis workflows that depend on the tool.
How an attack unfolds
An attacker crafts a malicious SWF file containing a specially formed dictionary that triggers the out-of-bounds read inside dict_do_lookup when the file is opened by any swftools component; the resulting crash produces a denial-of-service condition without requiring elevated privileges.
How to fix it
Upgrade to a patched release of swftools once available; until then, avoid processing untrusted SWF files with any swftools utilities and consider sandboxing or replacing the tool in automated pipelines.
How to confirm the fix worked
Confirm the installed swftools version is newer than 0.9.2 and test that the dict_do_lookup function no longer crashes on the original proof-of-concept SWF file.
Typical attack path
- Craft a malformed SWF file that exercises the vulnerable dictionary lookup path
- Deliver the file to a system running swftools (local file, email attachment, or web download)
- Invoke any swftools binary (e.g., swfextract, swfdump) on the file
- Trigger the out-of-bounds read and observe process termination
How to detect it
Search application or system logs for unexpected termination of swftools binaries immediately after opening SWF files; look for segmentation faults or access-violation events correlated with SWF processing.
What your security team should do
- Inventory all systems and build pipelines that invoke swftools
- Block untrusted SWF files from reaching any swftools instance until a fixed build is deployed
- Monitor for new upstream releases and apply the update as soon as it is published
The record
swftools 0.9.2 was discovered to contain an Out-of-bounds Read vulnerability via the function dict_do_lookup in swftools/lib/q.c:1190.
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