Cloudanix VulnDB

CVE-2022-31739

High · 8.8

CVSS

8.8

EPSS

0.7%

Published

Dec 22, 2022

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A Windows-only flaw in older Firefox and Thunderbird versions could let attackers secretly place harmful files in folders that run programs automatically when the computer starts.

Exploitation
Requires User Interaction
Attacker needs
User Interaction
Complexity
Moderate
Impact
Full Compromise
Component
Application
Class
Path Traversal
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Unsanitized percent-encoded environment variables in download filenames on Windows allow path traversal, enabling writes to attacker-controlled locations such as %APPDATA% or %HOMEPATH% instead of the intended download directory.

Why it matters to the business

Attackers can place executable files in user startup or application directories, leading to silent malware execution, persistence, or data tampering on Windows endpoints running vulnerable browsers.

How an attack unfolds

An attacker hosts a page that initiates a file download whose filename contains unescaped variables such as %APPDATA%\malware.exe; when the browser saves the file, Windows expands the variable and writes the payload to a privileged location that the user later executes.

How to fix it

Upgrade Firefox to version 101 or later, Firefox ESR to 91.10 or later, and Thunderbird to 91.10 or later; apply updates through the browser's built-in update mechanism or enterprise deployment channels.

How to confirm the fix worked

Verify installed browser versions meet or exceed the fixed releases; attempt a test download containing a %HOMEPATH% filename on a patched system and confirm the file lands only in the Downloads folder rather than the expanded variable path.

Typical attack path

  1. Attacker crafts a malicious webpage or email link that triggers a file download with a filename embedding environment variables
  2. Victim opens the page or link in a vulnerable Firefox or Thunderbird instance on Windows
  3. Browser performs the download without escaping the % characters, causing the file to be written to an attacker-chosen path
  4. Payload is placed in a location that will be executed on next login or application launch
  5. Malware runs with the privileges of the logged-in user

How to detect it

Review browser download logs and Windows file-creation events in %APPDATA%, %HOMEPATH%, and startup folders for files whose source is a browser process and whose path contains expanded environment variables; correlate with web-proxy or email logs showing unexpected downloads from untrusted domains.

What your security team should do

  • Prioritize immediate update of all Firefox, ESR, and Thunderbird instances on Windows to the fixed releases
  • Enable automatic updates and enforce them via enterprise policy where possible
  • Monitor endpoint file-creation events in startup and AppData directories for unexpected executables originating from browser downloads

The record

When downloading files on Windows, the % character was not escaped, which could have lead to a download incorrectly being saved to attacker-influenced paths that used variables such as %HOMEPATH% or %APPDATA%.<br>*This bug only affects Firefox for Windows. Other operating systems are unaffected.*. This vulnerability affects Thunderbird < 91.10, Firefox < 101, and Firefox ESR < 91.10.

Affected packages

