Skip to main content

Crawl4AI EUVDEUVD-2026-38569

| CVE-2026-53753 CRITICAL
Code Injection (CWE-94)
2026-06-16 https://github.com/unclecode/crawl4ai GHSA-qxjp-w3pj-48m7
10.0
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach exposed /crawl Docker API
  2. Delivery
    POST crafted JsonCssExtractionStrategy schema
  3. Exploit
    Computed-field expression hits eval()
  4. Execution
    Walk gi_frame.f_back to f_builtins
  5. Persist
    Recover __import__ and import os
  6. Impact
    Execute 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 CRAWL4AI_API_TOKEN set). The attacker must be able to send a POST /crawl request carrying a JsonCssExtractionStrategy extraction schema that uses a computed field with an expression key (the eval()-backed code path). No user interaction, no authentication, and no special platform are required against a default deployment. Limiting factors that reduce real-world exposure: deployments that set CRAWL4AI_API_TOKEN, that network-isolate the Docker API to localhost/internal hosts, or that run version 0.8.7+ (where the expression path no longer calls eval()) are not exploitable via this vector.

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 POST /crawl request whose JsonCssExtractionStrategy schema contains a computed field expression that builds a generator, walks gi_frame.f_back to reach f_builtins, recovers __import__, imports os, and runs shell commands. With no authentication and low attack complexity, the attacker gains code execution inside the container to read secrets, write files, and pivot. Public PoC exploit code for this AST-escape technique exists.

Act Now Prioritize within 24-48h. Why: CRITICAL severity + public POC available.
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv3 – 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)
v2 Jun 29, 2026 - 17:13 cvss changed CVSS 10.0

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%.

v1 Jun 16, 2026 - 20:50 CVSS 9.8

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

Crawl4AI < 0.8.7

Affected Packages

pypi crawl4ai fix: 0.8.7

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

NVD PRIMARY 10.0 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
vuln.today AI 10.0 CRITICAL

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

4
Analysis Updated
Jun 29, 2026 - 17:13 vuln.today
v3 - CVSS changed
Analysis Updated
Jun 29, 2026 - 17:13 vuln.today
v2 - CVSS changed
CVSS changed
Jun 29, 2026 - 17:07 NVD
9.8 (CRITICAL) 10.0 (CRITICAL)
CVE Published
Jun 16, 2026 - 20:13 github-advisory
CRITICAL 9.8

DescriptionNVD

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:

  1. Creates a generator to access gi_frame
  2. Walks the frame chain via f_back
  3. Reaches f_builtins containing the real __import__
  4. Imports os and 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

  1. Removed eval() from computed field expression path entirely -- expressions now log a warning and return default value
  2. Deleted _safe_eval_expression() function and _SAFE_EVAL_BUILTINS (dead security-sensitive code)
  3. function key with Python callables still works for SDK users
  4. Replaced eval() in /config/dump with JSON-based input validated by Pydantic
  5. Fixed hook_manager sandbox: stripped __builtins__, __loader__, __spec__ from injected modules; removed getattr, setattr, type, __build_class__ from allowed builtins

Workarounds

  1. Upgrade to the patched version (recommended)
  2. Enable JWT authentication via CRAWL4AI_API_TOKEN environment variable
  3. Restrict network access to the Docker API

Credits

  • Song Binglin (q1uf3ng) - reported the AST sandbox escape
  • by111 (August829) - reported the hook sandbox __builtins__ escape and hardcoded JWT secret bypass
  • jannahopp - PR #1855 proposing eval removal
  • ntohidi - PR #1886 proposing allowlist approach

Executive ViewAI

Why It Matters

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.

Business Impact: Severe
Compensating Controls

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

EPSS Score
0.4%
Top 64% exploitable
Prevalence
Low
niche open-source Python crawling library, limited production footprint
Threat Intel
1
1 sources
Exploit
POC
Public exploit code exists
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA POC (1) GitHub VulDB

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC Yes
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity + public POC available
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Total

Priority Score

70
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +50
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

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.

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

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

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy