High severity8.8NVD Advisory· Published Jun 11, 2018· Updated Jun 17, 2026
CVE-2018-5158
CVE-2018-5158
Description
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
pdfjs-distnpm | >= 2.0.0, < 2.0.550 | 2.0.550 |
pdfjs-distnpm | < 1.10.100 | 1.10.100 |
Affected products
37- ghsa-coords35 versionspkg:npm/pdfjs-distpkg:rpm/opensuse/firefox-esr&distro=openSUSE%20Tumbleweedpkg:rpm/opensuse/MozillaFirefox&distro=openSUSE%20Tumbleweedpkg:rpm/suse/MozillaFirefox&distro=HPE%20Helion%20OpenStack%208pkg:rpm/suse/MozillaFirefox&distro=SUSE%20Enterprise%20Storage%204pkg:rpm/suse/MozillaFirefox&distro=SUSE%20Enterprise%20Storage%205pkg:rpm/suse/MozillaFirefox&distro=SUSE%20Linux%20Enterprise%20Desktop%2012%20SP3pkg:rpm/suse/MozillaFirefox&distro=SUSE%20Linux%20Enterprise%20Desktop%2012%20SP4pkg:rpm/suse/MozillaFirefox&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Desktop%20Applications%2015pkg:rpm/suse/MozillaFirefox&distro=SUSE%20Linux%20Enterprise%20Point%20of%20Sale%2011%20SP3pkg:rpm/suse/MozillaFirefox&distro=SUSE%20Linux%20Enterprise%20Server%2011%20SP3-LTSSpkg:rpm/suse/MozillaFirefox&distro=SUSE%20Linux%20Enterprise%20Server%2011%20SP3-TERADATApkg:rpm/suse/MozillaFirefox&distro=SUSE%20Linux%20Enterprise%20Server%2011%20SP4pkg:rpm/suse/MozillaFirefox&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP1-LTSSpkg:rpm/suse/MozillaFirefox&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP2-BCLpkg:rpm/suse/MozillaFirefox&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP2-LTSSpkg:rpm/suse/MozillaFirefox&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP3pkg:rpm/suse/MozillaFirefox&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP3-BCLpkg:rpm/suse/MozillaFirefox&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP3-LTSSpkg:rpm/suse/MozillaFirefox&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP4pkg:rpm/suse/MozillaFirefox&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5pkg:rpm/suse/MozillaFirefox&distro=SUSE%20Linux%20Enterprise%20Server%2012-LTSSpkg:rpm/suse/MozillaFirefox&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2011%20SP4pkg:rpm/suse/MozillaFirefox&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP1pkg:rpm/suse/MozillaFirefox&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP2pkg:rpm/suse/MozillaFirefox&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP3pkg:rpm/suse/MozillaFirefox&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP4pkg:rpm/suse/MozillaFirefox&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP5pkg:rpm/suse/MozillaFirefox&distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2011%20SP4pkg:rpm/suse/MozillaFirefox&distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP3pkg:rpm/suse/MozillaFirefox&distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP4pkg:rpm/suse/MozillaFirefox&distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP5pkg:rpm/suse/MozillaFirefox&distro=SUSE%20OpenStack%20Cloud%207pkg:rpm/suse/MozillaFirefox&distro=SUSE%20OpenStack%20Cloud%208pkg:rpm/suse/MozillaFirefox&distro=SUSE%20OpenStack%20Cloud%20Crowbar%208
>= 2.0.0, < 2.0.550+ 34 more
- (no CPE)range: >= 2.0.0, < 2.0.550
- (no CPE)range: < 128.5.1-1.1
- (no CPE)range: < 92.0-1.2
- (no CPE)range: < 68.2.0-109.95.2
- (no CPE)range: < 52.8.0esr-109.31.2
- (no CPE)range: < 68.2.0-109.95.2
- (no CPE)range: < 52.8.0esr-109.31.2
- (no CPE)range: < 68.2.0-109.95.2
- (no CPE)range: < 52.9.0esr-3.7.12
- (no CPE)range: < 52.8.0esr-72.32.1
- (no CPE)range: < 52.8.0esr-72.32.1
- (no CPE)range: < 52.8.0esr-72.32.1
- (no CPE)range: < 52.8.0esr-72.32.1
- (no CPE)range: < 52.8.0esr-109.31.2
- (no CPE)range: < 52.8.0esr-109.31.2
- (no CPE)range: < 52.8.0esr-109.31.2
- (no CPE)range: < 52.8.0esr-109.31.2
- (no CPE)range: < 68.2.0-109.95.2
- (no CPE)range: < 68.2.0-109.95.2
- (no CPE)range: < 68.2.0-109.95.2
- (no CPE)range: < 68.2.0-109.95.2
- (no CPE)range: < 52.8.0esr-109.31.2
- (no CPE)range: < 52.8.0esr-72.32.1
- (no CPE)range: < 52.8.0esr-109.31.2
- (no CPE)range: < 52.8.0esr-109.31.2
- (no CPE)range: < 52.8.0esr-109.31.2
- (no CPE)range: < 68.2.0-109.95.2
- (no CPE)range: < 68.2.0-109.95.2
- (no CPE)range: < 52.8.0esr-72.32.1
- (no CPE)range: < 52.8.0esr-109.31.2
- (no CPE)range: < 68.2.0-109.95.2
- (no CPE)range: < 68.2.0-109.95.2
- (no CPE)range: < 52.8.0esr-109.31.2
- (no CPE)range: < 68.2.0-109.95.2
- (no CPE)range: < 68.2.0-109.95.2
unspecified+ 1 more
- (no CPE)range: unspecified
- (no CPE)range: unspecified
Patches
Vulnerability mechanics
References
18- www.securityfocus.com/bid/104136nvdThird Party AdvisoryVDB EntryWEB
- www.securitytracker.com/id/1040896nvdThird Party AdvisoryVDB EntryWEB
- access.redhat.com/errata/RHSA-2018:1414nvdThird Party AdvisoryWEB
- access.redhat.com/errata/RHSA-2018:1415nvdThird Party AdvisoryWEB
- bugzilla.mozilla.org/show_bug.cginvdIssue TrackingVendor AdvisoryWEB
- github.com/advisories/GHSA-7jg2-jgv3-fmr4ghsaADVISORY
- lists.debian.org/debian-lts-announce/2018/05/msg00007.htmlnvdMailing ListThird Party AdvisoryWEB
- nvd.nist.gov/vuln/detail/CVE-2018-5158ghsaADVISORY
- security.gentoo.org/glsa/201810-01nvdThird Party AdvisoryWEB
- usn.ubuntu.com/3645-1/nvdThird Party Advisory
- www.debian.org/security/2018/dsa-4199nvdThird Party AdvisoryWEB
- www.mozilla.org/security/advisories/mfsa2018-11/nvdVendor Advisory
- www.mozilla.org/security/advisories/mfsa2018-12/nvdVendor Advisory
- github.com/mozilla/pdf.js/commit/2dc4af525d1612c98afcd1e6bee57d4788f78f97ghsaWEB
- github.com/mozilla/pdf.js/pull/9659ghsaWEB
- usn.ubuntu.com/3645-1ghsaWEB
- www.mozilla.org/security/advisories/mfsa2018-11ghsaWEB
- www.mozilla.org/security/advisories/mfsa2018-12ghsaWEB
News mentions
0No linked articles in our index yet.