CVE-2026-57571: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in unclecode crawl4ai
Crawl4AI is an open-source LLM-friendly web crawler and scraper. Prior to 0.9.0, when the crawler saves a downloaded file, the destination filename was taken from attacker-influenced input and joined to the downloads directory with no confinement. A filename containing an absolute path or traversal escaped the downloads directory, giving an arbitrary file write with attacker-controlled contents; the HTTP crawler path uses the response Content-Disposition filename and the browser crawler path uses the download's suggested filename. Because the written bytes are attacker-controlled, this can escalate to remote code execution. This issue is fixed in version 0.9.0.
AI Analysis
Technical Summary
crawl4ai versions before 0.9.0 do not properly restrict the pathname used when saving downloaded files. The destination filename is derived from attacker-influenced input (HTTP response Content-Disposition filename or browser crawler's suggested filename) and joined to the downloads directory without confinement. This allows an attacker to specify absolute paths or path traversal sequences to write files outside the intended directory. Because the attacker controls the file contents, this vulnerability can escalate to remote code execution. The vulnerability is addressed in crawl4ai version 0.9.0.
Potential Impact
An attacker can write arbitrary files with attacker-controlled content to any location accessible by the application, potentially leading to remote code execution. This compromises confidentiality, integrity, and availability of the affected system.
Mitigation Recommendations
Upgrade crawl4ai to version 0.9.0 or later, where this path traversal vulnerability is fixed. No other mitigation or temporary workaround is indicated.
CVE-2026-57571: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in unclecode crawl4ai
Description
Crawl4AI is an open-source LLM-friendly web crawler and scraper. Prior to 0.9.0, when the crawler saves a downloaded file, the destination filename was taken from attacker-influenced input and joined to the downloads directory with no confinement. A filename containing an absolute path or traversal escaped the downloads directory, giving an arbitrary file write with attacker-controlled contents; the HTTP crawler path uses the response Content-Disposition filename and the browser crawler path uses the download's suggested filename. Because the written bytes are attacker-controlled, this can escalate to remote code execution. This issue is fixed in version 0.9.0.
CVSS v3.1
Score 9.6critical
Affected software
pkg:github/unclecode/crawl4aiRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
crawl4ai versions before 0.9.0 do not properly restrict the pathname used when saving downloaded files. The destination filename is derived from attacker-influenced input (HTTP response Content-Disposition filename or browser crawler's suggested filename) and joined to the downloads directory without confinement. This allows an attacker to specify absolute paths or path traversal sequences to write files outside the intended directory. Because the attacker controls the file contents, this vulnerability can escalate to remote code execution. The vulnerability is addressed in crawl4ai version 0.9.0.
Potential Impact
An attacker can write arbitrary files with attacker-controlled content to any location accessible by the application, potentially leading to remote code execution. This compromises confidentiality, integrity, and availability of the affected system.
Mitigation Recommendations
Upgrade crawl4ai to version 0.9.0 or later, where this path traversal vulnerability is fixed. No other mitigation or temporary workaround is indicated.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-24T18:49:56.207Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a4c11fc27e9c797192ee549
Added to database: 07/06/2026, 20:37:16 UTC
Last enriched: 07/14/2026, 08:56:37 UTC
Last updated: 08/19/2026, 22:52:13 UTC
Views: 117
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.