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
CVE-2026-57571 affects crawl4ai versions before 0.9.0. The vulnerability arises because the crawler uses attacker-influenced input for the destination filename without restricting the path to the downloads directory. Specifically, the HTTP crawler uses the Content-Disposition filename from responses, and the browser crawler uses the suggested download filename. This lack of confinement allows path traversal attacks, enabling arbitrary file writes with attacker-controlled content. Such writes can escalate to remote code execution. The vulnerability is resolved in version 0.9.0.
Potential Impact
An attacker can write arbitrary files to the filesystem outside the intended downloads directory, potentially leading to remote code execution. The CVSS v3.1 score is 9.6 (critical), reflecting network attack vector, low attack complexity, no privileges required, user interaction required, scope change, and high confidentiality, integrity, and availability impacts.
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. Patch status is confirmed fixed in 0.9.0.
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
CVE-2026-57571 affects crawl4ai versions before 0.9.0. The vulnerability arises because the crawler uses attacker-influenced input for the destination filename without restricting the path to the downloads directory. Specifically, the HTTP crawler uses the Content-Disposition filename from responses, and the browser crawler uses the suggested download filename. This lack of confinement allows path traversal attacks, enabling arbitrary file writes with attacker-controlled content. Such writes can escalate to remote code execution. The vulnerability is resolved in version 0.9.0.
Potential Impact
An attacker can write arbitrary files to the filesystem outside the intended downloads directory, potentially leading to remote code execution. The CVSS v3.1 score is 9.6 (critical), reflecting network attack vector, low attack complexity, no privileges required, user interaction required, scope change, and high confidentiality, integrity, and availability impacts.
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. Patch status is confirmed fixed in 0.9.0.
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/06/2026, 20:51:40 UTC
Last updated: 07/06/2026, 21:25:04 UTC
Views: 6
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.