CVE-2022-35080
Medium · 5.5CVSS
5.5
EPSS
0.3%
Published
Oct 13, 2022
CISA due date
—
Cloudanix analysis
A flaw in a Flash-file conversion program can make the program crash when it tries to open certain image files.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Application
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Heap-buffer overflow in png_load at /lib/png.c causes memory corruption leading to application crash (high availability impact, no confidentiality or integrity loss).
Why it matters to the business
Processing of untrusted image files with the affected conversion tools can trigger crashes, disrupting automated media or document workflows that rely on the software.
How an attack unfolds
An attacker crafts a malicious PNG file that triggers the overflow when loaded via png_load; the file is opened locally by the affected tool, resulting in a crash. Public exploit code is available.
How to fix it
Upgrade SWFTools to a build containing the fix for commit 772e55a2 or later; alternatively, avoid processing untrusted PNG files with the affected tools until a patched release is obtained.
How to confirm the fix worked
Inspect source for the png_load implementation in /lib/png.c, recompile with the corrected commit, and test against known crashing PNG samples to confirm absence of the overflow.
Typical attack path
- Craft a specially malformed PNG image targeting the png_load buffer handling
- Deliver the image to a system running the vulnerable SWFTools binaries
- Open or convert the file using a tool that invokes png_load
- Trigger the heap overflow and cause denial of service
How to detect it
Monitor process crash logs and application fault reports for SWFTools binaries invoked on PNG inputs; correlate file-open events with subsequent segmentation faults or heap-related errors in system logs.
- swftools png_load crash
- heap-buffer-overflow in /lib/png.c
What your security team should do
- Treat as low-urgency given low EPSS and lack of KEV status but still restrict use on untrusted inputs
- Scan build pipelines and developer workstations for presence of the vulnerable SWFTools binaries
- Replace or sandbox the tool where possible until a confirmed fixed version is deployed
The record
SWFTools commit 772e55a2 was discovered to contain a heap-buffer overflow via png_load at /lib/png.c.
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