cve.bz

CVE-2022-31739 mozilla: External Control of File Name or Path

8.8 highEPSS 0.7%

High (8.8) in mozilla. EPSS 0.7% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

8.8 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
0.7% (unchanged from 0.7% a week ago; 0.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 54th percentile. Scored 2026-11-23. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2025-04-16. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-73 External Control of File Name or Path
OWASP Top 10
A06:2025 Insecure Design
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-31739 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-31739?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-31739?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-31739 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Mozilla Thunderbirdbefore 91.10
Mozilla Firefoxbefore 101
Mozilla Firefox ESRbefore 91.10

Linux distributions

DistributionReleasePackageFixed inAdvisory
Ubuntu18.04:LTSmozjs38, mozjs52no fix listedUBUNTU-CVE-2022-31739
Ubuntu20.04:LTSmozjs52, mozjs68no fix listedUBUNTU-CVE-2022-31739
Ubuntu22.04:LTSmozjs78, mozjs91no fix listedUBUNTU-CVE-2022-31739
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 7 moreMozillaFirefox91.10.0-150000.150.44.1SUSE-SU-2022:1927-1
SUSEEnterprise Storage 7, Linux Enterprise High Performance Computing 15 SP2-ESPOS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 8 moreMozillaFirefox91.10.0-150200.152.43.1SUSE-SU-2022:1920-1
SUSEHPE Helion OpenStack 8, Linux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP3-BCL and 11 moreMozillaFirefox91.10.0-112.114.1SUSE-SU-2022:1921-1
SUSELinux Enterprise Module for Package Hub 15 SP3, Linux Enterprise Module for Package Hub 15 SP4, Linux Enterprise Workstation Extension 15 SP3 and 1 moreMozillaThunderbird91.10.0-150200.8.73.1SUSE-SU-2022:2062-1
openSUSELeap 15.3, Leap 15.4MozillaFirefox91.10.0-150200.152.43.1SUSE-SU-2022:1920-1
openSUSELeap 15.3, Leap 15.4MozillaThunderbird91.10.0-150200.8.73.1SUSE-SU-2022:2062-1
openSUSETumbleweedMozillaFirefox101.0-1.1openSUSE-SU-2024:12121-1
openSUSETumbleweedMozillaThunderbird91.10.0-1.1openSUSE-SU-2024:12117-1
openSUSETumbleweedfirefox-esr128.5.1-1.1openSUSE-SU-2024:14572-1
Alpinev3.15firefox-esr91.10.0-r0ALPINE-CVE-2022-31739
Alpinev3.16, v3.17, v3.18 and 2 morefirefox101.0-r0ALPINE-CVE-2022-31739
Alpinev3.16, v3.17, v3.18 and 5 morefirefox-esr, thunderbird91.10.0-r0ALPINE-CVE-2022-31739
Alpinev3.21, v3.22, v3.23firefox, librewolf101.0-r0ALPINE-CVE-2022-31739
Alpinev3.24librewolf101.0-r0ALPINE-CVE-2022-31739

From the distributions' data via OSV.dev: Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Ubuntu · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This bug only affects Firefox for Windows. Other operating systems are unaffected.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6firefoxNot affected
Red Hat Enterprise Linux 6thunderbirdNot affected
Red Hat Enterprise Linux 7firefoxNot affected
Red Hat Enterprise Linux 7thunderbirdNot affected
Red Hat Enterprise Linux 8firefoxNot affected
Red Hat Enterprise Linux 8thunderbirdNot affected
Red Hat Enterprise Linux 9firefoxNot affected
Red Hat Enterprise Linux 9thunderbirdNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-31739.

Attack patterns (CAPEC)

  • CAPEC-13 Subverting Environment Variable Values Likelihood: High · Severity: Very High
  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-72 URL Encoding Likelihood: High · Severity: High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-80 Using UTF-8 Encoding to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-267 Leverage Alternate Encoding Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON