CVE-2018-5158

HIGH

Firefox ESR < 52.8-Firefox < 60 - Code Injection

Title source: llm

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.

Exploits (1)

nomisec NO CODE 1 stars
by puzzle-tools · poc
https://github.com/puzzle-tools/-CVE-2018-5158.pdf

Scores

CVSS v3 8.8
EPSS 0.4303
EPSS Percentile 97.5%
Attack Vector NETWORK
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Details

CWE
CWE-94
Status published
Products (19)
canonical/ubuntu_linux 14.04
canonical/ubuntu_linux 16.04
canonical/ubuntu_linux 17.10
canonical/ubuntu_linux 18.04
debian/debian_linux 7.0
debian/debian_linux 8.0
debian/debian_linux 9.0
mozilla/firefox < 52.8.0
npm/pdfjs-dist 2.0.0 - 2.0.550npm
redhat/enterprise_linux_desktop 6.0
... and 9 more
Published Jun 11, 2018
Tracked Since Feb 18, 2026