CVE-2022-31748
Critical · 9.8CVSS
9.8
EPSS
0.7%
Published
Dec 22, 2022
CISA due date
—
Cloudanix analysis
A problem in the web browser lets attackers potentially seize control of a computer just by getting someone to visit a harmful webpage.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Remote Code Execution
- Component
- Application
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Low
- Patch risk
- Low
What it actually does
Multiple memory safety bugs resulting in memory corruption that can be leveraged for arbitrary code execution.
Why it matters to the business
Attackers can gain full control over user systems running the browser, enabling data theft, malware deployment, and further network compromise; widespread browser usage amplifies organizational exposure.
How an attack unfolds
An attacker crafts and hosts malicious web content that, when rendered by the vulnerable browser, triggers the memory corruption flaws to achieve remote code execution without user interaction beyond visiting the page.
How to fix it
Upgrade Mozilla Firefox to version 101 or later to resolve the memory safety issues.
How to confirm the fix worked
Inspect installed browser version strings and confirm they meet or exceed the fixed release; test rendering of known trigger patterns in isolated environments if needed.
Typical attack path
- Host or compromise a website serving specially crafted content
- Lure victim browser to the malicious page
- Trigger memory corruption via crafted input
- Escalate to arbitrary code execution and payload deployment
How to detect it
Examine browser crash reports, memory dumps, and process behavior for signs of unexpected corruption or code injection attempts; correlate with web access logs showing visits to suspicious domains around the time of anomalies.
What your security team should do
- Prioritize immediate update of all Firefox deployments to version 101 or newer
- Enforce browser auto-update policies and verify rollout across endpoints
- Review web proxy or firewall logs for access to high-risk external domains during the vulnerable period
The record
Mozilla developers Gabriele Svelto, Timothy Nikkel, Randell Jesup, Jon Coppeard, and the Mozilla Fuzzing Team reported memory safety bugs present in Firefox 100. Some of these bugs showed evidence of memory corruption and we presume that with enough effort some of these could have been exploited to run arbitrary code. This vulnerability affects Firefox < 101.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Ubuntu:18.04:LTS | firefox | 0 | 101.0.1+build1-0ubuntu0.18.04.1 |
| Ubuntu:18.04:LTS | mozjs38 | 0 | No fix |
| Ubuntu:18.04:LTS | mozjs52 | 0 | No fix |
| Ubuntu:20.04:LTS | firefox | 0 | 101.0.1+build1-0ubuntu0.20.04.1 |
| Ubuntu:20.04:LTS | mozjs52 | 0 | No fix |
| Ubuntu:20.04:LTS | mozjs68 | 0 | No fix |
| Ubuntu:22.04:LTS | mozjs78 | 0 | No fix |
| Ubuntu:22.04:LTS | mozjs91 | 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 |
| openSUSE:Tumbleweed | MozillaFirefox | 0 | 101.0-1.1 |
| openSUSE:Tumbleweed | firefox-esr | 0 | 128.5.1-1.1 |
Related vulnerabilities
- CVE-2023-25736 An invalid downcast from `nsHTMLDocument` to `nsIContent` could have lead to undefined… Also affects firefox
- CVE-2023-25733 The return value from `gfx::SourceSurfaceSkia::Map()` wasn't being verified which could… Also affects firefox
- CVE-2023-32210 Documents were incorrectly assuming an ordering of principal objects when ensuring we… Also affects firefox
- CVE-2023-32216 Memory safety bugs present in Firefox 112. Also affects firefox
- CVE-2023-32209 A maliciously crafted favicon could have led to an out of memory crash. Also affects firefox
- CVE-2023-32208 Service workers could reveal script base URL due to dynamic `import()`. Also affects firefox
- CVE-2023-29551 Memory safety bugs present in Firefox 111. Also affects firefox
- CVE-2023-32207 A missing delay in popup notifications could have made it possible for an attacker to… Also affects firefox