CVE-2018-12387
A vulnerability where the JavaScript JIT compiler inlines Array.prototype.push with multiple arguments that results in the stack pointer being off by 8 bytes after a bailout. This leaks a memory address to the calling function which can be used as part of an exploit inside the sandboxed content process. This vulnerability affects Firefox ESR < 60.2.2 and Firefox < 62.0.3.
What to do
Fixed builds are available from Debian, Red Hat, Ubuntu: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 20.04 | mozjs52 | Will not fix mozjs contains a copy of the SpiderMonkey JavaScript engine | UBUNTU-CVE-2018-12387 | |
| Ubuntu 18.04 | firefox | Fixed | 62.0.3+build1-0ubuntu0.18.04.1 | UBUNTU-CVE-2018-12387 |
| Ubuntu 18.04 | mozjs38 | Will not fix mozjs contains a copy of the SpiderMonkey JavaScript engine | UBUNTU-CVE-2018-12387 | |
| Ubuntu 18.04 | mozjs52 | Will not fix mozjs contains a copy of the SpiderMonkey JavaScript engine | UBUNTU-CVE-2018-12387 | |
| Ubuntu 18.04 | thunderbird | Fixed | 1:60.4.0+build2-0ubuntu0.18.04.1 | UBUNTU-CVE-2018-12387 |
| Ubuntu 16.04 | firefox | Fixed | 62.0.3+build1-0ubuntu0.16.04.2 | UBUNTU-CVE-2018-12387 |
| Ubuntu 16.04 | thunderbird | Fixed | 1:60.4.0+build2-0ubuntu0.16.04.1 | UBUNTU-CVE-2018-12387 |
| Ubuntu 14.04 | firefox | Fixed | 62.0.3+build1-0ubuntu0.14.04.2 | UBUNTU-CVE-2018-12387 |
| Ubuntu 14.04 | thunderbird | Fixed | 1:60.4.0+build2-0ubuntu0.14.04.1 | UBUNTU-CVE-2018-12387 |
| Debian 14 | firefox-esr | Fixed | 60.2.2esr-1 | DEBIAN-CVE-2018-12387 |
| Debian 13 | firefox-esr | Fixed | 60.2.2esr-1 | DEBIAN-CVE-2018-12387 |
| Debian 12 | firefox-esr | Fixed | 60.2.2esr-1 | DEBIAN-CVE-2018-12387 |
| Red Hat Enterprise Linux 7 | firefox | Fixed | 0:60.2.2-1.el7_5 | RHSA-2018:2884 |
| Red Hat Enterprise Linux 7 | thunderbird | Not affected | ||
| Red Hat Enterprise Linux 6 | firefox | Fixed | 0:60.2.2-1.el6 | RHSA-2018:2881 |
| Red Hat Enterprise Linux 6 | thunderbird | Not affected |
What the vendor says
As published in the CVE record by mozilla, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Mozilla Firefox ESR: affected: unspecified to before 60.2.2; fixed in
60.2.2 - Mozilla Firefox: affected: unspecified to before 62.0.3; fixed in
62.0.3
Vendor advisories:
- https://security.gentoo.org/glsa/201810-01 (vendor-advisory)
- https://usn.ubuntu.com/3778-1/ (vendor-advisory)
- https://www.debian.org/security/2018/dsa-4310 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2018:2884 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2018:2881 (vendor-advisory)
References
- https://security.gentoo.org/glsa/201810-01
- http://www.securityfocus.com/bid/105460
- https://usn.ubuntu.com/3778-1/
- https://bugzilla.mozilla.org/show_bug.cgi?id=1493903
- https://www.debian.org/security/2018/dsa-4310
- https://access.redhat.com/errata/RHSA-2018:2884
- http://www.securitytracker.com/id/1041770
- https://www.mozilla.org/security/advisories/mfsa2018-24/
- https://access.redhat.com/errata/RHSA-2018:2881
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.