CVE-2023-4046
NixOS vulnerability analysis and mitigation

Overview

CVE-2023-4046 is a security vulnerability discovered in Mozilla Firefox's WebAssembly (WASM) implementation. The vulnerability was disclosed on August 1, 2023, affecting Firefox < 116, Firefox ESR < 102.14, and Firefox ESR < 115.1. The issue occurs when a stale value could be used for a global variable in WASM JIT analysis, resulting in incorrect compilation and a potentially exploitable crash in the content process (Mozilla Advisory).

Technical details

The vulnerability stems from an alias analysis bug in Firefox's JavaScript engine. The alias analyser ignores the last instruction in every block, which previously was acceptable as no block-ending instruction read or wrote memory. However, with the introduction of WASM exceptions and MWasmCallCatchable as a block terminator instruction that can modify memory, this assumption was broken. The issue specifically occurs when the analyser fails to process the last instruction in a block, leading to incorrect optimization of global variable values (Mozilla Bug).

Impact

The vulnerability can result in incorrect compilation of WebAssembly code under specific circumstances, potentially leading to crashes in the content process. While the bug affects the compilation process, it primarily impacts applications using WebAssembly with exception handling features, such as certain web-based emulators and potentially Adobe Photoshop's web version (Mozilla Advisory).

Mitigation and workarounds

The vulnerability has been fixed in Firefox 116, Firefox ESR 102.14, and Firefox ESR 115.1. The fix involves modifying the alias analyser to process the last instruction in blocks and updating the alias set handling for specific instructions to prevent performance regressions. Users are advised to upgrade to these or later versions to mitigate the vulnerability (Debian Advisory).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-14330CRITICAL9.8
  • NixOSNixOS
  • cpe:2.3:a:mozilla:firefox:*:*:*:*:esr:*:*:*
NoYesDec 09, 2025
CVE-2025-14329HIGH8.8
  • NixOSNixOS
  • cpe:2.3:a:mozilla:firefox_esr
NoYesDec 09, 2025
CVE-2025-14333HIGH8.1
  • NixOSNixOS
  • firefox-esr
NoYesDec 09, 2025
CVE-2025-14332HIGH7.3
  • NixOSNixOS
  • thunderbird
NoYesDec 09, 2025
CVE-2025-14331MEDIUM6.5
  • NixOSNixOS
  • firefox
NoYesDec 09, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management