CVE-2017-5428
Critical · 9.8CVSS
9.8
EPSS
3.2%
Published
Jun 11, 2018
CISA due date
—
Cloudanix analysis
A flaw in how Firefox handles certain image operations could let attackers who trick users into visiting malicious sites take over affected computers.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Other
- Component
- Application
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Integer overflow in createImageBitmap() enables memory corruption within the browser content sandbox process.
Why it matters to the business
Attackers can leverage malicious websites to corrupt memory in user browsers, potentially leading to full system compromise when chained with a second vulnerability; the issue affects widely deployed Firefox versions across enterprise and consumer environments.
How an attack unfolds
An attacker hosts a crafted webpage that invokes the vulnerable createImageBitmap API with specially chosen parameters to trigger the integer overflow and achieve memory corruption inside the sandboxed content process; successful exploitation requires a second vulnerability to escape the sandbox and gain code execution on the host.
How to fix it
Upgrade Mozilla Firefox to version 52.0.1 or later and Firefox ESR to 52.0.1 or later; apply vendor updates to any Red Hat Enterprise Linux packages that bundle affected Firefox binaries.
How to confirm the fix worked
Query installed Firefox version strings on endpoints and compare against 52.0.1; review browser update logs and enterprise software deployment reports to confirm patches are applied.
Typical attack path
- User visits attacker-controlled or compromised website
- Malicious JavaScript calls createImageBitmap with overflow-triggering inputs
- Integer overflow produces memory corruption in the content sandbox
- Attacker chains with a separate sandbox-escape exploit to achieve arbitrary code execution
How to detect it
Examine web proxy and browser process creation logs for unexpected child processes spawned from Firefox after visits to high-risk sites; look for crash reports or memory corruption indicators in Firefox telemetry or system crash dumps around the time of suspected exploitation.
What your security team should do
- Prioritize rapid deployment of Firefox 52.0.1+ across all managed systems
- Enable automatic browser updates where policy permits
- Restrict execution of untrusted web content via application allow-listing or browser isolation controls until updates are complete
The record
An integer overflow in "createImageBitmap()" was reported through the Pwn2Own contest. The fix for this vulnerability disables the experimental extensions to the "createImageBitmap" API. This function runs in the content sandbox, requiring a second vulnerability to compromise a user's computer. This vulnerability affects Firefox ESR < 52.0.1 and Firefox < 52.0.1.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Red Hat:enterprise_linux:7::client | firefox | 0 | 0:52.0-5.el7_3 |
| Red Hat:enterprise_linux:7::client | firefox-debuginfo | 0 | 0:52.0-5.el7_3 |
| Red Hat:enterprise_linux:7::server | firefox | 0 | 0:52.0-5.el7_3 |
| Red Hat:enterprise_linux:7::server | firefox-debuginfo | 0 | 0:52.0-5.el7_3 |
| Red Hat:enterprise_linux:7::workstation | firefox | 0 | 0:52.0-5.el7_3 |
| Red Hat:enterprise_linux:7::workstation | firefox-debuginfo | 0 | 0:52.0-5.el7_3 |
| Ubuntu:14.04:LTS | firefox | 0 | 52.0.1+build2-0ubuntu0.14.04.1 |
| Ubuntu:16.04:LTS | firefox | 0 | 52.0.1+build2-0ubuntu0.16.04.1 |
| openSUSE:Tumbleweed | MozillaFirefox | 0 | 92.0-1.2 |
| openSUSE:Tumbleweed | firefox-esr | 0 | 128.5.1-1.1 |
Related vulnerabilities
- CVE-2024-5696 By manipulating the text in an `input` tag, an attacker could have caused corrupt memory… Also affects firefox
- CVE-2024-5700 Memory safety bugs present in Firefox 126, Firefox ESR 115.11, and Thunderbird 115.11. Also affects firefox
- CVE-2024-5702 Memory corruption in the networking stack could have led to a potentially exploitable… Also affects firefox
- CVE-2024-5693 Offscreen Canvas did not properly track cross-origin tainting, which could be used to… Also affects firefox
- CVE-2024-5688 If a garbage collection was triggered at the right time, a use-after-free could have… Also affects firefox
- CVE-2024-5691 By tricking the browser with a `X-Frame-Options` header, a sandboxed iframe could have… Also affects firefox
- CVE-2024-5690 By monitoring the time certain operations take, an attacker could have guessed which… Also affects firefox
- CVE-2024-4777 Memory safety bugs present in Firefox 125, Firefox ESR 115.10, and Thunderbird 115.10. Also affects firefox