patchminder
Proof of concept · GitHub CVE-2018-5158

Vulnerabilityin Mozilla Firefox ESR.

Published 11 Jun 2018 · Updated 5 Aug 2024 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Proof of concept public (GitHub).

Attack code is public
Severity
High 8.8
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.0 · no login needed
Attack likelihood
High
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 10.1% chance in 30 days · 4 Dec 2026
Fix
Available
Fixed versions listed below
In plain words

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.

What to do now
  • Upgrade Firefox ESR to 52.8 or later.
  • Upgrade Firefox to 60 or later.
  • Upgrade pdfjs-dist (npm) to 1.10.100, 2.0.550 or later, whichever matches your release line.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
Firefox ESR
before 52.8
52.8
CVE record
Firefox
before 60
60
CVE record
pdfjs-dist (npm)
2.0.0 to before 2.0.550
2.0.550
GitHub advisory
pdfjs-dist (npm)
before 1.10.100
1.10.100
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 3 Jan 2018
    CVE ID reserved by mozilla.
  2. 11 Jun 2018
    Published in the CVE List.
  3. 26 Jan 2024
    First public proof of concept on GitHub.
  4. 5 Aug 2024
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Proof of concept (GitHub).

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
None known
GitHub proof of concepts
1 repository
GitHubno warning signs foundpuzzle-tools/-CVE-2018-5158.pdf1 stars · created 26 Jan 2024a simple PDF file for CVE-2018-5158

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other Firefox ESR vulnerabilities

References
Cite this page

Patchminder. CVE-2018-5158: Vulnerability in Mozilla Firefox ESR. https://patchminder.com/cve/cve-2018-5158/ (accessed 5 December 2026).