CVE-2024-4367

HIGH LAB

Firefox < 126 and ESR < 115.11 - Arbitrary JavaScript Execution in PDF.js via Missing Type Check

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 25 public exploits for CVE-2024-4367. PoCs published by Milad karimi, LOURC0D3, s4vvysec.

AI-analyzed exploit summary This exploit generates a malicious PDF file that leverages a vulnerability in Firefox ESR 115.11's PDF.js to execute arbitrary JavaScript. The payload is embedded within the PDF's font matrix structure.

Description

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.

Exploits (25)

exploitdb WORKING POC
by Milad karimi · pythonremotemultiple
https://www.exploit-db.com/exploits/52273

This exploit generates a malicious PDF file that leverages a vulnerability in Firefox ESR 115.11's PDF.js to execute arbitrary JavaScript. The payload is embedded within the PDF's font matrix structure.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Firefox ESR 115.11
No auth needed
Prerequisites: Vulnerable version of Firefox ESR (115.11) · User interaction to open the malicious PDF
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC 191 stars
by LOURC0D3 · poc
https://github.com/LOURC0D3/CVE-2024-4367-PoC

This repository contains a functional Python script that generates a malicious PDF file exploiting CVE-2024-4367 in PDF.js. The exploit leverages a missing type check in font handling to achieve arbitrary JavaScript execution in the context of the hosting domain.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: PDF.js (Firefox < 126, Firefox ESR < 115.11, Thunderbird < 115.11)
No auth needed
Prerequisites: PDF.js configured with isEvalSupported set to true (default) · Victim must open the malicious PDF file
devstral-2 · analyzed Feb 18, 2026 Full analysis →
nomisec WORKING POC 57 stars
by s4vvysec · poc
https://github.com/s4vvysec/CVE-2024-4367-POC

This repository contains a functional PoC for CVE-2024-4367, which exploits arbitrary JavaScript execution in PDF.js via a crafted PDF file. The PoC generates a malicious PDF that triggers the vulnerability when opened in a vulnerable PDF.js viewer.

Classification
Working Poc 95%
Attack Type
Xss
Complexity
Moderate
Reliability
Reliable
Target: PDF.js (versions affected by CVE-2024-4367)
No auth needed
Prerequisites: Vulnerable version of PDF.js · User interaction to open the malicious PDF
devstral-2 · analyzed Feb 18, 2026 Full analysis →
nomisec WORKING POC 12 stars
by Zombie-Kaiser · poc
https://github.com/Zombie-Kaiser/cve-2024-4367-PoC-fixed

This repository contains a functional Python script that generates a malicious PDF file exploiting CVE-2024-4367 in PDF.js. The exploit leverages a vulnerability in PDF.js to execute arbitrary JavaScript code when the PDF is opened in vulnerable applications like Firefox (<126).

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: PDF.js (used in Firefox <126 and other applications)
No auth needed
Prerequisites: Vulnerable version of PDF.js or Firefox <126 · Ability to deliver the malicious PDF to the target
devstral-2 · analyzed Feb 18, 2026 Full analysis →
nomisec SCANNER 11 stars
by spaceraccoon · poc
https://github.com/spaceraccoon/detect-cve-2024-4367

This repository provides a YARA rule to detect PDF files exploiting CVE-2024-4367, which allows arbitrary JavaScript execution in PDF.js. It does not contain exploit code but serves as a detection mechanism for the vulnerability.

Classification
Scanner 90%
Attack Type
Other
Complexity
Trivial
Reliability
Reliable
Target: PDF.js
No auth needed
Prerequisites: A PDF file potentially exploiting CVE-2024-4367
devstral-2 · analyzed Feb 18, 2026 Full analysis →
nomisec WORKING POC 8 stars
by snyk-labs · poc
https://github.com/snyk-labs/pdfjs-vuln-demo

This repository provides a functional proof-of-concept for CVE-2024-4367, a vulnerability in the PDF.js library. It includes a demo project with sample PDFs designed to exploit the vulnerability, allowing users to test different exploitation methods.

Classification
Working Poc 80%
Attack Type
Other
Complexity
Moderate
Reliability
Reliable
Target: PDF.js (pdfjs-dist) library
No auth needed
Prerequisites: Node.js environment · npm dependencies installed
devstral-2 · analyzed Feb 18, 2026 Full analysis →
nomisec WORKING POC 4 stars
by clarkio · poc
https://github.com/clarkio/pdfjs-vuln-demo

This repository provides a functional proof-of-concept for CVE-2024-4367, a vulnerability in PDF.js (pdfjs-dist). It includes a demo project with frontend components (React, Vue, Svelte) to test and exploit the vulnerability using crafted PDF files.

Classification
Working Poc 80%
Attack Type
Other
Complexity
Moderate
Reliability
Reliable
Target: PDF.js (pdfjs-dist)
No auth needed
Prerequisites: Node.js environment · npm dependencies · crafted PDF files
devstral-2 · analyzed Feb 18, 2026 Full analysis →
nomisec WORKING POC 4 stars
by Masamuneee · poc
https://github.com/Masamuneee/CVE-2024-4367-Analysis

