Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2025-46568: CWE-918: Server-Side Request Forgery (SSRF) in Stirling-Tools Stirling-PDF

0
High
VulnerabilityCVE-2025-46568cvecve-2025-46568cwe-918
Published: Thu May 01 2025 (05/01/2025, 17:20:46 UTC)
Source: CVE
Vendor/Project: Stirling-Tools
Product: Stirling-PDF

Description

Stirling-PDF is a locally hosted web application that allows you to perform various operations on PDF files. Prior to version 0.45.0, Stirling-PDF is vulnerable to SSRF-induced arbitrary file read. WeasyPrint redefines a set of HTML tags, including img, embed, object, and others. The references to several files inside, allow the attachment of content from any webpage or local file to a PDF. This allows the attacker to read any file on the server, including sensitive files and configuration files. All users utilizing this feature will be affected. This issue has been patched in version 0.45.0.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 02/07/2026, 08:06:24 UTC

Technical Analysis

CVE-2025-46568 is a Server-Side Request Forgery (SSRF) vulnerability classified under CWE-918, affecting Stirling-Tools' Stirling-PDF, a locally hosted web application used for PDF manipulation. Prior to version 0.45.0, the application improperly handles HTML tags such as img, embed, and object when rendering PDFs via WeasyPrint. WeasyPrint allows embedding content from external or local sources into PDFs by resolving references within these tags. An attacker can exploit this behavior to craft malicious PDF generation requests that cause the server to fetch and include arbitrary local files into the generated PDF. This leads to arbitrary file read on the server, exposing sensitive files like configuration files, credentials, or other critical data. The vulnerability is remotely exploitable without authentication or user interaction, increasing its risk profile. The CVSS 4.0 base score is 7.7 (high), reflecting network attack vector, low complexity, no privileges or user interaction required, and high confidentiality impact. No known exploits are currently reported in the wild, but the vulnerability's nature makes it a significant risk for data leakage. The issue was patched in Stirling-PDF version 0.45.0 by restricting or sanitizing the references used in these HTML tags to prevent SSRF and arbitrary file reads.

Potential Impact

For European organizations, this vulnerability poses a substantial risk of unauthorized disclosure of sensitive internal files, including configuration files that may contain credentials or other secrets. Such data exposure can facilitate further attacks, including privilege escalation, lateral movement, or compromise of other systems. Organizations using Stirling-PDF in environments processing confidential documents or operating in regulated sectors (e.g., finance, healthcare, government) face compliance risks due to potential data breaches. The vulnerability's remote and unauthenticated nature means attackers can exploit it without insider access, increasing the threat surface. Additionally, the arbitrary file read could be leveraged to gather intelligence about the server environment, aiding in subsequent targeted attacks. The lack of known exploits in the wild currently reduces immediate risk but does not eliminate the potential for future exploitation, especially as the vulnerability becomes publicly known.

Mitigation Recommendations

The primary mitigation is to upgrade Stirling-PDF to version 0.45.0 or later, where the vulnerability is patched. Until upgrade is possible, organizations should restrict network access to the Stirling-PDF application to trusted users and internal networks only, minimizing exposure to external attackers. Implement strict input validation and sanitization on any user-supplied data that influences PDF generation, especially references within HTML tags processed by WeasyPrint. Employ network-level controls such as web application firewalls (WAFs) to detect and block suspicious SSRF patterns targeting the application. Conduct thorough audits of server file permissions to limit the impact of arbitrary file reads, ensuring sensitive files are not world-readable. Monitor application logs for unusual requests that attempt to access local resources via the vulnerable functionality. Finally, integrate this vulnerability into incident response plans to quickly address any exploitation attempts.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.1
Assigner Short Name
GitHub_M
Date Reserved
2025-04-24T21:10:48.175Z
Cisa Enriched
true
Cvss Version
4.0
State
PUBLISHED

Threat ID: 682d9838c4522896dcbec144

Added to database: 5/21/2025, 9:09:12 AM

Last enriched: 2/7/2026, 8:06:24 AM

Last updated: 3/22/2026, 10:06:12 PM

Views: 97

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses