ghsa-wgrm-67xf-hhpq
Vulnerability from github
Published
2024-05-07 10:25
Modified
2025-01-22 18:45
Summary
PDF.js vulnerable to arbitrary JavaScript execution upon opening a malicious PDF
Details

Impact

If pdf.js is used to load a malicious PDF, and PDF.js is configured with isEvalSupported set to true (which is the default value), unrestricted attacker-controlled JavaScript will be executed in the context of the hosting domain.

Patches

The patch removes the use of eval: https://github.com/mozilla/pdf.js/pull/18015

Workarounds

Set the option isEvalSupported to false.

References

https://bugzilla.mozilla.org/show_bug.cgi?id=1893645

Show details on source website


{
   affected: [
      {
         database_specific: {
            last_known_affected_version_range: "<= 4.1.392",
         },
         package: {
            ecosystem: "npm",
            name: "pdfjs-dist",
         },
         ranges: [
            {
               events: [
                  {
                     introduced: "0",
                  },
                  {
                     fixed: "4.2.67",
                  },
               ],
               type: "ECOSYSTEM",
            },
         ],
      },
   ],
   aliases: [
      "CVE-2024-4367",
   ],
   database_specific: {
      cwe_ids: [],
      github_reviewed: true,
      github_reviewed_at: "2024-05-07T10:25:08Z",
      nvd_published_at: "2024-05-14T18:15:12Z",
      severity: "HIGH",
   },
   details: "### Impact\nIf pdf.js is used to load a malicious PDF, and PDF.js is configured with `isEvalSupported` set to `true` (which is the default value), unrestricted attacker-controlled JavaScript will be executed in the context of the hosting domain.\n\n### Patches\nThe patch removes the use of `eval`:\nhttps://github.com/mozilla/pdf.js/pull/18015\n\n### Workarounds\nSet the option `isEvalSupported` to `false`. \n\n### References\nhttps://bugzilla.mozilla.org/show_bug.cgi?id=1893645",
   id: "GHSA-wgrm-67xf-hhpq",
   modified: "2025-01-22T18:45:03Z",
   published: "2024-05-07T10:25:08Z",
   references: [
      {
         type: "WEB",
         url: "https://github.com/mozilla/pdf.js/security/advisories/GHSA-wgrm-67xf-hhpq",
      },
      {
         type: "ADVISORY",
         url: "https://nvd.nist.gov/vuln/detail/CVE-2024-4367",
      },
      {
         type: "WEB",
         url: "https://github.com/mozilla/pdf.js/pull/18015",
      },
      {
         type: "WEB",
         url: "https://github.com/mozilla/pdf.js/commit/85e64b5c16c9aaef738f421733c12911a441cec6",
      },
      {
         type: "WEB",
         url: "https://bugzilla.mozilla.org/show_bug.cgi?id=1893645",
      },
      {
         type: "PACKAGE",
         url: "https://github.com/mozilla/pdf.js",
      },
      {
         type: "WEB",
         url: "https://lists.debian.org/debian-lts-announce/2024/05/msg00010.html",
      },
      {
         type: "WEB",
         url: "https://lists.debian.org/debian-lts-announce/2024/05/msg00012.html",
      },
      {
         type: "WEB",
         url: "https://www.mozilla.org/security/advisories/mfsa2024-21",
      },
      {
         type: "WEB",
         url: "https://www.mozilla.org/security/advisories/mfsa2024-22",
      },
      {
         type: "WEB",
         url: "https://www.mozilla.org/security/advisories/mfsa2024-23",
      },
      {
         type: "WEB",
         url: "http://seclists.org/fulldisclosure/2024/Aug/30",
      },
   ],
   schema_version: "1.4.0",
   severity: [
      {
         score: "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
         type: "CVSS_V3",
      },
   ],
   summary: "PDF.js vulnerable to arbitrary JavaScript execution upon opening a malicious PDF",
}


Log in or create an account to share your comment.

Security Advisory comment format.

This schema specifies the format of a comment related to a security advisory.

UUIDv4 of the comment
UUIDv4 of the Vulnerability-Lookup instance
When the comment was created originally
When the comment was last updated
Title of the comment
Description of the comment
The identifier of the vulnerability (CVE ID, GHSA-ID, PYSEC ID, etc.).



Tags
Taxonomy of the tags.


Loading…

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.