GHSA-5882-5rx9-xgxp: Crawl4AI is Vulnerable to Remote Code Execution in Docker API via Hooks Parameter
- Identifiers
- CVE-2026-26216GHSA-5882-5rx9-xgxp
- Published
- Record updated
- Affected
- Crawl4AI < 0.8.0
- Fixed in
- 0.8.0
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 6.3%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .
Summary
The Crawl4AI Docker API deployment has a critical remote code execution flaw, tracked as GHSA-5882-5rx9-xgxp. The /crawl endpoint accepts a hooks parameter whose Python code runs through exec(), and __import__ was among the allowed builtins, so an unauthenticated attacker can run arbitrary system commands, read and write server files, exfiltrate environment variables and API keys, and pivot to internal services.
Mitigation
Upgrade to v0.8.0 (recommended). If upgrading is not possible immediately, disable the Docker API, block the /crawl endpoint at the network level, or add authentication to the API. The fix removes __import__ from allowed_builtins in hook_manager.py and disables hooks by default (CRAWL4AI_HOOKS_ENABLED=false), so users must explicitly opt in.
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-143864: InfiniFlow RAGFlow template injection in Canvas StringTransform HandlerSimilar attack, NVD/CVE Database
- MediumCVE-2026-85259: Gemini CLI Triage Flaw Lets Issue Authors Run Code in GitHub ActionsSimilar attack, StepSecurity Blog
- 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