{"id":"GHSA-7jg2-jgv3-fmr4","summary":"Malicious PDF can inject JavaScript into PDF Viewer","details":"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 \u003c 52.8, Firefox \u003c 60 and PDF.js \u003c 2.0.550.","aliases":["CVE-2018-5158"],"modified":"2024-05-28T21:12:18.151577Z","published":"2022-05-14T01:22:02Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2024-05-28T20:43:53Z","nvd_published_at":"2018-06-11T21:29:00Z","cwe_ids":["CWE-94"],"severity":"HIGH"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2018-5158"},{"type":"WEB","url":"https://github.com/mozilla/pdf.js/pull/9659"},{"type":"WEB","url":"https://github.com/mozilla/pdf.js/commit/2dc4af525d1612c98afcd1e6bee57d4788f78f97"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2018:1414"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2018:1415"},{"type":"WEB","url":"https://bugzilla.mozilla.org/show_bug.cgi?id=1452075"},{"type":"PACKAGE","url":"https://github.com/mozilla/pdf.js"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2018/05/msg00007.html"},{"type":"WEB","url":"https://security.gentoo.org/glsa/201810-01"},{"type":"WEB","url":"https://usn.ubuntu.com/3645-1"},{"type":"WEB","url":"https://www.debian.org/security/2018/dsa-4199"},{"type":"WEB","url":"https://www.mozilla.org/security/advisories/mfsa2018-11"},{"type":"WEB","url":"https://www.mozilla.org/security/advisories/mfsa2018-12"},{"type":"WEB","url":"http://www.securityfocus.com/bid/104136"},{"type":"WEB","url":"http://www.securitytracker.com/id/1040896"}],"affected":[{"package":{"name":"pdfjs-dist","ecosystem":"npm","purl":"pkg:npm/pdfjs-dist"},"ranges":[{"type":"SEMVER","events":[{"introduced":"2.0.0"},{"fixed":"2.0.550"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-7jg2-jgv3-fmr4/GHSA-7jg2-jgv3-fmr4.json"}},{"package":{"name":"pdfjs-dist","ecosystem":"npm","purl":"pkg:npm/pdfjs-dist"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.10.100"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-7jg2-jgv3-fmr4/GHSA-7jg2-jgv3-fmr4.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"}]}