CVE-2024-52286
Last modified
CVE-2024-52286 is a low-severity vulnerability rated 2/10 on the CVSS scale. Stirling-PDF is a locally hosted web application that allows you to perform various operations on PDF files. In affected versions the Merge functionality takes untrusted user input (file name) and uses it directly in the creation of HTML pages allowing any unauthenticated to execute JavaScript code in the context of the user. EPSS estimates a 0.52% chance of exploitation in the next 30 days.
Description
Stirling-PDF is a locally hosted web application that allows you to perform various operations on PDF files. In affected versions the Merge functionality takes untrusted user input (file name) and uses it directly in the creation of HTML pages allowing any unauthenticated to execute JavaScript code in the context of the user. The issue stems to the code starting at `Line 24` in `src/main/resources/static/js/merge.js`. The file name is directly being input into InnerHTML with no sanitization on the file name, allowing a malicious user to be able to upload files with names containing HTML tags. As HTML tags can include JavaScript code, this can be used to execute JavaScript code in the context of the user. This is a self-injection style attack and relies on a user uploading the malicious file themselves and it impact only them, not other users. A user might be social engineered into running this to launch a phishing attack. Nevertheless, this breaks the expected security restrictions in place by the application. This issue has been addressed in version 0.32.0 and all users are advised to upgrade. There are no known workarounds for this vulnerability.
Metrics
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Weakness Enumeration
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2024-52286?
How severe is CVE-2024-52286?
How do I fix CVE-2024-52286?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2024
- CVE-2024-52280A Exposure of Sensitive Information to an Unauthorized Actor…7.7
- CVE-2024-52281A: Improper Neutralization of Input During Web Page Generati…8.9
- CVE-2024-52282A Exposure of Sensitive Information to an Unauthorized Actor…6.2
- CVE-2024-52283Missing sanitation of inputs allowed arbitrary users to cond…5.7
- CVE-2024-52284Unauthorized disclosure of sensitive data: Any user with `GE…7.7
- CVE-2024-52285A vulnerability has been identified in SiPass integrated AC5…6.9
- CVE-2024-52287authentik is an open-source identity provider. When using th…7.2
- CVE-2024-52288libosdp is an implementation of IEC 60839-11-5 OSDP (Open Su…5.1
- CVE-2024-52289authentik is an open-source identity provider. Redirect URIs…9.8
- CVE-2024-5229The Primary Addon for Elementor plugin for WordPress is vuln…6.4
- CVE-2024-52290LF Edge eKuiper is a lightweight internet of things (IoT) da…5.4
- CVE-2024-52291Craft is a content management system (CMS). A vulnerability …7.2
Are you affected by CVE-2024-52286?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
