CVE-2026-91940 crawl4ai before 0.9.3 Arbitrary File Write via PDFContentScrapingStrategy
Attackers can write arbitrary files to any accessible directory via crafted configuration paths in the PDF scraping strategy, potentially leading to code execution.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-91940?
CVE-2026-91940 is a high-severity path traversal vulnerability in unclecode crawl4ai, published on 15 Sep 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-22
Which versions are affected by CVE-2026-91940?
How do I fix CVE-2026-91940?
No fix has been published for CVE-2026-91940 yet. Limit exposure of the affected software until one is available.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2026-91940 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-91940 exists.
Public exploit code: 1 proofs of concept on GitHub.
Sources
Also known as GHSA-86m6-ccmv-j88p, GHSA-xpp7-j28w-2gvx.