Skip to main content
← All vulnerabilities
CVE-2018-5158GHSA-7JG2-JGV3-FMR4

The PDF viewer does not sufficiently sanitize PostScript calculator functions, allowing malicious JavaScript to be injected through a crafte

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 52.8, 60, 2.0.550, 1.10.100
1 proof of concept on GitHub

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.

Timeline

  1. CVE published
  2. Record last updated
  3. EPSS reached 10%

    FIRST estimates at least a 10% chance of exploitation in the next 30 days

Affected versions

  • Mozilla Firefox ESR

    fixed in 52.8

  • Mozilla Firefox

    fixed in 60

  • pdfjs-distnpm

    From 2.0.0 · fixed in 2.0.550

  • pdfjs-distnpm

    fixed in 1.10.100

References 12

access.redhat.com

security.gentoo.org

mozilla.org

securitytracker.com

debian.org

usn.ubuntu.com

lists.debian.org

bugzilla.mozilla.org

securityfocus.com

GitHub · puzzle-tools/-CVE-2018-5158.pdf