CVEfocus › CVE database › CVE-2018-5158

CVE-2018-5158

CVSS 8.8 HighEPSS 10.1% (higher than 96% of CVEs)Published 2018-06-11Updated 2024-08-05Assigner: mozilla

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.

What to do

Likely to be exploited: EPSS gives a 10% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.

Fixed builds are available from Debian, Red Hat, Ubuntu, npm: 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

9Fixed
3Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 18.04firefoxFixed60.0+build2-0ubuntu1UBUNTU-CVE-2018-5158
Ubuntu 16.04firefoxFixed60.0+build2-0ubuntu0.16.04.1UBUNTU-CVE-2018-5158
Ubuntu 14.04firefoxFixed60.0+build2-0ubuntu0.14.04.1UBUNTU-CVE-2018-5158
Debian 14firefox-esrFixed52.8.0esr-1DEBIAN-CVE-2018-5158
Debian 13firefox-esrFixed52.8.0esr-1DEBIAN-CVE-2018-5158
Debian 12firefox-esrFixed52.8.0esr-1DEBIAN-CVE-2018-5158
Red Hat Enterprise Linux 8firefoxNot affected
Red Hat Enterprise Linux 7firefoxFixed0:52.8.0-1.el7_5RHSA-2018:1415
Red Hat Enterprise Linux 7thunderbirdNot affected
Red Hat Enterprise Linux 6firefoxFixed0:52.8.0-1.el6_9RHSA-2018:1414
Red Hat Enterprise Linux 6thunderbirdNot affected
npm librarypdfjs-distFixed1.10.100GHSA-7jg2-jgv3-fmr4

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.

Vendor advisories:

References

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.