Cloudanix VulnDB

CVE-2024-3855

None

CVSS

—

EPSS

0.4%

Published

Apr 16, 2024

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A flaw in the browser's speed optimization code could allow attackers to read data they should not access during normal web browsing.

Exploitation
Requires User Interaction
Attacker needs
User Interaction
Complexity
Moderate
Impact
Data Exposure
Component
Application
Class
Memory Corruption
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

The JIT compiler performed incorrect optimizations on MSubstr operations, resulting in out-of-bounds memory reads during script execution.

Why it matters to the business

Attackers could potentially read sensitive data from browser memory or cause crashes, increasing risk of information disclosure in affected browser sessions across user devices.

How an attack unfolds

An attacker delivers malicious JavaScript that triggers the misoptimized MSubstr path in the JIT, allowing controlled out-of-bounds reads to leak memory contents for further exploitation or data theft.

How to fix it

Upgrade Firefox to version 125 or later to receive the corrected JIT handling for MSubstr operations.

How to confirm the fix worked

Confirm browser version is 125 or higher; test with known triggering JavaScript patterns in a controlled environment to verify absence of out-of-bounds behavior.

Typical attack path

  1. Host a webpage containing specially crafted JavaScript targeting MSubstr operations
  2. Victim browser loads and JIT-compiles the script
  3. JIT produces incorrect code leading to out-of-bounds read
  4. Attacker exfiltrates leaked memory contents via script-controlled channels

How to detect it

Review browser process crash logs and memory dumps for patterns consistent with MSubstr-related out-of-bounds access; correlate with unusual JavaScript execution artifacts in web activity logs.

What your security team should do

  • Prioritize browser updates to Firefox 125+ across all managed endpoints
  • Monitor for new exploit maturity indicators given the memory corruption nature
  • Enforce automatic update policies to reduce exposure window

The record

In certain cases the JIT incorrectly optimized MSubstr operations, which led to out-of-bounds reads. This vulnerability affects Firefox < 125.

Affected packages

Ecosystem Package Introduced Fixed
Ubuntu:18.04:LTS mozjs38 0 No fix
Ubuntu:18.04:LTS mozjs52 0 No fix
Ubuntu:20.04:LTS firefox 0 125.0.2+build1-0ubuntu0.20.04.2
Ubuntu:20.04:LTS mozjs52 0 No fix
Ubuntu:20.04:LTS mozjs68 0 No fix
Ubuntu:22.04:LTS mozjs102 0 No fix
Ubuntu:22.04:LTS mozjs78 0 No fix
Ubuntu:22.04:LTS mozjs91 0 No fix
Ubuntu:24.04:LTS mozjs102 0 No fix
Ubuntu:Pro:18.04:LTS mozjs38 0 No fix
Ubuntu:Pro:18.04:LTS mozjs52 0 No fix
Ubuntu:Pro:20.04:LTS mozjs52 0 No fix
Ubuntu:Pro:20.04:LTS mozjs68 0 No fix
Ubuntu:Pro:22.04:LTS mozjs78 0 No fix
Ubuntu:Pro:24.04:LTS mozjs102 0 No fix
openSUSE:Tumbleweed MozillaFirefox 0 125.0.2-1.1
openSUSE:Tumbleweed firefox-esr 0 128.5.1-1.1

Related vulnerabilities