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.
References
| Link | Resource |
|---|---|
| https://github.com/unclecode/crawl4ai/blob/main/docs/blog/release-v0.8.0.md | Release Notes |
| https://github.com/unclecode/crawl4ai/security/advisories/GHSA-5882-5rx9-xgxp | Mitigation Vendor Advisory |
| https://www.vulncheck.com/advisories/crawl4ai-docker-api-unauthenticated-remote-code-execution-via-hooks-parameter | Third Party Advisory |
Configurations
History
No history.
Information
Published : 2026-02-12 16:16
Updated : 2026-07-14 16:16
NVD link : CVE-2026-26216
Mitre link : CVE-2026-26216
CVE.ORG link : CVE-2026-26216
JSON object : View
Products Affected
kidocode
- crawl4ai
CWE
CWE-94
Improper Control of Generation of Code ('Code Injection')
