Skip to content
OpenAdvisories
Unscored Public exploit CVE-2018-12386 EUVD-2018-4360GHSA-5vgc-hmw3-287j

A vulnerability in register allocation in JavaScript can lead to type confusion, allowing for an arbitrary read and write. This leads to re…

Published Oct 18, 2018 · Updated Aug 5, 2024 · Assigned by mozilla

Description

A vulnerability in register allocation in JavaScript can lead to type confusion, allowing for an arbitrary read and write. This leads to remote code execution inside the sandboxed content process when triggered. This vulnerability affects Firefox ESR < 60.2.2 and Firefox < 62.0.3.

Affected products

VendorProductAffectedFixed
Mozilla Firefox ESR unspecified – < 60.2.2 60.2.2
Mozilla Firefox unspecified – < 62.0.3 62.0.3

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 firefox-esr 60.2.2esr-1 —
Debian 13 firefox-esr 60.2.2esr-1 —
Debian 12 firefox-esr 60.2.2esr-1 —
Debian 9 firefox-esr 60.2.2esr-1~deb9u1 DSA-4310-1
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS mozjs52 No fix yet —
Ubuntu 18.04 LTS firefox 62.0.3+build1-0ubuntu0.18.04.1 USN-3778-1
Ubuntu 18.04 LTS mozjs38 +1 No fix yet —
Ubuntu 18.04 LTS thunderbird 1:60.4.0+build2-0ubuntu0.18.04.1 —
Ubuntu 16.04 LTS firefox 62.0.3+build1-0ubuntu0.16.04.2 USN-3778-1
Ubuntu 16.04 LTS thunderbird 1:60.4.0+build2-0ubuntu0.16.04.1 —
Ubuntu 14.04 LTS firefox 62.0.3+build1-0ubuntu0.14.04.2 USN-3778-1
Ubuntu 14.04 LTS thunderbird 1:60.4.0+build2-0ubuntu0.14.04.1 —
ReleasePackageFixed inAdvisory
RHEL 7 firefox 60.2.2-1.el7_5 RHSA-2018:2884
RHEL 6 firefox 60.2.2-1.el6 RHSA-2018:2881
ReleasePackageFixed inAdvisory
SLES 15 MozillaFirefox 60.2.2-3.13.3 SUSE-SU-2018:3476-1
SLES 15 MozillaFirefox-branding-SLE 60-4.5.3 SUSE-SU-2018:3476-1
SLES 12 SP4 MozillaFirefox 60.2.2esr-109.46.1 SUSE-SU-2018:3591-2
SLES 12 SP4 MozillaFirefox-branding-SLE 60-32.3.1 SUSE-SU-2018:3591-2
SLES 12 SP4 apache2-mod_nss 1.0.14-19.6.3 SUSE-SU-2018:3591-2
SLES 12 SP4 mozilla-nspr 4.19-19.3.1 SUSE-SU-2018:3591-2
SLES 12 SP4 mozilla-nss 3.36.4-58.15.3 SUSE-SU-2018:3591-2
SLES 12 SP3 MozillaFirefox 60.2.2esr-109.46.1 SUSE-SU-2018:3591-1
SLES 12 SP3 MozillaFirefox-branding-SLE 60-32.3.1 SUSE-SU-2018:3591-1
SLES 12 SP3 apache2-mod_nss 1.0.14-19.6.3 SUSE-SU-2018:3591-1
SLES 12 SP3 mozilla-nspr 4.19-19.3.1 SUSE-SU-2018:3591-1
SLES 12 SP3 mozilla-nss 3.36.4-58.15.3 SUSE-SU-2018:3591-1
SLES 12 SP2 MozillaFirefox 60.2.2esr-109.46.1 SUSE-SU-2018:3591-1
SLES 12 SP2 MozillaFirefox-branding-SLE 60-32.3.1 SUSE-SU-2018:3591-1
SLES 12 SP2 apache2-mod_nss 1.0.14-19.6.3 SUSE-SU-2018:3591-1
SLES 12 SP2 mozilla-nspr 4.19-19.3.1 SUSE-SU-2018:3591-1
SLES 12 SP2 mozilla-nss 3.36.4-58.15.3 SUSE-SU-2018:3591-1
SLES 12 SP1 MozillaFirefox 60.2.2esr-109.46.1 SUSE-SU-2018:3591-1
SLES 12 SP1 MozillaFirefox-branding-SLE 60-32.3.1 SUSE-SU-2018:3591-1
SLES 12 SP1 apache2-mod_nss 1.0.14-19.6.3 SUSE-SU-2018:3591-1
SLES 12 SP1 mozilla-nspr 4.19-19.3.1 SUSE-SU-2018:3591-1
SLES 12 SP1 mozilla-nss 3.36.4-58.15.3 SUSE-SU-2018:3591-1
Show 7 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 12 MozillaFirefox 60.2.2esr-109.46.1 SUSE-SU-2018:3591-1
SLES 12 MozillaFirefox-branding-SLE 60-32.3.1 SUSE-SU-2018:3591-1
SLES 12 mozilla-nspr 4.19-19.3.1 SUSE-SU-2018:3591-1
SLES 12 mozilla-nss 3.36.4-58.15.3 SUSE-SU-2018:3591-1
SLES for SAP 12 SP4 MozillaFirefox 60.2.2esr-109.46.1 SUSE-SU-2018:3591-2
SLES for SAP 12 SP4 MozillaFirefox-branding-SLE 60-32.3.1 SUSE-SU-2018:3591-2
SLES for SAP 12 SP4 apache2-mod_nss 1.0.14-19.6.3 SUSE-SU-2018:3591-2
SLES for SAP 12 SP4 mozilla-nspr 4.19-19.3.1 SUSE-SU-2018:3591-2
SLES for SAP 12 SP4 mozilla-nss 3.36.4-58.15.3 SUSE-SU-2018:3591-2
SLES for SAP 12 SP3 MozillaFirefox 60.2.2esr-109.46.1 SUSE-SU-2018:3591-1
SLES for SAP 12 SP3 MozillaFirefox-branding-SLE 60-32.3.1 SUSE-SU-2018:3591-1
SLES for SAP 12 SP3 apache2-mod_nss 1.0.14-19.6.3 SUSE-SU-2018:3591-1
SLES for SAP 12 SP3 mozilla-nspr 4.19-19.3.1 SUSE-SU-2018:3591-1
SLES for SAP 12 SP3 mozilla-nss 3.36.4-58.15.3 SUSE-SU-2018:3591-1
SLES for SAP 12 SP2 MozillaFirefox 60.2.2esr-109.46.1 SUSE-SU-2018:3591-1
SLES for SAP 12 SP2 MozillaFirefox-branding-SLE 60-32.3.1 SUSE-SU-2018:3591-1
SLES for SAP 12 SP2 apache2-mod_nss 1.0.14-19.6.3 SUSE-SU-2018:3591-1
SLES for SAP 12 SP2 mozilla-nspr 4.19-19.3.1 SUSE-SU-2018:3591-1
SLES for SAP 12 SP2 mozilla-nss 3.36.4-58.15.3 SUSE-SU-2018:3591-1
SLES for SAP 12 SP1 MozillaFirefox 60.2.2esr-109.46.1 SUSE-SU-2018:3591-1
SLES for SAP 12 SP1 MozillaFirefox-branding-SLE 60-32.3.1 SUSE-SU-2018:3591-1
SLES for SAP 12 SP1 apache2-mod_nss 1.0.14-19.6.3 SUSE-SU-2018:3591-1
SLES for SAP 12 SP1 mozilla-nspr 4.19-19.3.1 SUSE-SU-2018:3591-1
SLES for SAP 12 SP1 mozilla-nss 3.36.4-58.15.3 SUSE-SU-2018:3591-1
SUSE OpenStack Cloud 7 MozillaFirefox 60.2.2esr-109.46.1 SUSE-SU-2018:3591-1
SUSE OpenStack Cloud 7 MozillaFirefox-branding-SLE 60-32.3.1 SUSE-SU-2018:3591-1
SUSE OpenStack Cloud 7 apache2-mod_nss 1.0.14-19.6.3 SUSE-SU-2018:3591-1
SUSE OpenStack Cloud 7 mozilla-nspr 4.19-19.3.1 SUSE-SU-2018:3591-1
SUSE OpenStack Cloud 7 mozilla-nss 3.36.4-58.15.3 SUSE-SU-2018:3591-1
SUSE Enterprise Storage 4 MozillaFirefox 60.2.2esr-109.46.1 SUSE-SU-2018:3591-1
SUSE Enterprise Storage 4 MozillaFirefox-branding-SLE 60-32.3.1 SUSE-SU-2018:3591-1
SUSE Enterprise Storage 4 apache2-mod_nss 1.0.14-19.6.3 SUSE-SU-2018:3591-1
SUSE Enterprise Storage 4 mozilla-nspr 4.19-19.3.1 SUSE-SU-2018:3591-1
SUSE Enterprise Storage 4 mozilla-nss 3.36.4-58.15.3 SUSE-SU-2018:3591-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed MozillaFirefox 92.0-1.2 openSUSE-SU-2024:10600-1
openSUSE Tumbleweed firefox-esr 128.5.1-1.1 openSUSE-SU-2024:14572-1

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 7 firefox 60.2.2-1.0.1.el7_5 ELSA-2018-2884

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 2 repositories

  • 0xLyte/cve-2018-12386 ★ 2 · Apr 10, 2020

    CVE-2018-12386 - Firefox Sandboxed RCE Exploit for Linux (Firefox <v62.0.3)

  • Hydra3evil/cve-2018-12386 ★ 2 · Aug 9, 2019

    CVE-2018-12386 - Firefox Sandboxed RCE Exploit for Linux (Firefox <v62.0.3)

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 10

References