CVE-2024-34342
HIGHreact-pdf <7.7.3 and 8.0.0-8.0.2 - PDF.js JavaScript Execution
Title source: manualExploitation Summary
EIP tracks 1 public exploit for CVE-2024-34342. PoCs published by LOURC0D3.
AI-analyzed exploit summary 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.
Description
react-pdf displays PDFs in React apps. 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. This vulnerability is fixed in 7.7.3 and 8.0.2.
Exploits (1)
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.
References (6)
Scores
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:L