
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2024-3855 is a security vulnerability discovered in Firefox's JavaScript engine where the Just-In-Time (JIT) compiler incorrectly optimized MSubstr operations, leading to out-of-bounds reads. The vulnerability affects Firefox versions prior to 125 and was disclosed on April 16, 2024 (Mozilla Advisory, NVD).
The vulnerability occurs when the JIT compiler incorrectly allows hoisting of instructions before guard-like instructions. Specifically, the issue involves hoisting std_Math_max, std_Math_min, and SubstringKernel calls from String_slice outside a loop while keeping the never executed condition (a10 < 0) inside the loop. This optimization flaw can lead to out-of-bounds memory reads when certain conditions are met (Bugzilla). The vulnerability has been assigned a CVSS v3.1 base score of 6.5 (Medium) with vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H (NVD).
The vulnerability allows for out-of-bounds memory reads, which could potentially lead to information disclosure or browser crashes. The issue is rated as having a high impact according to Mozilla's security advisory, particularly affecting the browser's JavaScript engine (Mozilla Advisory).
The vulnerability requires specific conditions to be exploited, involving looping code and particular usage of substring operations. While the test case to trigger the bug is relatively small, exploitation requires understanding of JIT compiler optimizations and loop invariant code motion (LICM). No active exploits have been reported in the wild (CIS Advisory).
The vulnerability has been fixed in Firefox 125. Users are advised to update to this version or later. The fix involves making MSubstr non-movable, effectively reverting a previous optimization change. For organizations unable to update immediately, no alternative workarounds have been publicly documented (Mozilla Advisory).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."