CVE-2022-35107
Medium · 5.5CVSS
5.5
EPSS
0.3%
Published
Aug 16, 2022
CISA due date
—
Cloudanix analysis
A flaw in file-processing software can make the program crash when it tries to handle certain bad files, potentially stopping work until someone restarts it.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Application
- Class
- Buffer Overflow
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Stack-based buffer overflow triggered in vfprintf during processing of malformed input, resulting in memory corruption that can lead to application crash or potential control-flow hijacking.
Why it matters to the business
Processing of untrusted files can cause the application to become unavailable, interrupting workflows that rely on the affected tools and requiring manual intervention or restarts.
How an attack unfolds
An attacker crafts a specially formed file that, when opened or converted by the vulnerable tools, overflows a stack buffer inside vfprintf, allowing the attacker to overwrite return addresses or control data and achieve arbitrary code execution or denial of service.
How to fix it
Update to a patched build that removes the vulnerable vfprintf usage or apply vendor-supplied fixes once available; avoid processing untrusted files until a fixed version is deployed.
How to confirm the fix worked
Confirm the installed version is newer than the vulnerable commit, test with known trigger files to verify absence of crash, and review build logs or source for the corrected vfprintf handling.
Typical attack path
- Obtain or generate a malicious file designed to trigger the vfprintf overflow
- Deliver the file to the target via email, download, or shared storage
- Victim user or automated process opens or converts the file with the affected tools
- Overflow occurs, leading to crash or execution of attacker-supplied code
How to detect it
Review application and system logs for unexpected crashes or segmentation faults when processing SWF or related files; look for core dumps or stack traces referencing vfprintf.
What your security team should do
- Immediately restrict processing of untrusted files with the affected tools
- Monitor for availability of upstream fixes and schedule upgrade
- Implement sandboxing or file-type validation as a temporary control
The record
SWFTools commit 772e55a2 was discovered to contain a stack overflow via vfprintf at /stdio-common/vfprintf.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