PT-2018-2992 · Mozilla+5 · Firefox Esr+7
Wladimir Palant
·
Published
2018-05-09
·
Updated
2024-12-12
·
CVE-2018-5158
CVSS v3.1
8.8
High
| Vector | AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
Firefox ESR versions prior to 52.8
Firefox versions prior to 60
PDF.js versions prior to 2.0.550
Description
The issue is related to errors in code generation management in the PDF Viewer component of Firefox ESR and Firefox browsers. It allows a remote attacker to execute arbitrary code using a specially crafted PDF file. The PDF viewer does not sufficiently sanitize PostScript calculator functions, enabling 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.
Recommendations
For Firefox ESR versions prior to 52.8, update to version 52.8 or later.
For Firefox versions prior to 60, update to version 60 or later.
For PDF.js versions prior to 2.0.550, update to version 2.0.550 or later.
Fix
Code Injection
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Alt Linux
Centos
Firefox
Firefox Esr
Pdf.Js
Red Hat
Suse
Ubuntu