Crawl4AI: Arbitrary file write (path traversal) in crawler downloads can lead to RCE
GHSA-2jq4-q6vv-4cp3 · published 2026-06-18
- Severity
- Critical
- CVSS score
- 9.6
- Chance of exploitation (EPSS)
- No CVE
- Fixed in
- 0.9.0
Arbitrary file write with attacker-controlled content as the user running the crawler, escalating to remote code execution.
Upgrade crawl4ai to 0.9.0 or later.
Both sinks now resolve the destination through a single hardened helper (_safe_download_filepath) that reduces the attacker-influenced name to a bare basename (dropping absolute paths and .. components) and re-checks, via realpath, that the resolved path stays inside the downloads root (defeating symlink/TOCTOU escapes). A traversal attempt is rejected; normal downloads are unchanged.
Upgrade to the patched version (0.9.0). Run the crawler as an unprivileged user with a dedicated, isolated downloads directory on a volume with no sensitive paths writable. Enable authentication (CRAWL4AI_API_TOKEN) on the Docker server.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| crawl4ai | PyPI | <= 0.8.9 | 0.9.0 |
- CriticalMCP Path Traversal Allows Full-Filesystem Read and JWT Secret Exfiltration Leading to Account Takeoverlangflow, langflow-base
- CriticalVibe-Trading FastAPI endpoints permit unauthenticated access, file upload, and an RCE chainvibe-trading-ai
- Critical@zereight/mcp-gitlab: Unauthenticated arbitrary file read via `upload_markdown` enables PAT exfiltration and full account takeover@zereight/mcp-gitlab
- CriticalFlowise RCE via SQL Database Chain Nodeflowise, flowise-components
- CriticalLangroid: SQLChatAgent dangerous-function blocklist can be bypassed with quoted or schema-qualified pg_read_file callslangroid
- Criticalfast-mcp-telegram: Bearer token path traversal bypasses reserved Telegram session protectionfast-mcp-telegram
- CriticalCrawl4AI: authentication bypass vulnerability due to a hardcoded default JWT signing key in the Docker API servercrawl4ai
- CriticalCrawl4AI: Unauthenticated RCE via Chromium launch-argument injection in browser_config.extra_argscrawl4ai
- CriticalCrawl4AI: Multiple Docker API Vulnerabilities - File Write, SSRF, Auth Bypass, XSS, JS Executioncrawl4ai
- CriticalCrawl4AI: AST Sandbox Escape via gi_frame.f_back Chain - Pre-Auth RCE in Docker APIcrawl4ai
- CriticalCrawl4AI is Vulnerable to Remote Code Execution in Docker API via Hooks Parametercrawl4ai
- CriticalCrawl4AI Has Local File Inclusion in Docker API via file:// URLscrawl4ai
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.