Crawl4AI Docker API Vulnerable to Remote Code Execution
An early warning has been issued regarding a critical remote code execution vulnerability in the Crawl4AI Docker API deployment. Users of the crawl4ai (pypi) package are reportedly affected.
What happened
According to the GitHub Advisory Database, the Crawl4AI Docker API appears to be vulnerable to remote code execution via the `/crawl` endpoint. This endpoint accepts a `hooks` parameter containing Python code that is executed using `exec()`. The `__import__` builtin was included in the allowed builtins, allowing attackers to import arbitrary modules and execute system commands.
To assess your exposure, check if you are using the crawl4ai (pypi) package in your projects. If so, it is recommended to upgrade to version 0.8.0 as soon as possible. Alternatively, you can disable the Docker API and block the `/crawl` endpoint at the network level to mitigate the risk.
This vulnerability is under investigation, and further details may emerge. For the latest information, consult the primary sources linked in the advisory.
How 0Day mitigates this
crawl4ai is anywhere in your dependency tree, the engineers who own the affected repositories get a push alert the moment it is flagged — no manual audit to remember to run.Read how this differs from waiting on a scanner to catch a known advisory, or see the exact, read-only access 0Day needs to do this for an organization.