PYSEC-2026-33: Crawl4AI < 0.8.0 Docker API Unauthenticated Remote Code Execution via Hooks Parameter
Crawl4AI versions prior to 0.8.0 contain a remote code execution vulnerability in the Docker API deployment. The /crawl endpoint accepts a hooks parameter containing Python code that is executed using exec(). The import builtin was included in the allowed builtins, allowing unauthenticated remote attackers to import arbitrary modules and execute system commands. Successful exploitation allows full server compromise, including arbitrary command execution, file read and write access, sensitive data exfiltration, and lateral movement within internal networks.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Crawl4AIto a version that resolves this vulnerability.Fixed in 0.8.0
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
The issue affects Crawl4AI versions earlier than 0.8.0 when deployed through its Docker API. Exposure requires the /crawl endpoint to be reachable by an attacker.
Does exploitation require authentication or user interaction?
No. An unauthenticated remote attacker can exploit the vulnerable hooks parameter, and no user interaction is required.
What level of access can an attacker obtain?
Successful exploitation can result in full server compromise, including arbitrary command execution, file read and write access, sensitive-data exfiltration, and lateral movement within internal networks.
What version addresses the vulnerability?
Version 0.8.0 addresses the issue. Deployments running a version earlier than 0.8.0 should be treated as affected if their Docker API /crawl endpoint is exposed.