Description
crawl4ai before 0.9.3 contains an arbitrary file write vulnerability in PDFContentScrapingStrategy where the _filter_untrusted_fields function fails to validate untrusted configuration fields. Attackers can submit crafted config bodies with malicious image_save_dir paths to write attacker-controlled bytes into any directory accessible to the service account.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| unclecode | crawl4ai | 0.9.0 – < 0.9.3 | 0.9.3 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 1 repository
-
BiiTts/CVE-2026-91940-crawl4ai-Arbitrary-File-Write ★ 0 · Oct 8, 2026
CVE-2026-91940: arbitrary file write in crawl4ai <=0.9.2 via the untrusted-config gate (PDFContentScrapingStrategy image_save_dir). Analysis, reproduction harness and verified 0.9.2 vs 0.9.3 boundary.
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- GitHub Security Advisory (GHSA-xpp7-j28w-2gvx) vendor-advisory
- VulnCheck Advisory: crawl4ai before 0.9.3 Arbitrary File Write via PDFContentScrapingStrategy third-party-advisory