Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2022-31739

CVE-2022-31739: Mozilla Firefox Path Traversal Vulnerability

CVE-2022-31739 is a path traversal flaw in Mozilla Firefox for Windows that allows attackers to manipulate download locations using environment variables. This post covers the technical details, affected versions, and mitigation.

Published: February 11, 2026

CVE-2022-31739 Overview

CVE-2022-31739 is a path traversal vulnerability affecting Mozilla Firefox, Firefox ESR, and Thunderbird on Windows systems. The vulnerability exists because the % character was not properly escaped when downloading files, allowing attackers to manipulate file download locations using Windows environment variables such as %HOMEPATH% or %APPDATA%. This flaw could enable attackers to save malicious files to arbitrary locations on the victim's system.

Critical Impact

Attackers can leverage unescaped environment variables in filenames to redirect downloads to sensitive system directories, potentially enabling persistence mechanisms, credential theft, or further system compromise on Windows systems.

Affected Products

  • Mozilla Firefox versions prior to 101
  • Mozilla Firefox ESR versions prior to 91.10
  • Mozilla Thunderbird versions prior to 91.10

Discovery Timeline

  • 2022-12-22 - CVE-2022-31739 published to NVD
  • 2025-04-16 - Last updated in NVD database

Technical Details for CVE-2022-31739

Vulnerability Analysis

This vulnerability stems from improper input validation in the file download handling mechanism of Mozilla browsers on Windows. When a user initiates a file download, the browser processes the filename provided by the server or derived from the URL. The vulnerability occurs because special characters, specifically the percent sign (%), are not properly sanitized before being used in file system operations.

On Windows systems, the percent sign is used to denote environment variables (e.g., %APPDATA%, %HOMEPATH%, %USERPROFILE%). When these variables appear in a filename and are not escaped, the Windows operating system expands them to their actual directory paths. This behavior can be exploited by an attacker to redirect where a downloaded file is saved, potentially placing malicious content in startup directories, application data folders, or other sensitive locations.

This vulnerability is classified under CWE-73 (External Control of File Name or Path), indicating that external input can influence file system operations in an unintended manner.

Root Cause

The root cause of CVE-2022-31739 is the failure to properly escape or sanitize the percent character (%) in filenames during the download process. The download handler did not account for Windows-specific path expansion behaviors, allowing environment variable strings embedded in filenames to be interpreted and expanded by the operating system rather than being treated as literal characters.

Attack Vector

The attack requires user interaction where a victim must be enticed to download a file from a malicious website or click a specially crafted download link. The attacker can craft a filename containing Windows environment variables that, when processed by the vulnerable browser, result in the file being saved to an attacker-controlled location on the filesystem.

For example, an attacker could serve a file with a name like %APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup\malware.exe, which after environment variable expansion could place a malicious executable in the user's startup folder, achieving persistence on the system.

The attack mechanism involves:

  1. Attacker hosts a malicious file with a specially crafted filename containing % environment variable references
  2. Victim navigates to the malicious page and initiates or is prompted to download the file
  3. Firefox/Thunderbird fails to escape the % character in the filename
  4. Windows expands the environment variables, redirecting the file to an attacker-chosen directory
  5. The malicious file is saved to a sensitive location, potentially enabling code execution on next login or application launch

Detection Methods for CVE-2022-31739

Indicators of Compromise

  • Unexpected files appearing in Windows startup directories (%APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup\)
  • Files with unusual names in %APPDATA%, %LOCALAPPDATA%, or %USERPROFILE% directories that correlate with recent browser activity
  • Browser download history showing filenames containing percent-encoded environment variable strings
  • Suspicious executable or script files in user-writable system directories

Detection Strategies

  • Monitor file system activity for writes to startup folders or other sensitive directories originating from Firefox, Thunderbird, or Firefox ESR processes
  • Implement endpoint detection rules to alert on files created in protected directories by browser processes
  • Review browser download logs for filenames containing % followed by common environment variable names
  • Deploy behavioral analysis to detect unusual file placement patterns from browser applications

Monitoring Recommendations

  • Enable auditing on sensitive Windows directories such as startup folders and application data directories
  • Configure SIEM rules to correlate browser process activity with file system writes to non-standard download locations
  • Implement file integrity monitoring on directories commonly targeted by persistence mechanisms
  • Monitor for newly created executable files in user-accessible autostart locations

How to Mitigate CVE-2022-31739

Immediate Actions Required

  • Update Mozilla Firefox to version 101 or later
  • Update Mozilla Firefox ESR to version 91.10 or later
  • Update Mozilla Thunderbird to version 91.10 or later
  • Review recent downloads on affected Windows systems for files in unexpected locations

Patch Information

Mozilla has addressed this vulnerability in Firefox 101, Firefox ESR 91.10, and Thunderbird 91.10. The fix ensures proper escaping of the % character in filenames during the download process, preventing environment variable expansion. Organizations should prioritize updating all affected Mozilla products on Windows systems.

For detailed information on the security updates, refer to the Mozilla Security Advisory MFSA-2022-20, Mozilla Security Advisory MFSA-2022-21, and Mozilla Security Advisory MFSA-2022-22. Additional technical details are available in Mozilla Bug Report #1765049.

Workarounds

  • Configure browser settings to always prompt for download location rather than using automatic download directories
  • Implement application whitelisting or execution controls on sensitive directories like startup folders
  • Use enterprise browser management policies to enforce prompt-based downloading behavior
  • Consider restricting user write permissions to common persistence locations where operationally feasible
bash
# Check current Firefox version on Windows via command line
"C:\Program Files\Mozilla Firefox\firefox.exe" --version | findstr /i "Mozilla Firefox"

# Verify Thunderbird version
"C:\Program Files\Mozilla Thunderbird\thunderbird.exe" --version

# Monitor for files in startup directory created by browser processes
dir "%APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup" /TC

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechMozilla Firefox

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability0.48%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • NVD-CWE-noinfo

  • CWE-73
  • Vendor Resources
  • Mozilla Bug Report #1765049

  • Mozilla Security Advisory MFSA-2022-20

  • Mozilla Security Advisory MFSA-2022-21

  • Mozilla Security Advisory MFSA-2022-22
  • Related CVEs
  • CVE-2025-1936: Mozilla Firefox Path Traversal Vulnerability

  • CVE-2026-6753: Mozilla Firefox Buffer Overflow Vulnerability

  • CVE-2026-6756: Mozilla Firefox Auth Bypass Vulnerability

  • CVE-2026-6757: Mozilla Firefox Use-After-Free Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English