CVE-2018-5158: Canonical Ubuntu Linux

High severity, CVSS 8.8. EPSS: 10% probability of exploitation activity in the next 30 days.

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

The record states a fixed version for each range of affected versions. Update to the one for the range your version is in: a later release on another branch may not have the fix.

  • Mozilla Firefox, before 52.8.0: fixed in 52.8.0
  • Mozilla Firefox, before 60.0: fixed in 60.0

Affected products

Affected packages

Published 2018-06-11. Last modified 2026-06-17.