Description
Crawl4AI versions prior to 0.8.0 contain a local file inclusion vulnerability in the Docker API deployment. The /execute_js, /screenshot, /pdf, and /html endpoints accept file:// URLs, allowing unauthenticated remote attackers to read arbitrary files from the server filesystem. An attacker can access sensitive files such as /etc/passwd, /etc/shadow, application configuration files, and environment variables via /proc/self/environ, potentially exposing credentials, API keys, and internal application structure.
Problem types
CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Product status
Any version before 0.8.0
Credits
Neo by ProjectDiscovery (https://neo.projectdiscovery.io)
References
github.com/...awl4ai/security/advisories/GHSA-vx9w-5cx4-9796
github.com/...crawl4ai/blob/main/docs/blog/release-v0.8.0.md
www.vulncheck.com/...al-file-inclusion-via-file-url-handling