high8.8Public exploit code
CVE-2024-4367
PDF.js vulnerable to arbitrary JavaScript execution upon opening a malicious PDF
Public exploit code
Working exploit or proof of concept code has been published for this vulnerability. Treat unpatched systems as at risk.
- Firefox ESR 115.11 - PDF.js Arbitrary JavaScript execution2025-04-22 · remote · multiple
Impact
### 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
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | pdfjs-dist | <= 4.1.392 | 4.2.67 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Mozilla | Firefox | before 115.11.0 before 126.0 |
| Mozilla | Thunderbird | before 115.11.0 |
| Debian | Debian Linux | Version 10.0 |
| Open-Xchange | Open-Xchange Appsuite Frontend | before 7.10.6 Version 7.10.6 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://bugzilla.mozilla.org/show_bug.cgi?id=1893645
- https://lists.debian.org/debian-lts-announce/2024/05/msg00010.html
- https://lists.debian.org/debian-lts-announce/2024/05/msg00012.html
- https://www.mozilla.org/security/advisories/mfsa2024-21/
- https://www.mozilla.org/security/advisories/mfsa2024-22/
- https://www.mozilla.org/security/advisories/mfsa2024-23/
- http://seclists.org/fulldisclosure/2024/Aug/30
- https://codeanlabs.com/blog/research/cve-2024-4367-arbitrary-js-execution-in-pdf-js/
- https://github.com/gogs/gogs/issues/7928
- https://github.com/mozilla/pdf.js/releases/tag/v4.2.67
- https://www.exploit-db.com/exploits/52273
- https://cert-portal.siemens.com/productcert/html/ssa-827383.html
- https://github.com/advisories/GHSA-wgrm-67xf-hhpq
- https://github.com/mozilla/pdf.js/security/advisories/GHSA-wgrm-67xf-hhpq
- https://github.com/mozilla/pdf.js/pull/18015
- https://github.com/mozilla/pdf.js/commit/85e64b5c16c9aaef738f421733c12911a441cec6
- https://nvd.nist.gov/vuln/detail/CVE-2024-4367
- https://www.mozilla.org/security/advisories/mfsa2024-21
- https://www.mozilla.org/security/advisories/mfsa2024-22
- https://www.mozilla.org/security/advisories/mfsa2024-23
- https://codeanlabs.com/blog/research/cve-2024-4367-arbitrary-js-execution-in-pdf-js