This repository contains a functional PoC for CVE-2024-4367, demonstrating arbitrary JavaScript execution in PDF.js via a crafted PDF file. The exploit leverages a vulnerability in PDF.js to achieve XSS in Firefox, Firefox ESR, and Thunderbird.

Classification
Working Poc 95%
Attack Type
Xss
Complexity
Moderate
Reliability
Reliable
Target: PDF.js (Firefox < 126, Firefox ESR < 115.11, Thunderbird < 115.11)
No auth needed
Prerequisites: Vulnerable version of PDF.js or affected browser
devstral-2 · analyzed Feb 18, 2026 Full analysis →
nomisec WORKING POC 4 stars
by UnHackerEnCapital · poc
https://github.com/UnHackerEnCapital/PDFernetRemotelo

This repository contains a functional exploit PoC that chains CVE-2024-4367 (PDF-based RCE) and CVE-2023-38831 (WinRAR path traversal) to achieve remote command execution via a malicious PDF and RAR archive. The script generates a malicious PDF that triggers a download of a crafted RAR file, which executes a reverse shell when extracted.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Firefox < 126, WinRAR < 6.23
No auth needed
Prerequisites: Victim must open the malicious PDF in a vulnerable version of Firefox · Victim must extract the crafted RAR file using a vulnerable version of WinRAR · Attacker must host the malicious files on a reachable server
devstral-2 · analyzed Feb 18, 2026 Full analysis →
nomisec WORKING POC 2 stars
by exfil0 · poc
https://github.com/exfil0/WEAPONIZING-CVE-2024-4367

The repository contains a functional exploit for CVE-2024-4367, which leverages insufficient type checks on the FontMatrix object in PDF.js to execute arbitrary JavaScript. The exploit script automates the creation of a malicious PDF, integrates with the Social Engineering Toolkit (SET) for phishing, and hosts a server to capture exfiltrated data.

Classification
Working Poc 95%
Attack Type
Xss
Complexity
Moderate
Reliability
Reliable
Target: PDF.js (versions affected by CVE-2024-4367)
No auth needed
Prerequisites: Python 3.x · PyPDF2 · Social Engineering Toolkit (SET) · a benign PDF template
devstral-2 · analyzed Feb 18, 2026 Full analysis →
nomisec WORKING POC 1 stars
by pS3ud0RAnD0m · poc
https://github.com/pS3ud0RAnD0m/cve-2024-4367-poc

This repository contains a functional Python script that modifies a PDF file to exploit CVE-2024-4367, an arbitrary JavaScript execution vulnerability in PDF.js. The script injects malicious payloads into the PDF's FontMatrix field, which can trigger arbitrary JavaScript execution when the PDF is rendered.

Classification
Working Poc 95%
Attack Type
Xss
Complexity
Moderate
Reliability
Reliable
Target: PDF.js (version not specified)
No auth needed
Prerequisites: A base PDF file with a placeholder for injection · Python environment to run the script
devstral-2 · analyzed Feb 18, 2026 Full analysis →
nomisec WORKING POC 1 stars
by elamani-drawing · poc
https://github.com/elamani-drawing/CVE-2024-4367-POC-PDFJS

This repository contains a functional PoC for CVE-2024-4367, demonstrating an XSS vulnerability in PDF.js. The exploit generates a malicious PDF file that, when opened, executes arbitrary JavaScript payloads, including cookie theft, keylogging, and local file access in Electron-based applications.

Classification
Working Poc 95%
Attack Type
Xss
Complexity
Moderate
Reliability
Reliable
Target: PDF.js (likely in Electron-based applications)
No auth needed
Prerequisites: Victim must open the malicious PDF file in a vulnerable PDF.js viewer
devstral-2 · analyzed Feb 18, 2026 Full analysis →
nomisec SUSPICIOUS 1 stars
by kabiri-labs · poc
https://github.com/kabiri-labs/CVE-2024-4367-PoC

The repository claims to demonstrate CVE-2024-4367 (XSS) but lacks actual exploit code, instead listing generic features and pointing to external images. No technical details or PoC code are provided.

Classification
Suspicious 90%
Attack Type
Xss
Complexity
Theoretical
Reliability
Theoretical
Target: unspecified
No auth needed
devstral-2 · analyzed Feb 18, 2026 Full analysis →
nomisec WORKING POC 1 stars
by avalahEE · poc
https://github.com/avalahEE/pdfjs_disable_eval

This repository provides a functional workaround for CVE-2024-4367 by disabling JavaScript evaluation in PDF.js within Odoo 14.0. It includes a custom module that overrides default attachment handling to mitigate the vulnerability.

Classification
Working Poc 90%
Attack Type
Other
Complexity
Moderate
Reliability
Reliable
Target: Odoo 14.0 with PDF.js
Auth required
Prerequisites: Access to Odoo instance · Ability to install custom modules
devstral-2 · analyzed Feb 18, 2026 Full analysis →
github WORKING POC
by xiaoqiesec0x1 · phppoc
https://github.com/xiaoqiesec0x1/CVE-2024-4367-PDF.js-xss

