Cloudanix VulnDB

CVE-2022-35107

Medium · 5.5

CVSS

5.5

EPSS

0.3%

Published

Aug 16, 2022

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

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.

Exploit Available
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

  1. Obtain or generate a malicious file designed to trigger the vfprintf overflow
  2. Deliver the file to the target via email, download, or shared storage
  3. Victim user or automated process opens or converts the file with the affected tools
  4. 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