Unclecode crawl4ai
crawl4ai before 0.9.3 Arbitrary File Write via PDFContentScrapingStrategy
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 0.9.0, < 0.9.3
Fixed in 0.9.3
Mitigation
Upgrade crawl4ai to 0.9.3 or later.
References
- Vendor advisory github.com/unclecode/crawl4ai/security/advisor…
Timeline
Days relative to CVE publicationFirst public PoC 23 days after publication; not in CISA KEV. First PoC: BiiTts/CVE-2026-91940-crawl4ai-Arbitrary-File-Write (created 8 Oct 2026, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| BiiTts/CVE-2026-91940-crawl4ai-Arbitrary-File-Write | 8 Oct 2026 +23 d | 0 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 1 PoC repoGET /health)
- Ports
- 11235
- Seen in
- 1 repo: BiiTts/CVE-2026-91940-crawl4ai-Arbitrary-File-Write
- Evidence
- BiiTts/CVE-2026-91940-crawl4ai-Arbitrary-File-Write/evidence/EVIDENCE.txt:4
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/health\)(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [11235] (msg:"GG PoC-Monitor CVE-2026-91940 unclecode crawl4ai exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/health)"; reference:url,poc.griffinguard.io/cve/CVE-2026-91940; classtype:web-application-attack; sid:9155178; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: unclecode crawl4ai exploit attempt (CVE-2026-91940)
id: gg-pocmon-cve-2026-91940-9155178
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-91940. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-91940
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/health)'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.91940