VULNERABILITY INTELLIGENCE

CVE-2018-5158

CVSS score8.8 HIGH
EPSS probability10.24%
CISA KEVNot currently listed
Published2018-06-11
Last modified2026-06-17
CVSS vectorCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

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.

Weakness classification

  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Primary references