CVE-2018-12388
High · 8.8CVSS
8.8
EPSS
1.4%
Published
Feb 28, 2019
CISA due date
—
Cloudanix analysis
A flaw in older versions of the Firefox browser could let attackers take over a user's computer simply by getting them to visit a malicious website.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Moderate
- Impact
- Remote Code Execution
- Component
- Application
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Multiple memory safety bugs resulting in memory corruption that can be leveraged for arbitrary code execution within the browser process.
Why it matters to the business
Attackers can gain full control over affected user systems, enabling theft of credentials, installation of malware, or unauthorized access to corporate resources accessed via the browser.
How an attack unfolds
An attacker hosts or compromises a web page that triggers one of the memory corruption conditions when rendered in an unpatched Firefox version; with sufficient effort the corruption is turned into reliable code execution, allowing the attacker to run arbitrary payloads on the victim's machine.
How to fix it
Upgrade Mozilla Firefox to version 63 or later on all platforms; apply equivalent updates through distribution channels such as Canonical Ubuntu package repositories when available.
How to confirm the fix worked
Verify browser version reports 63 or higher; retest affected web content or use memory-safety tooling to confirm absence of the reported corruption vectors.
Typical attack path
- Deliver malicious HTML or JavaScript via a compromised or attacker-controlled website
- Trigger memory corruption through crafted content or DOM operations
- Achieve arbitrary code execution and establish persistence or exfiltrate data
How to detect it
Examine web proxy and browser process logs for unexpected crashes or memory-related error patterns around the time of suspected incidents; correlate with network requests to previously unknown domains.
What your security team should do
- Prioritize immediate deployment of Firefox 63+ across all endpoints
- Enable automatic updates and enforce version checks via endpoint management
- Review browser extension and plugin inventory for additional attack surface
The record
Mozilla developers and community members reported memory safety bugs present in Firefox 62. Some of these bugs showed evidence of memory corruption and we presume that with enough effort that some of these could be exploited to run arbitrary code. This vulnerability affects Firefox < 63.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Ubuntu:14.04:LTS | firefox | 0 | 63.0+build2-0ubuntu0.14.04.2 |
| Ubuntu:16.04:LTS | firefox | 0 | 63.0+build2-0ubuntu0.16.04.2 |
| Ubuntu:18.04:LTS | firefox | 0 | 63.0+build2-0ubuntu0.18.04.2 |
| Ubuntu:18.04:LTS | mozjs38 | 0 | No fix |
| Ubuntu:18.04:LTS | mozjs52 | 0 | No fix |
| Ubuntu:20.04:LTS | mozjs52 | 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 |
| openSUSE:Tumbleweed | MozillaFirefox | 0 | 92.0-1.2 |
| openSUSE:Tumbleweed | firefox-esr | 0 | 128.5.1-1.1 |
Related vulnerabilities
- CVE-2019-9810 Incorrect alias information in IonMonkey JIT compiler for Array.prototype.slice method… Also affects firefox
- CVE-2019-9788 Mozilla developers and community members reported memory safety bugs present in Firefox… Also affects firefox
- CVE-2019-9791 The type inference system allows the compilation of functions that can cause type… Also affects firefox
- CVE-2019-9792 The IonMonkey just-in-time (JIT) compiler can leak an internal JS_OPTIMIZED_OUT magic… Also affects firefox
- CVE-2018-18511 Cross-origin images can be read from a canvas element in violation of the same-origin… Also affects firefox
- CVE-2018-5124 Unsanitized output in the browser UI leaves HTML tags in place and can result in… Also affects firefox
- CVE-2018-12405 Mozilla developers and community members reported memory safety bugs present in Firefox… Also affects firefox
- CVE-2018-18506 When proxy auto-detection is enabled, if a web server serves a Proxy Auto-Configuration… Also affects firefox