CVE-2018-5158: canonical ubuntu_linux Code Injection
CVSS: 8.8v3.0HighModified
AliasesUBUNTU-CVE-2018-5158DEBIAN-CVE-2018-5158GHSA-7jg2-jgv3-fmr4
Published 11-06-2018Last modified 05-08-2024
Vulnerability summary
CVE-2018-5158 is a high (CVSS 8.8) Code Injection vulnerability in canonical ubuntu_linux. EPSS estimates a 10.24% chance of exploitation in the next 30 days, higher than 95.6% of scored vulnerabilities.
CVSS score
8.8/10
010
High · v3.0 (NVD)EPSS score
10.24%
0%100%
Medium · -0.20 pp in 30 daysKEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded
Advisory lineage
Upstream 0 · Downstream 14 · Related 8Timeline
- 11-06-2018PublishedVulnerability first disclosed.
- 05-08-2024Last modifiedVulnerability information updated.
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 metrics
6 scores · 5 sources · 3 versionsMedium 6.4Preferred score · wordfence (Source)
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:NSourcesSingle source
High 8.8Preferred score · NVD (NIST)
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HSourcesAll 4 agree
- OSV · UbuntuEcosystem advisory · calculated8.8HighCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated8.8HighCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · NpmEcosystem advisory · calculated8.8HighCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Medium 6.8Preferred score · NVD (NIST)
AV:N/AC:M/Au:N/C:P/I:P/A:PSourcesSingle source
EPSS trend
Probability
10.24%
Chance of exploitation in the next 30 days
Percentile
96%
Versus all other CVEs
30-day change
-0.20 pp
From 10.45% on 18-09-2026
18-09-202618-10-2026
EPSS score10.24%
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-94Improper Control of Generation of Code ('Code Injection')The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.
- CWE-79Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
Affected systems
Redhat6 products
- enterprise_linux_desktop6.0 | 7.0
- enterprise_linux_server6.0 | 7.0
- enterprise_linux_server_aus7.6
- enterprise_linux_server_eus7.5 | 7.6
- enterprise_linux_server_tus7.6
Debian2 products
- firefox-esr< 52.8.0esr-1
- debian_linuxEOL7.0 | 8.0 | 9.0
Mozilla2 products
- firefox≥ unspecified, < 60 | < 52.8.0 | < 60.0
- firefox_esr≥ unspecified, < 52.8
Canonical1 product
- ubuntu_linuxEOL14.04 | 16.04 | 17.10 | 18.04
Npm1 product
- pdfjs-dist≥ 2.0.0, < 2.0.550 | < 1.10.100
Ubuntu1 product
- firefox< 60.0+build2-0ubuntu0.14.04.1 | < 60.0+build2-0ubuntu0.16.04.1 | < 60.0+build2-0ubuntu1
Wordpress1 product
- algori-pdf-viewer≤ 1.0.7 (fixed in 1.0.8)
7 vendors · 14 products
References
24 links- lists.debian.org/debian-lts-announce/2018/05/msg00007.htmlMailing ListX Refsource MLISTThird Party AdvisoryWEB
Show all 24 references
- github.com/mozilla/pdf.jsPACKAGE