CVE-2024-24148
NoneCVSS
—
EPSS
0.6%
Published
Feb 28, 2024
CISA due date
—
Cloudanix analysis
A flaw in a library used to read old Flash files can let attackers send a specially made file that slowly uses up all available memory and crashes the program.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Memory leak in parseSWF_FREECHARACTER causes unbounded heap allocation when processing a crafted SWF file, eventually exhausting available memory and triggering denial of service.
Why it matters to the business
Applications or services that parse untrusted SWF files can become unresponsive or crash, interrupting workflows that rely on media processing libraries and increasing operational recovery effort.
How an attack unfolds
An attacker crafts a minimal SWF containing a FREECHARACTER tag that triggers the leak path, then supplies the file to any process using the vulnerable library; repeated submissions gradually exhaust memory until the process terminates or becomes unusable.
How to fix it
Upgrade libming to the latest patched release that resolves the leak in parseSWF_FREECHARACTER; if an upgrade is not immediately possible, isolate or sandbox any component that parses untrusted SWF files and monitor resident memory growth.
How to confirm the fix worked
Rebuild or acquire the fixed library, reprocess the original crafted SWF under memory profiling tools, and confirm that heap allocations no longer grow without bound; also verify that memory usage returns to baseline after file processing completes.
Typical attack path
- Identify a target process or service that accepts SWF input via libming
- Generate or obtain a minimal malicious SWF that exercises parseSWF_FREECHARACTER
- Deliver the crafted file through normal input channels (upload, network message, or file system)
- Repeat delivery to accumulate leaked memory until service degradation or crash occurs
How to detect it
Monitor process memory metrics and system logs for sudden or sustained increases in heap usage correlated with SWF file processing; inspect application logs for repeated parsing of the same or similar SWF inputs.
What your security team should do
- Prioritize upgrade of libming in all media-processing pipelines within the next maintenance window
- Add memory-usage alerting around processes that handle SWF files
- Consider disabling or restricting SWF parsing until patches are deployed if the functionality is non-essential
The record
A memory leak issue discovered in parseSWF_FREECHARACTER in libming v0.4.8 allows attackers to cause a denial of service via a crafted SWF file.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Ubuntu:16.04:LTS | ming | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | ming | 0 | No fix |