Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach exposed /crawl Docker API
-
DeliveryPOST crafted JsonCssExtractionStrategy schema
-
ExploitComputed-field expression hits eval()
-
ExecutionWalk gi_frame.f_back to f_builtins
-
PersistRecover __import__ and import os
-
ImpactExecute arbitrary OS commands in container
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that the Crawl4AI Docker API server be network-reachable and that JWT authentication be disabled - which is the DEFAULT state (no |
| Impact | Signals are mixed but lean toward high priority for exposed deployments. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H = 10.0) reflects network-reachable, unauthenticated, low-complexity full compromise - consistent with the description (JWT off by default, single POST request) and with SSVC's Automatable:yes / Technical Impact:total. PoC exploit code exists (SSVC exploitation:poc), and the introspection-chain technique is well known and reliable. Counterbalancing this, EPSS is low (0.45%, 36th percentile) and the CVE is NOT listed in CISA KEV - there is no public evidence of active exploitation, suggesting the low EPSS likely reflects the product's limited deployment footprint rather than low technical exploitability. The decisive real-world factor is exposure: the Docker API is typically intended for internal/localhost use, so internet-facing instances running default (no-JWT) config are at critical risk, while network-isolated deployments are substantially less exposed. |
| Exploit ScenarioDerived | An attacker locates an internet-exposed Crawl4AI Docker API (default config, JWT disabled) and sends a single |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv3 – Jun 29, 2026
Unauthenticated remote code execution in Crawl4AI's Docker API (versions <= 0.8.6) lets attackers escape the computed-fields expression sandbox and run arbitrary OS commands inside the container. The AST validator behind _safe_eval_expression() only blocked attribute names beginning with an underscore, so a crafted JsonCssExtractionStrategy schema can reach generator/frame attributes (gi_frame, f_back, f_builtins) to recover the real __import__ and execute code. Because JWT auth is disabled by default, a single POST /crawl request suffices; publicly available exploit code exists (SSVC: PoC) and the vendor rates it CVSS 10.0, though EPSS is low at 0.45%.
Earlier versions of this analysis (2)
Unauthenticated remote code execution in Crawl4AI before 0.8.7 lets attackers escape the computed-fields expression sandbox to run arbitrary OS commands inside the Docker container. The AST validator that guards _safe_eval_expression() only blocks attributes beginning with an underscore, so an attacker reaches Python generator/frame internals (gi_frame, f_back, f_builtins) to recover the real __import__ and import os. Because JWT auth is disabled by default, a single crafted POST /crawl request fully compromises the server; publicly available exploit code exists (SSVC=poc) though no active exploitation is confirmed and EPSS is a modest 0.45%.
Unauthenticated remote code execution in Crawl4AI versions <= 0.8.6 allows attackers to escape the AST-based sandbox in the computed fields feature by abusing Python generator frame attributes (gi_frame, f_back, f_builtins) that the validator failed to block. Because JWT authentication is disabled by default in the Docker API, any attacker reachable on the network can POST a crafted JsonCssExtractionStrategy schema to /crawl and execute arbitrary commands inside the container. No public exploit identified at time of analysis, but the advisory itself documents a working attack chain and the issue is fixed in 0.8.7.
RemediationAI
Vendor-released patch: upgrade to Crawl4AI 0.8.7, which removes eval() from the computed-field expression path (expressions now log a warning and return the default value), deletes the dead _safe_eval_expression()/_SAFE_EVAL_BUILTINS code, replaces eval() in /config/dump with Pydantic-validated JSON input, and hardens the hook_manager sandbox (strips __builtins__/__loader__/__spec__ and removes getattr/setattr/type/__build_class__); see PRs https://github.com/unclecode/crawl4ai/pull/1855 and https://github.com/unclecode/crawl4ai/pull/1886. If you cannot upgrade immediately, enable JWT authentication by setting the CRAWL4AI_API_TOKEN environment variable (note: a hardcoded-JWT-secret bypass was also reported, so verify the token is actually enforced on your version), and restrict network access to the Docker API so only trusted internal hosts can reach /crawl (trade-off: this breaks any legitimate remote clients that rely on the open endpoint). SDK users who need programmatic computed fields should migrate from the expression key to the still-supported function key with Python callables.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Crawl4AI is a Python web-crawling/scraping library (pkg:pip/crawl4ai) that ships a FastAPI-style Docker service exposing a /crawl endpoint. Its 'computed fields' extraction feature evaluated user-supplied expressions with eval(), guarded only by an AST-based denylist that rejected attribute access for names starting with _. This is a classic CWE-94 (Code Injection) flaw: the denylist failed to account for Python introspection attributes that are not underscore-prefixed - generator objects expose gi_frame, and frame objects expose f_back and f_builtins, the latter holding the genuine __import__. Walking the frame chain reconstitutes full builtin access, defeating the restricted-builtins (_SAFE_EVAL_BUILTINS) sandbox entirely. A related weakness existed in the hook_manager sandbox, where injected modules still exposed __builtins__, __loader__, and __spec__, plus dangerous builtins (getattr, setattr, type, __build_class__).
Know when Python gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
Default-disabled auth gives PR:N over the network with a single low-complexity request; sandbox-to-container escape justifies S:C, and full RCE yields C:H/I:H/A:H.
Primary rating from NVD.
CVSS VectorNVD
Lifecycle Timeline
4DescriptionNVD
Summary
The _safe_eval_expression() function in the computed fields feature uses an AST validator that only blocks attributes starting with underscore. Python generator and frame object attributes (gi_frame, f_back, f_builtins) do NOT start with underscore, enabling a complete sandbox escape to achieve arbitrary code execution.
The attack requires no authentication (JWT disabled by default) and is triggered via POST /crawl with a crafted extraction schema.
Attack Vector
An attacker sends a POST /crawl request with a JsonCssExtractionStrategy schema containing a malicious computed field expression that:
- Creates a generator to access
gi_frame - Walks the frame chain via
f_back - Reaches
f_builtinscontaining the real__import__ - Imports
osand executes arbitrary commands
Impact
Unauthenticated remote code execution inside the Docker container. An attacker can execute arbitrary system commands, read/write files, and exfiltrate secrets.
Fix Details
- Removed
eval()from computed field expression path entirely -- expressions now log a warning and return default value - Deleted
_safe_eval_expression()function and_SAFE_EVAL_BUILTINS(dead security-sensitive code) functionkey with Python callables still works for SDK users- Replaced
eval()in/config/dumpwith JSON-based input validated by Pydantic - Fixed hook_manager sandbox: stripped
__builtins__,__loader__,__spec__from injected modules; removedgetattr,setattr,type,__build_class__from allowed builtins
Workarounds
- Upgrade to the patched version (recommended)
- Enable JWT authentication via
CRAWL4AI_API_TOKENenvironment variable - Restrict network access to the Docker API
Credits
Articles & Coverage 3
Executive ViewAI
Crawl4AI versions 0.8.6 and earlier contain an unauthenticated remote code execution vulnerability in the Docker API. Publicly available exploit code exists, allowing attackers to execute arbitrary operating system commands inside containers with a single HTTP request. Organizations running affected versions face immediate risk of container compromise and potential lateral movement into underlying infrastructure.
Apply vendor patch: upgrade to Crawl4AI 0.8.7 or later. Interim mitigations: enable JWT authentication (disabled by default), restrict /crawl endpoint to internal-only network access, implement network segmentation to block external access to Crawl4AI services, and deploy container runtime security monitoring for process execution anomalies.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser
pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi
The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica
OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph
pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.
Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301
In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse
Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne
EUVD-2026-38569
GHSA-qxjp-w3pj-48m7
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB