{"id":"CVE-2018-5158","published":"2018-06-11T21:00:00Z","modified":"2024-08-05T05:26:47Z","title":"The PDF viewer does not sufficiently sanitize PostScript calculator functions, allowing malicious JavaScript to be…","vendor":"Mozilla","product":"Firefox ESR","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.10097,"percentile":0.95753,"provenance":"source"},"cwes":[],"references":[{"url":"https://access.redhat.com/errata/RHSA-2018:1415","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://security.gentoo.org/glsa/201810-01","tags":["vendor-advisory","x_refsource_GENTOO"]},{"url":"https://access.redhat.com/errata/RHSA-2018:1414","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://www.mozilla.org/security/advisories/mfsa2018-11/","tags":["x_refsource_CONFIRM"]},{"url":"http://www.securitytracker.com/id/1040896","tags":["vdb-entry","x_refsource_SECTRACK"]},{"url":"https://www.debian.org/security/2018/dsa-4199","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://usn.ubuntu.com/3645-1/","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"https://lists.debian.org/debian-lts-announce/2018/05/msg00007.html","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://bugzilla.mozilla.org/show_bug.cgi?id=1452075","tags":["x_refsource_CONFIRM"]},{"url":"https://www.mozilla.org/security/advisories/mfsa2018-12/","tags":["x_refsource_CONFIRM"]},{"url":"http://www.securityfocus.com/bid/104136","tags":["vdb-entry","x_refsource_BID"]}],"priority":{"score":24.2,"factors":[{"name":"EPSS percentile","points":19.15},{"name":"Public exploit code","points":5.0}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2024-01-26","earliestUrl":"https://github.com/puzzle-tools/-CVE-2018-5158.pdf","repos":[{"name":"puzzle-tools/-CVE-2018-5158.pdf","url":"https://github.com/puzzle-tools/-CVE-2018-5158.pdf","stars":1,"created":"2024-01-26"}]},"first":{"date":"2024-01-26","source":"PoC-in-GitHub","url":"https://github.com/puzzle-tools/-CVE-2018-5158.pdf"},"provenance":"source"},"vendorSlug":"mozilla","affectedVersions":[{"vendor":"Mozilla","product":"Firefox ESR","versions":[">= unspecified, < 52.8"]},{"vendor":"Mozilla","product":"Firefox","versions":[">= unspecified, < 60"]}],"affected":[{"ecosystem":"npm","package":"pdfjs-dist","vulnerableRanges":[">=2.0.0, <2.0.550","<1.10.100"],"patched":["2.0.550","1.10.100"],"from":["GHSA-7jg2-jgv3-fmr4"],"provenance":"source"}],"summary":{"text":"The PDF viewer in Mozilla Firefox ESR (and Firefox) fails to sufficiently sanitize PostScript calculator functions, so malicious JavaScript can be injected via a crafted PDF file. An attacker who supplies such a PDF can get that JavaScript to run with the permissions of the PDF viewer's worker, which requires the victim to open the malicious file.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:51:50Z"},"euvd":{"id":"EUVD-2022-3023","exploited":false,"provenance":"source"}}