This repository contains a functional proof-of-concept for CVE-2024-4367, demonstrating an XSS vulnerability in PDF.js. The exploit involves uploading a malicious PDF file, which is then rendered via a vulnerable PDF.js viewer, leading to arbitrary JavaScript execution.

Classification
Working Poc 95%
Attack Type
Xss
Complexity
Trivial
Reliability
Reliable
Target: PDF.js (version 4.1.392 or earlier)
No auth needed
Prerequisites: A vulnerable PDF.js viewer accessible via a web interface · Ability to upload a crafted PDF file
devstral-2 · analyzed May 20, 2026 Full analysis →
github SUSPICIOUS
by ellenllen · poc
https://github.com/ellenllen/CVE-2024-4367-PDFjs-Exploit-Framework

The repository claims to provide a security framework for CVE-2024-4367 but lacks actual exploit code or technical details, instead pushing external downloads and using vague marketing language.

Classification
Suspicious 95%
Attack Type
Other
Complexity
N/a
Reliability
N/a
Target: PDF.js
No auth needed
devstral-2 · analyzed May 01, 2026 Full analysis →
nomisec WORKING POC
by 0xr2r · poc
https://github.com/0xr2r/CVE-2024-4367

This repository contains a functional PoC for CVE-2024-4367, which exploits arbitrary JavaScript execution in PDF.js via a maliciously crafted PDF file. The script generates a PDF with embedded JavaScript payloads that trigger when parsed by vulnerable versions of PDF.js.

Classification
Working Poc 95%
Attack Type
Xss
Complexity
Moderate
Reliability
Reliable
Target: PDF.js (versions affected by CVE-2024-4367)
No auth needed
Prerequisites: Vulnerable version of PDF.js · User interaction to open the malicious PDF
devstral-2 · analyzed Feb 18, 2026 Full analysis →
nomisec WORKING POC
by m0d0ri205 · poc
https://github.com/m0d0ri205/PDFJS

This repository contains a functional exploit PoC for CVE-2024-4367, targeting a vulnerability in PDF.js. The exploit involves a Node.js server setup with Express and Multer, demonstrating how the vulnerability can be leveraged to bypass access controls and potentially execute arbitrary code.

Classification
Working Poc 80%
Attack Type
Auth Bypass
Complexity
Moderate
Reliability
Reliable
Target: PDF.js
No auth needed
Prerequisites: Node.js environment · Express and Multer dependencies
devstral-2 · analyzed Feb 18, 2026 Full analysis →
nomisec WRITEUP
by Bhavyakcwestern · poc
https://github.com/Bhavyakcwestern/Hacking-pdf.js-vulnerability

This repository provides a detailed technical analysis of CVE-2024-4367, a vulnerability in PDF.js allowing arbitrary JavaScript execution via improper type checking in font handling. It includes PoC PDFs and mitigation strategies.

Classification
Writeup 95%
Attack Type
Xss
Complexity
Moderate
Reliability
Reliable
Target: PDF.js < 4.2.67, Mozilla Firefox < 126, Firefox ESR < 115.11, Thunderbird < 115.11
No auth needed
Prerequisites: Victim must open a malicious PDF in a vulnerable application
devstral-2 · analyzed Feb 18, 2026 Full analysis →
nomisec WORKING POC
by PenguinCabinet · poc
https://github.com/PenguinCabinet/CVE-2024-4367-hands-on

This repository provides a functional PoC for CVE-2024-4367, a vulnerability in Firefox's PDF.js font renderer. It includes scripts to generate a malicious PDF, launch vulnerable Firefox versions, and compare patched vs. unpatched code.

Classification
Working Poc 95%
Attack Type
Xss
Complexity
Moderate
Reliability
Reliable
Target: Firefox (PDF.js) versions before the fix
No auth needed
Prerequisites: Vulnerable Firefox version · Malicious PDF file
devstral-2 · analyzed Feb 18, 2026 Full analysis →
nomisec WORKING POC
by VVeakee · poc
https://github.com/VVeakee/CVE-2024-4367

This Python script generates a malicious PDF file exploiting CVE-2024-4367, likely targeting a vulnerability in PDF parsing. The payload is embedded within the PDF structure, specifically in the FontMatrix field, suggesting a potential buffer overflow or injection attack.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Unknown PDF parser (likely a specific version of a PDF reader or library)
No auth needed
Prerequisites: Victim must open the malicious PDF file with a vulnerable application
devstral-2 · analyzed Feb 18, 2026 Full analysis →

Scores

CVSS v3 8.8
EPSS 0.3973
EPSS Percentile 97.4%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation poc
Automatable no
Technical Impact total

Details

CWE
CWE-754
Status published
Products (9)
debian/debian_linux 10.0
mozilla/firefox < 115.11.0
mozilla/firefox < 126.0
Mozilla/Firefox unspecified - 126
Mozilla/Firefox ESR unspecified - 115.11
mozilla/thunderbird < 115.11.0
Mozilla/Thunderbird unspecified - 115.11
npm/pdfjs-dist 0 - 4.2.67npm
open-xchange/open-xchange_appsuite_frontend 7.10.6 (42 CPE variants)
Published May 14, 2024
Tracked Since Feb 18, 2026