8.8

CVE-2018-5158: canonical ubuntu_linux Improper Control of Generation of Code

Modified
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) 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.

Priority
Routine

Not severe (CVSS 8.8, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
8.8/10
010
High · v3.0 (NVD)
EPSS score
10.10%
0%100%
Medium · -0.14 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 14 · Related 8

Timeline

  1. 11-06-2018
    PublishedVulnerability first disclosed.
  2. 05-08-2024
    Last 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

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

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.

Redhat6 products
Debian2 products
Mozilla2 products
Canonical1 product
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
Show all 24 references