{"cve":"CVE-2018-5158","nvd":{"published":"2018-06-11T21:29:15.280","modified":"2026-06-17T01:59:44.243","status":"Modified","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_v4":null,"cvss_v3":{"version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8},"cwes":["CWE-94"],"references":["http://www.securityfocus.com/bid/104136","http://www.securitytracker.com/id/1040896","https://access.redhat.com/errata/RHSA-2018:1414","https://access.redhat.com/errata/RHSA-2018:1415","https://bugzilla.mozilla.org/show_bug.cgi?id=1452075"],"products":["canonical:ubuntu_linux","debian:debian_linux","mozilla:firefox","redhat:enterprise_linux_desktop","redhat:enterprise_linux_server","redhat:enterprise_linux_server_aus","redhat:enterprise_linux_server_eus","redhat:enterprise_linux_server_tus","redhat:enterprise_linux_workstation"],"source":"nvd","synced_at":"2026-10-19T20:51:47.459859389+00:00"},"epss":{"cve":"CVE-2018-5158","score":0.1024,"percentile":0.95683,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-7jg2-jgv3-fmr4","url":"https://osv.dev/vulnerability/GHSA-7jg2-jgv3-fmr4","summary":"Malicious PDF can inject JavaScript into PDF Viewer","modified":"2024-05-28T21:12:08.572660Z","packages":[{"ecosystem":"npm","name":"pdfjs-dist","purl":"pkg:npm/pdfjs-dist","ranges":[">=2.0.0 <2.0.550"],"fixed":["2.0.550"]},{"ecosystem":"npm","name":"pdfjs-dist","purl":"pkg:npm/pdfjs-dist","ranges":["<1.10.100"],"fixed":["1.10.100"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}