NetSight
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.

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

EcosystemPackageAffectedFixed in
npmpdfjs-dist<= 4.1.3924.2.67

Affected products

VendorProductAffected versions
MozillaFirefox
before 115.11.0
before 126.0
MozillaThunderbird
before 115.11.0
DebianDebian Linux
Version 10.0
Open-XchangeOpen-Xchange Appsuite Frontend
before 7.10.6
Version 7.10.6

Weakness classification

References