CVE-2018-5158: canonical ubuntu_linux Improper Control of Generation of Code
Vulnerability summary
CVE-2018-5158 is a high (CVSS 8.8) Improper Control of Generation of Code vulnerability in canonical ubuntu_linux. EPSS estimates a 10.10% chance of exploitation in the next 30 days, higher than 95.7% of scored vulnerabilities.
Not severe (CVSS 8.8, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?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 versions- 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
EPSS trend
Probability
10.10%
Chance of exploitation in the next 30 days
Percentile
96%
Versus all other CVEs
30-day change
Decrease -0.14 pp
From 10.24% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-94Improper Control of Generation of CodeThe 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 GenerationThe 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
Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
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