ghsa-7jg2-jgv3-fmr4
Vulnerability from github
Published
2022-05-14 01:22
Modified
2024-05-28 20:43
Severity ?
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 < 52.8, Firefox < 60 and PDF.js < 2.0.550.
{ "affected": [ { "package": { "ecosystem": "npm", "name": "pdfjs-dist" }, "ranges": [ { "events": [ { "introduced": "2.0.0" }, { "fixed": "2.0.550" } ], "type": "ECOSYSTEM" } ] }, { "package": { "ecosystem": "npm", "name": "pdfjs-dist" }, "ranges": [ { "events": [ { "introduced": "0" }, { "fixed": "1.10.100" } ], "type": "ECOSYSTEM" } ] } ], "aliases": [ "CVE-2018-5158" ], "database_specific": { "cwe_ids": [ "CWE-94" ], "github_reviewed": true, "github_reviewed_at": "2024-05-28T20:43:53Z", "nvd_published_at": "2018-06-11T21:29:00Z", "severity": "HIGH" }, "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.", "id": "GHSA-7jg2-jgv3-fmr4", "modified": "2024-05-28T20:43:53Z", "published": "2022-05-14T01:22:02Z", "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" } ], "schema_version": "1.4.0", "severity": [ { "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H", "type": "CVSS_V3" } ], "summary": "Malicious PDF can inject JavaScript into PDF Viewer" }
Loading...
Loading...
Sightings
Author | Source | Type | Date |
---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.