← Vulnerability feed

Vulnerability record · CVE-2018-5158 · published 11 June 2018

CVE-2018-5158: Debian linux code injection vulnerability

Debian · Debian Linux

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.

8.8 CVSS 3.0 High EPSS 10% · top 4.4% CWE-94 · Code injection
8.8CVSS 3.0 base score, v2 6.8
10%EPSS exploitation probability, 30 days
NoNot in CISA KEV
9Affected product versions listed by NVD
22References
17 Jun 2026Last modified by NVD

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.

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

Affected products

9 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
http://www.securityfocus.com/bid/104136 Third Party AdvisoryVDB Entry
http://www.securitytracker.com/id/1040896 Third Party AdvisoryVDB Entry
https://access.redhat.com/errata/RHSA-2018:1414 Third Party Advisory
https://access.redhat.com/errata/RHSA-2018:1415 Third Party Advisory
https://bugzilla.mozilla.org/show_bug.cgi?id=1452075 Issue TrackingVendor Advisory
https://lists.debian.org/debian-lts-announce/2018/05/msg00007.html Mailing ListThird Party Advisory
https://security.gentoo.org/glsa/201810-01 Third Party Advisory
https://usn.ubuntu.com/3645-1/ Third Party Advisory
https://www.debian.org/security/2018/dsa-4199 Third Party Advisory
https://www.mozilla.org/security/advisories/mfsa2018-11/ Vendor Advisory
https://www.mozilla.org/security/advisories/mfsa2018-12/ Vendor Advisory
http://www.securityfocus.com/bid/104136 Third Party AdvisoryVDB Entry
http://www.securitytracker.com/id/1040896 Third Party AdvisoryVDB Entry
https://access.redhat.com/errata/RHSA-2018:1414 Third Party Advisory
https://access.redhat.com/errata/RHSA-2018:1415 Third Party Advisory
https://bugzilla.mozilla.org/show_bug.cgi?id=1452075 Issue TrackingVendor Advisory
https://lists.debian.org/debian-lts-announce/2018/05/msg00007.html Mailing ListThird Party Advisory
https://security.gentoo.org/glsa/201810-01 Third Party Advisory
https://usn.ubuntu.com/3645-1/ Third Party Advisory
https://www.debian.org/security/2018/dsa-4199 Third Party Advisory
https://www.mozilla.org/security/advisories/mfsa2018-11/ Vendor Advisory
https://www.mozilla.org/security/advisories/mfsa2018-12/ Vendor Advisory

Track CVE-2018-5158 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

10.0CVE-2025-32433Erlang/OTP SSH server missing authentication allows remote code executionErlang/OTP SSH servers before OTP-27.3.3, OTP-26.2.5.11 and OTP-25.3.2.20 mishandle SSH protocol messages, letting an unauthenticated attacker execut…KEVEPSS 99%analysed10.0CVE-2025-24201Apple WebKit out-of-bounds write allows sandbox escapeCVE-2025-24201 is an out-of-bounds write in Apple's WebKit that was addressed with improved checks. Maliciously crafted web content may break out of …KEVEPSS 3.8%analysed10.0CVE-2021-44228Apache Log4j2 JNDI lookup remote code executionApache Log4j2 versions 2.0-beta9 through 2.15.0 (excluding 2.12.2, 2.12.3, and 2.3.1) do not protect against attacker-controlled LDAP and other JNDI …KEVEPSS 100%analysed10.0CVE-2019-11708Mozilla Firefox and Thunderbird sandbox escape via Prompt:Open IPC validation flawThe Prompt:Open IPC message between child and parent processes does not sufficiently vet its parameters, letting a compromised child process cause th…KEVEPSS 56%analysed9.8CVE-2026-24061GNU Inetutils telnetd argument injection allows remote auth bypasstelnetd in GNU Inetutils through 2.7 fails to sanitize the USER environment variable, so a value such as "-f root" is passed as an argument to login …KEVEPSS 99%analysed9.8CVE-2025-39682Linux kernel TLS zero-length record handling flaw on rx_listThe Linux kernel TLS receive path mishandles zero-length records that arrive from the rx_list, breaking the assumption that a record type change cann…KEVEPSS 2.9%analysed9.8CVE-2025-24813Apache Tomcat Default Servlet path equivalence enables RCE and file disclosureApache Tomcat mishandles path equivalence for names containing an internal dot, letting a remote unauthenticated attacker write files through the Def…KEVEPSS 100%analysed9.8CVE-2024-9680Mozilla Firefox and Thunderbird use-after-free in Animation timelinesA use-after-free flaw in Animation timelines allows an attacker to execute code in the content process of Firefox and Thunderbird. Mozilla reports ex…KEVEPSS 23%analysed

Source: NIST National Vulnerability Database (record CVE-2018-5158), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.