Ecosystem Package Introduced Fixed
SUSE:Enterprise Storage 6 MozillaFirefox 0 91.10.0-150000.150.44.1
SUSE:Enterprise Storage 7 MozillaFirefox 0 91.10.0-150200.152.43.1
SUSE:HPE Helion OpenStack 8 MozillaFirefox 0 91.10.0-112.114.1
SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS MozillaFirefox 0 91.10.0-150000.150.44.1
SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS MozillaFirefox 0 91.10.0-150000.150.44.1
SUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOS MozillaFirefox 0 91.10.0-150200.152.43.1
SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS MozillaFirefox 0 91.10.0-150200.152.43.1
SUSE:Linux Enterprise High Performance Computing 15-ESPOS MozillaFirefox 0 91.10.0-150000.150.44.1
SUSE:Linux Enterprise High Performance Computing 15-LTSS MozillaFirefox 0 91.10.0-150000.150.44.1
SUSE:Linux Enterprise Module for Desktop Applications 15 SP3 MozillaFirefox 0 91.10.0-150200.152.43.1
SUSE:Linux Enterprise Module for Desktop Applications 15 SP4 MozillaFirefox 0 91.10.0-150200.152.43.1
SUSE:Linux Enterprise Module for Package Hub 15 SP3 MozillaThunderbird 0 91.10.0-150200.8.73.1
SUSE:Linux Enterprise Module for Package Hub 15 SP4 MozillaThunderbird 0 91.10.0-150200.8.73.1
SUSE:Linux Enterprise Server 12 SP2-BCL MozillaFirefox 0 91.10.0-112.114.1
SUSE:Linux Enterprise Server 12 SP3-BCL MozillaFirefox 0 91.10.0-112.114.1
SUSE:Linux Enterprise Server 12 SP3-LTSS MozillaFirefox 0 91.10.0-112.114.1
SUSE:Linux Enterprise Server 12 SP4-LTSS MozillaFirefox 0 91.10.0-112.114.1
SUSE:Linux Enterprise Server 12 SP5 MozillaFirefox 0 91.10.0-112.114.1
SUSE:Linux Enterprise Server 15 SP1-BCL MozillaFirefox 0 91.10.0-150000.150.44.1
SUSE:Linux Enterprise Server 15 SP1-LTSS MozillaFirefox 0 91.10.0-150000.150.44.1
SUSE:Linux Enterprise Server 15 SP2-BCL MozillaFirefox 0 91.10.0-150200.152.43.1
SUSE:Linux Enterprise Server 15 SP2-LTSS MozillaFirefox 0 91.10.0-150200.152.43.1
SUSE:Linux Enterprise Server 15-LTSS MozillaFirefox 0 91.10.0-150000.150.44.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP3 MozillaFirefox 0 91.10.0-112.114.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP4 MozillaFirefox 0 91.10.0-112.114.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP5 MozillaFirefox 0 91.10.0-112.114.1
SUSE:Linux Enterprise Server for SAP Applications 15 MozillaFirefox 0 91.10.0-150000.150.44.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP1 MozillaFirefox 0 91.10.0-150000.150.44.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP2 MozillaFirefox 0 91.10.0-150200.152.43.1
SUSE:Linux Enterprise Software Development Kit 12 SP5 MozillaFirefox 0 91.10.0-112.114.1
SUSE:Linux Enterprise Workstation Extension 15 SP3 MozillaThunderbird 0 91.10.0-150200.8.73.1
SUSE:Linux Enterprise Workstation Extension 15 SP4 MozillaThunderbird 0 91.10.0-150200.8.73.1
SUSE:Manager Proxy 4.1 MozillaFirefox 0 91.10.0-150200.152.43.1
SUSE:Manager Retail Branch Server 4.1 MozillaFirefox 0 91.10.0-150200.152.43.1
SUSE:Manager Server 4.1 MozillaFirefox 0 91.10.0-150200.152.43.1
SUSE:OpenStack Cloud 8 MozillaFirefox 0 91.10.0-112.114.1
SUSE:OpenStack Cloud 9 MozillaFirefox 0 91.10.0-112.114.1
SUSE:OpenStack Cloud Crowbar 8 MozillaFirefox 0 91.10.0-112.114.1
SUSE:OpenStack Cloud Crowbar 9 MozillaFirefox 0 91.10.0-112.114.1
Ubuntu:18.04:LTS mozjs38 0 No fix
Ubuntu:18.04:LTS mozjs52 0 No fix
Ubuntu:20.04:LTS mozjs52 0 No fix
Ubuntu:20.04:LTS mozjs68 0 No fix
Ubuntu:22.04:LTS mozjs78 0 No fix
Ubuntu:22.04:LTS mozjs91 0 No fix
Ubuntu:Pro:18.04:LTS mozjs38 0 No fix
Ubuntu:Pro:18.04:LTS mozjs52 0 No fix
Ubuntu:Pro:20.04:LTS mozjs52 0 No fix
Ubuntu:Pro:20.04:LTS mozjs68 0 No fix
Ubuntu:Pro:22.04:LTS mozjs78 0 No fix
openSUSE:Leap 15.3 MozillaFirefox 0 91.10.0-150200.152.43.1
openSUSE:Leap 15.3 MozillaThunderbird 0 91.10.0-150200.8.73.1
openSUSE:Leap 15.4 MozillaFirefox 0 91.10.0-150200.152.43.1
openSUSE:Leap 15.4 MozillaThunderbird 0 91.10.0-150200.8.73.1
openSUSE:Tumbleweed MozillaFirefox 0 101.0-1.1
openSUSE:Tumbleweed MozillaThunderbird 0 91.10.0-1.1
openSUSE:Tumbleweed firefox-esr 0 128.5.1-1.1

Related vulnerabilities