# CVE-2018-5158

- Priority: **Routine**
- Reason: Not severe (CVSS 8.8, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2018-06-11 · Modified: 2024-08-05
- Aliases: UBUNTU-CVE-2018-5158, DEBIAN-CVE-2018-5158, GHSA-7jg2-jgv3-fmr4
- Record: https://cvemate.com/vulnerability/CVE-2018-5158 · JSON: https://cvemate.com/vulnerability/CVE-2018-5158/json

## Description

```text
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.
```

## Signals

- CVSS: 8.8 high (v3.0, NVD) CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS: 10.097%, percentile 95.77%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- canonical ubuntu\_linux: 14.04 \| 16.04 \| 17.10 \| 18.04
- debian firefox-esr (Debian): \< 52.8.0esr-1
- ubuntu firefox (Ubuntu): \< 60.0+build2-0ubuntu0.14.04.1 \| \< 60.0+build2-0ubuntu0.16.04.1 \| \< 60.0+build2-0ubuntu1
- debian debian\_linux: 7.0 \| 8.0 \| 9.0
- mozilla firefox: ≥ unspecified, \< 60 \| \< 52.8.0 \| \< 60.0
- mozilla firefox esr: ≥ unspecified, \< 52.8
- Npm pdfjs-dist (Npm): ≥ 2.0.0, \< 2.0.550 \| \< 1.10.100
- redhat enterprise\_linux\_desktop: 6.0 \| 7.0
- redhat enterprise\_linux\_server: 6.0 \| 7.0
- redhat enterprise\_linux\_server\_aus: 7.6
- redhat enterprise\_linux\_server\_eus: 7.5 \| 7.6
- redhat enterprise\_linux\_server\_tus: 7.6
- redhat enterprise\_linux\_workstation: 6.0 \| 7.0
- wordpress algori-pdf-viewer: ≤ 1.0.7 (fixed in 1.0.8)

## References (first 20 of 24)

- <https://access.redhat.com/errata/RHSA-2018:1415>
- <https://security.gentoo.org/glsa/201810-01>
- <https://access.redhat.com/errata/RHSA-2018:1414>
- <https://www.mozilla.org/security/advisories/mfsa2018-11/>
- <http://www.securitytracker.com/id/1040896>
- <https://www.debian.org/security/2018/dsa-4199>
- <https://usn.ubuntu.com/3645-1/>
- <https://lists.debian.org/debian-lts-announce/2018/05/msg00007.html>
- <https://bugzilla.mozilla.org/show_bug.cgi?id=1452075>
- <https://www.mozilla.org/security/advisories/mfsa2018-12/>
- <http://www.securityfocus.com/bid/104136>
- <https://ubuntu.com/security/CVE-2018-5158>
- <https://www.mozilla.org/en-US/security/advisories/mfsa2018-11/#CVE-2018-5158>
- <https://ubuntu.com/security/notices/USN-3645-1>
- <https://www.cve.org/CVERecord?id=CVE-2018-5158>
- <https://security-tracker.debian.org/tracker/CVE-2018-5158>
- <https://nvd.nist.gov/vuln/detail/CVE-2018-5158>
- <https://github.com/mozilla/pdf.js/pull/9659>
- <https://github.com/mozilla/pdf.js/commit/2dc4af525d1612c98afcd1e6bee57d4788f78f97>
- <https://github.com/mozilla/pdf.js>

---

Data as of 2026-12-05T03:54:26.150Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
