Path Traversal in Crawl4ai
CVE-2026-56258
Crawl4AI before 0.8.8 contains an arbitrary file write vulnerability in the screenshot and PDF endpoints that allows unauthenticated attackers to write files outside the intended directory via symlink and time-of-check-time-of-use (TOCTOU) attacks on the output_path parameter. Remote attackers can exploit insufficient path validation and symlink following to achieve arbitrary file write and potential code execution on systems where the runtime user has write access to executable or cron locations.
Vulnerability class: Path Traversal (Directory Traversal)
EPSS: 0.009 (58.0th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 8.1 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H.
Affected products
- Crawl4ai — versions 0, 0.8.8
- Kidocode Crawl4ai
Weakness classification (CWE)
References
- GitHub Security Advisory (GHSA-7cx2-g3h9-382p) (vendor-advisory, Third Party Advisory)
- VulnCheck Advisory: Crawl4AI - Arbitrary File Write via output_path Symlink and TOCTOU (Third Party Advisory, third-party-advisory)
Frequently asked questions
- What is CVE-2026-56258?
- CVE-2026-56258 is a high-severity vulnerability in Crawl4ai, classified under Path Traversal. CVSS score: 8.1/10. Published 2026-06-23.
- How severe is CVE-2026-56258?
- High severity. CVSS v3 base score is 8.1 out of 10.