Description
Crawl4AI is an open-source LLM friendly web crawler & scraper. Prior to 0.8.7, 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. This vulnerability is fixed in 0.8.7.
Affected products
kidocode: crawl4ai
References2
- github.com/unclecode/crawl4ai/security/advisories/GHSA-qxjp-w3p… Third Party AdvisoryMitigation
- github.com/unclecode/crawl4ai/security/advisories/GHSA-qxjp-w3p… Third Party AdvisoryMitigation
Metrics
- CVSS 3.1
-
10.0
CRITICAL
Score source: NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H - EPSS — exploit probability
- 2% percentile: 85 · as of 16 November 2026
- CWE
- CWE-94CWE-913
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.