Code injection in Mozilla Firefox ESR
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.0 · NVD. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-94.
Summary
The PDF viewer does not sufficiently sanitize PostScript calculator functions, allowing malicious JavaScript to be injected through a crafted PDF file. This JavaScript can then be run with the permissions of the PDF viewer by its worker. This vulnerability affects Firefox ESR < 52.8 and Firefox < 60.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Mozilla | Firefox ESR | before 52.8 | 52.8 | Patch available | CNA |
| Mozilla | Firefox | before 60 | 60 | Patch available | CNA |
| — | pdfjs-dist (npm) | 2.0.0 to before 2.0.550 | 2.0.550 | Patch available | GHSA-7jg2-jgv3-fmr4 |
| — | pdfjs-dist (npm) | before 1.10.100 | 1.10.100 | Patch available | GHSA-7jg2-jgv3-fmr4 |
- Firefox ESR VendorMozilla Affected before 52.8 Fixed in 52.8 Patch available CNA
- Firefox VendorMozilla Affected before 60 Fixed in 60 Patch available CNA
- pdfjs-dist (npm) Vendor— Affected 2.0.0 to before 2.0.550 Fixed in 2.0.550 Patch available GHSA-7jg2-jgv3-fmr4
- pdfjs-dist (npm) Vendor— Affected before 1.10.100 Fixed in 1.10.100 Patch available GHSA-7jg2-jgv3-fmr4
CPE configurations NVD · 18
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:o:debian:debian_linux:7.0:*:*:*:*:*:*:* | 7.0 | Vulnerable | Debian |
| cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* | 8.0 | Vulnerable | Debian |
| cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* | 9.0 | Vulnerable | Debian |
| cpe:2.3:o:redhat:enterprise_linux_desktop:6.0:*:*:*:*:*:*:* | 6.0 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_desktop:7.0:*:*:*:*:*:*:* | 7.0 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_server:6.0:*:*:*:*:*:*:* | 6.0 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:* | 7.0 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_server_aus:7.6:*:*:*:*:*:*:* | 7.6 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_server_eus:7.5:*:*:*:*:*:*:* | 7.5 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_server_eus:7.6:*:*:*:*:*:*:* | 7.6 | Vulnerable | Red Hat |
- cpe:2.3:o:debian:debian_linux:7.0:*:*:*:*:*:*:* Versions 7.0 Vulnerable ·Debian
- cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* Versions 8.0 Vulnerable ·Debian
- cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* Versions 9.0 Vulnerable ·Debian
- cpe:2.3:o:redhat:enterprise_linux_desktop:6.0:*:*:*:*:*:*:* Versions 6.0 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_desktop:7.0:*:*:*:*:*:*:* Versions 7.0 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_server:6.0:*:*:*:*:*:*:* Versions 6.0 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:* Versions 7.0 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_server_aus:7.6:*:*:*:*:*:*:* Versions 7.6 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_server_eus:7.5:*:*:*:*:*:*:* Versions 7.5 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_server_eus:7.6:*:*:*:*:*:*:* Versions 7.6 Vulnerable ·Red Hat
Show 8 more CPE
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:o:redhat:enterprise_linux_server_tus:7.6:*:*:*:*:*:*:* | 7.6 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_workstation:6.0:*:*:*:*:*:*:* | 6.0 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_workstation:7.0:*:*:*:*:*:*:* | 7.0 | Vulnerable | Red Hat |
| cpe:2.3:a:mozilla:firefox:*:*:*:*:*:*:*:* | before 52.8.0; before 60.0 | Vulnerable | Mozilla |
| cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:* | 14.04 | Vulnerable | Canonical |
| cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:* | 16.04 | Vulnerable | Canonical |
| cpe:2.3:o:canonical:ubuntu_linux:17.10:*:*:*:*:*:*:* | 17.10 | Vulnerable | Canonical |
| cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:* | 18.04 | Vulnerable | Canonical |
- cpe:2.3:o:redhat:enterprise_linux_server_tus:7.6:*:*:*:*:*:*:* Versions 7.6 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_workstation:6.0:*:*:*:*:*:*:* Versions 6.0 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_workstation:7.0:*:*:*:*:*:*:* Versions 7.0 Vulnerable ·Red Hat
- cpe:2.3:a:mozilla:firefox:*:*:*:*:*:*:*:* Versions before 52.8.0; before 60.0 Vulnerable ·Mozilla
- cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:* Versions 14.04 Vulnerable ·Canonical
- cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:* Versions 16.04 Vulnerable ·Canonical
- cpe:2.3:o:canonical:ubuntu_linux:17.10:*:*:*:*:*:*:* Versions 17.10 Vulnerable ·Canonical
- cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:* Versions 18.04 Vulnerable ·Canonical
Remediation
- Fix · CNA Firefox ESR (Mozilla) Fixed in 52.8
- Fix · CNA Firefox (Mozilla) Fixed in 60
- Fix · GHSA-7jg2-jgv3-fmr4 pdfjs-dist (npm) Fixed in 2.0.550 Advisory →
- Fix · GHSA-7jg2-jgv3-fmr4 pdfjs-dist (npm) Fixed in 1.10.100 Advisory →
Red Hat 2 advisories
- RHSA-2018:1415 Released 2018-05-14 · Red Hat rating Criticalfirefox security update
- Red Hat Enterprise Linux Client (v. 7) firefox-52.8.0-1.el7_5
- Red Hat Enterprise Linux Client Optional (v. 7) firefox-52.8.0-1.el7_5
- Red Hat Enterprise Linux Server (v. 7) firefox-52.8.0-1.el7_5
- Red Hat Enterprise Linux Server Optional (v. 7) firefox-52.8.0-1.el7_5
- Red Hat Enterprise Linux Workstation (v. 7) firefox-52.8.0-1.el7_5
- Red Hat Enterprise Linux Workstation Optional (v. 7) firefox-52.8.0-1.el7_5
- Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server (v. 7) firefox-52.8.0-1.el7_5
- Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server Optional (v. 7) firefox-52.8.0-1.el7_5
- RHSA-2018:1414 Released 2018-05-14 · Red Hat rating Criticalfirefox security update
- Red Hat Enterprise Linux Desktop (v. 6) firefox-52.8.0-1.el6_9
- Red Hat Enterprise Linux Desktop Optional (v. 6) firefox-52.8.0-1.el6_9
- Red Hat Enterprise Linux HPC Node Optional (v. 6) firefox-52.8.0-1.el6_9
- Red Hat Enterprise Linux Server (v. 6) firefox-52.8.0-1.el6_9
- Red Hat Enterprise Linux Server Optional (v. 6) firefox-52.8.0-1.el6_9, firefox-52.8.0-1.el6_9.ppc
- Red Hat Enterprise Linux Workstation (v. 6) firefox-52.8.0-1.el6_9
- Red Hat Enterprise Linux Workstation Optional (v. 6) firefox-52.8.0-1.el6_9
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Advisory ·
Mozilla Firefox, Firefox ESR — USN-3645-1
24 records Highest priority Priority MEDIUM 6 MEDIUM, 18 LOW
Other records, highest priority first
- TI-2018-03723 Integer overflow in Mozilla ThunderbirdPriority MEDIUM 61
- TI-2018-03719 Use after free in Mozilla ThunderbirdPriority MEDIUM 48
- TI-2018-03718 Use after free in Mozilla ThunderbirdPriority MEDIUM 48
- Advisory ·
Mozilla Firefox, Firefox ESR — RHSA-2018:1414
9 records Highest priority Priority MEDIUM 7 MEDIUM, 2 LOW
Other records, highest priority first
- TI-2018-03723 Integer overflow in Mozilla ThunderbirdPriority MEDIUM 61
- TI-2018-03746 Memory corruption in Mozilla Thunderbird ESRPriority MEDIUM 48
- TI-2018-03719 Use after free in Mozilla ThunderbirdPriority MEDIUM 48
Show 2 more groups
- Advisory ·
Mozilla Firefox, Firefox ESR — RHSA-2018:1415
9 records Highest priority Priority MEDIUM 7 MEDIUM, 2 LOW
Other records, highest priority first
- TI-2018-03723 Integer overflow in Mozilla ThunderbirdPriority MEDIUM 61
- TI-2018-03746 Memory corruption in Mozilla Thunderbird ESRPriority MEDIUM 48
- TI-2018-03719 Use after free in Mozilla ThunderbirdPriority MEDIUM 48
- Advisory ·
Mozilla Firefox, Firefox ESR — DSA-4199
9 records Highest priority Priority MEDIUM 7 MEDIUM, 2 LOW
Other records, highest priority first
- TI-2018-03723 Integer overflow in Mozilla ThunderbirdPriority MEDIUM 61
- TI-2018-03746 Memory corruption in Mozilla Thunderbird ESRPriority MEDIUM 48
- TI-2018-03719 Use after free in Mozilla ThunderbirdPriority MEDIUM 48
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux Client (v. 7) | Fixed | RHSA-2018:1415 |
| Red Hat Enterprise Linux Client Optional (v. 7) | Fixed | RHSA-2018:1415 |
| Red Hat Enterprise Linux Desktop (v. 6) | Fixed | RHSA-2018:1414 |
| Red Hat Enterprise Linux Desktop Optional (v. 6) | Fixed | RHSA-2018:1414 |
| Red Hat Enterprise Linux HPC Node Optional (v. 6) | Fixed | RHSA-2018:1414 |
| Red Hat Enterprise Linux Server (v. 6) | Fixed | RHSA-2018:1414 |
| Red Hat Enterprise Linux Server (v. 7) | Fixed | RHSA-2018:1415 |
| Red Hat Enterprise Linux Server Optional (v. 6) | Fixed | RHSA-2018:1414 |
| Red Hat Enterprise Linux Server Optional (v. 7) | Fixed | RHSA-2018:1415 |
| Red Hat Enterprise Linux Workstation (v. 6) | Fixed | RHSA-2018:1414 |
| Red Hat Enterprise Linux Workstation (v. 7) | Fixed | RHSA-2018:1415 |
| Red Hat Enterprise Linux Workstation Optional (v. 6) | Fixed | RHSA-2018:1414 |
| Red Hat Enterprise Linux Workstation Optional (v. 7) | Fixed | RHSA-2018:1415 |
| Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server (v. 7) | Fixed | RHSA-2018:1415 |
| Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server Optional (v. 7) | Fixed | RHSA-2018:1415 |
Not affected: 3 products
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
Timeline
- 2026-10-02 Threatist record created from CVE-2018-5158
- 2026-10-03 Alias added: GHSA-7jg2-jgv3-fmr4
References
Advisory 10
- RHSA-2018:1415
- GLSA-201810-01
- RHSA-2018:1414
- https://www.mozilla.org/security/advisories/mfsa2018-11/
- DSA-4199
- USN-3645-1
- [debian-lts-announce] 20180511 [SECURITY] [DLA 1376-1] firefox-esr security update
- https://bugzilla.mozilla.org/show_bug.cgi?id=1452075
- https://www.mozilla.org/security/advisories/mfsa2018-12/
- https://nvd.nist.gov/vuln/detail/CVE-2018-5158
Other 6
More Mozilla Firefox vulnerabilities
- TI-2024-08981 Use after free in Mozilla Firefox KEVCVSS 3.1CRITICAL 9.8
- TI-2022-09832 Use after free in Mozilla Firefox KEVCVSS 3.1CRITICAL 9.6
- TI-2019-08769 Improper input validation in Mozilla Firefox ESR KEVCVSS 3.1CRITICAL 10.0
- TI-2010-03577 Mozilla Firefox 3.5.x through 3.5.14 and 3.6.x through 3.6.11, Thunderbird 3.1.6 before… KEVCVSS 3.1CRITICAL 9.8
- TI-2023-04799 Out-of-bounds write in Google Chrome KEVCVSS 3.1HIGH 8.8
- TI-2023-04477 Out-of-bounds write in Google Chrome KEVCVSS 3.1HIGH 8.8
Sources
- CVE-2018-5158 · CVE Program
- CVE-2018-5158 · NVD
- FIRST EPSS
- GHSA-7jg2-jgv3-fmr4 · GitHub Advisory Database · CC BY 4.0
- CVE-2018-5158 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences