Stirling-Tools Stirling-PDF
Stirling-PDF Zip Slip: Arbitrary File Write via Path Traversal in Markdown-to-PDF ZIP Extraction
Stirling-PDF is a locally hosted web application that performs various operations on PDF files. In versions prior to 2.5.2, the /api/v1/convert/markdown/pdf endpoint extracts user-supplied ZIP entries without path checks. Any authenticated user can write files outside the intended temporary working directory, leading to arbitrary file write with the privileges of the Stirling-PDF process user (stirlingpdfuser). This can overwrite writable files and compromise data integrity, with further impact depending on writable paths. The issue was fixed in version 2.5.2.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 2.5.2
Fixed in 2.5.2
Mitigation
Upgrade Stirling-PDF to 2.5.2 or later.
References
- Vendor advisory github.com/Stirling-Tools/Stirling-PDF/securit…
- Release notes github.com/Stirling-Tools/Stirling-PDF/release…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.