GHSA-7cx2-g3h9-382p: Crawl4AI: Arbitrary file write (symlink/TOCTOU) plus log and webhook-header injection in Docker server
- Identifier
- GHSA-7cx2-g3h9-382p
- Published
- Record updated
- Affected
- crawl4ai <= 0.8.7
- Fixed in
- 0.8.8
- released June 3, 2026, 12 days before disclosure
Summary
GHSA-7cx2-g3h9-382p affects the Docker API server of Crawl4AI. The headline flaw is an arbitrary file write through the output_path parameter of POST /screenshot and POST /pdf, because the 0.8.7 validate_output_path check was string-only and did not resolve symlinks, and the final open() followed them. The source also reports CRLF log injection (CWE-117) and webhook request-header injection (CWE-93/CWE-113).
Mitigation
Upgrade to the patched version. Also enable authentication with CRAWL4AI_API_TOKEN and run the container with a read-only root filesystem. The fixes themselves add real-path resolution with O_NOFOLLOW for output_path, a logging filter that strips CR/LF/control characters, and validation of webhook headers.
Affected packages in the Exposure Registry
Matched by package name and ecosystem. Each entry shows whether the package delegates to a language model and how many tracked packages depend on it.
- crawl4aiPyPILLM dependency since 2024-09-25, 4 tracked dependents
Related items
- MediumCVE-2026-143967: Wise Chat with AI unauthenticated stored cross-site scriptingSimilar attack, NVD/CVE Database
- MediumCVE-2026-135917: Apache Camel A2A component confused deputy via shared message headersSimilar attack, NVD/CVE Database
- MediumCVE-2026-107489: Improper Authentication vulnerability in Apache Camel A2A component. This issue affects Apache Camel: from 4.21.0…Similar attack, NVD/CVE Database
- MediumNSA urges immediate post-quantum shift after AI labs report cryptography breakthroughsSimilar attack, CSO Online
- LowPerplexity caught an AI attacker casing its cloudSimilar attack, CSO Online