CVE-2024-4367
PDF.js vulnerable to arbitrary JavaScript execution upon opening a malicious PDF
Reported by mozilla · Published May 14, 2024
pdfjs-dist is fixed in 4.2.67 (npm)
A type check was missing when handling fonts in PDF.js, which would allow arbitrary JavaScript execution in the PDF.js context. This vulnerability affects Firefox < 126, Firefox ESR < 115.11, and Thunderbird < 115.11.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| pdfjs-dist | npm | 4.2.67 |
| webkit2gtk3-devel | errata.rockylinux.org | 2.52.5-1.el9, 2.52.5-1.el8 |
| webkit2gtk3-jsc-debuginfo | errata.rockylinux.org | 2.52.5-1.el9, 2.52.5-1.el8 |
| webkit2gtk3-jsc-devel | errata.rockylinux.org | 2.52.5-1.el9, 2.52.5-1.el8 |
| webkit2gtk3-devel-debuginfo | errata.rockylinux.org | 2.52.5-1.el9, 2.52.5-1.el8 |
| webkit2gtk3-debugsource | errata.rockylinux.org | 2.52.5-1.el9, 2.52.5-1.el8 |
| webkit2gtk3-jsc-devel-debuginfo | errata.rockylinux.org | 2.52.5-1.el9, 2.52.5-1.el8 |
| webkit2gtk3-debuginfo | errata.rockylinux.org | 2.52.5-1.el9, 2.52.5-1.el8 |
| webkit2gtk3 | errata.rockylinux.org | 2.52.5-1.el9, 2.52.5-1.el8 |
| webkit2gtk3-jsc | errata.rockylinux.org | 2.52.5-1.el9, 2.52.5-1.el8 |
| kibana-8 | Chainguard | 8.16.1-r0 |
| thunderbird | Amazon Linux | 115.11.0-1.amzn2.0.1 |
8 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Mozilla | Firefox | unspecified |
| Mozilla | Firefox ESR | unspecified |
| Mozilla | Thunderbird | unspecified |
| mozilla | firefox_esr | 0 |
| Mozilla | Firefox | * |
| mozilla | firefox | 0 |
| npm | pdfjs-dist | 0 |
| Siemens | Teamcenter V2512 | 0 |
| chainguard | kibana-8 | 0 |
| Mozilla | Thunderbird | * |
| mozilla | thunderbird | 0 |
| Siemens | Teamcenter V2312 | 0 |
| Siemens | Teamcenter V2406 | 0 |
| amazon:2 | thunderbird | 0 |
| chainguard | firefox-esr | 0 |
| Mozilla | Firefox ESR | * |
Timeline
- May 7, 2024 CVE Published
- May 15, 2024 EPSS Score (30 in total, the first dated here)
- May 22, 2024 PoC Published (5 in total, the first dated here)
- Oct 4, 2024 Coalition ESS Score (30 in total, the first dated here)
- Apr 16, 2025 Exploit-DB Entry
- Mar 9, 2026 Security Advisory (34 in total, the first dated here)
- May 13, 2026 CVE Updated
- Jul 21, 2026 Distribution Patch (32 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-4367
vulnetix vdb fixes CVE-2024-4367
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-4367/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- http://seclists.org/fulldisclosure/2024/Aug/30 url
- https://github.com/mozilla/pdf.js/releases/tag/v4.2.67 url
- https://codeanlabs.com/blog/research/cve-2024-4367-arbitrary-js-execution-in-pdf-js/ url
- https://github.com/gogs/gogs/issues/7928 url
- https://www.exploit-db.com/exploits/52273 url
- https://cert-portal.siemens.com/productcert/html/ssa-827383.html url
- https://nvd.nist.gov/vuln/detail/CVE-2024-4367 advisory
- https://github.com/advisories/GHSA-wgrm-67xf-hhpq advisory
- https://github.com/mozilla/pdf.js/security/advisories/GHSA-wgrm-67xf-hhpq url
- https://github.com/mozilla/pdf.js/pull/18015 patch
- https://github.com/mozilla/pdf.js/commit/85e64b5c16c9aaef738f421733c12911a441cec6 patch
- https://www.mozilla.org/security/advisories/mfsa2024-21 url
- https://www.mozilla.org/security/advisories/mfsa2024-22 url
- https://www.mozilla.org/security/advisories/mfsa2024-23 url
…and 2 more