CVE-2018-5158

HighCVSS 8.8/10Last modified Jun 17, 2026

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.

Metrics

CVSS 3.0 8.8/10CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Weakness enumeration

Affected software

No affected versions have been published.

Timeline

Published
Jun 11, 2018
Last modified
Jun 17, 2026
NVD status
Modified

Related CVEs from 2018

CVE-2018-51599.8An integer overflow can occur in the Skia library due to 32-bit integer use in an array without integer overflow checks, resulting in possibCVE-2018-51607.5WebRTC can use a "WrappedI420Buffer" pixel buffer but the owning image object can be freed while it is still in use. This can result in the CVE-2018-51614.3Crafted message headers can cause a Thunderbird process to hang on receiving the message. This vulnerability affects Thunderbird ESR < 52.8 CVE-2018-51627.5Plaintext of decrypted emails can leak through the src attribute of remote images, or links. This vulnerability affects Thunderbird ESR < 52CVE-2018-51638.1If a malicious attacker has used another vulnerability to gain full control over a content process, they may be able to replace the alternatCVE-2018-51646.1Content Security Policy (CSP) is not applied correctly to all parts of multipart content sent with the "multipart/x-mixed-replace" MIME typeCVE-2018-51655.3In 32-bit versions of Firefox, the Adobe Flash plugin setting for "Enable Adobe Flash protected mode" is unchecked by default even though thCVE-2018-51667.5WebExtensions can use request redirection and a "filterReponseData" filter to bypass host permission settings to redirect network traffic anCVE-2018-51674.3The web console and JavaScript debugger do not sanitize all output that can be hyperlinked. Both will display "chrome:" links as active, cliCVE-2018-51685.3Sites can bypass security checks on permissions to install lightweight themes by manipulating the "baseURI" property of the theme element. TCVE-2018-51696.5If manipulated hyperlinked text with "chrome:" URL contained in it is dragged and dropped on the "home" icon, the home page can be reset to CVE-2018-51704.3It is possible to spoof the filename of an attachment and display an arbitrary attachment name. This could lead to a user opening a remote a
CVE-2018-5158: High severity, CVSS 8.8 | Vulnix