# CVE-2026-56258: Crawl4AI - Arbitrary File Write via output_path Symlink and TOCTOU

- Severity: Critical 9.2 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.91%, higher than 58% of CVEs (2026-11-30)
- Published: 2026-06-16T21:02:19.000Z
- Modified: 2026-07-21T15:15:49.444Z
- Also known as: GHSA-7cx2-g3h9-382p, PYSEC-2026-228
- Weaknesses: CWE-22, CWE-59, CWE-93, CWE-117
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: VulnCheck

## Description

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.

(As written by CVE List.)

## Affected

- Crawl4AI Crawl4AI: before 0.8.8 (not affected: 0.8.8)
- crawl4ai (PyPI): before 0.8.8
- kidocode crawl4ai: before 0.8.8

## Every score

- VulnCheck: CVSS:4.0 9.2 Critical `CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:4.0 `CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X`

## References

- <https://github.com/unclecode/crawl4ai/security/advisories/GHSA-7cx2-g3h9-382p> (advisory, third-party-advisory, vendor-advisory, web)
- <https://www.vulncheck.com/advisories/crawl4ai-arbitrary-file-write-via-output-path-symlink-and-toctou> (advisory, third-party-advisory, web)
- <https://github.com/unclecode/crawl4ai/issues/1> (web)
- <https://github.com/unclecode/crawl4ai/issues/2> (web)
- <https://github.com/unclecode/crawl4ai/pull/3> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/crawl4ai/PYSEC-2026-228.yaml> (web)
- <https://github.com/unclecode/crawl4ai> (package)

## Sources

- CVE List: [CVE-2026-56258](https://www.cve.org/CVERecord?id=CVE-2026-56258), CVE Terms of Use, modified 2026-07-14
- GitHub Advisory Database: [GHSA-7cx2-g3h9-382p](https://github.com/advisories/GHSA-7cx2-g3h9-382p), CC-BY-4.0, modified 2026-07-21
- NVD: [CVE-2026-56258](https://nvd.nist.gov/vuln/detail/CVE-2026-56258), Public domain, modified 2026-06-25
- PyPA Advisory Database: [PYSEC-2026-228](https://osv.dev/vulnerability/PYSEC-2026-228), CC-BY-4.0, modified 2026-06-26

---

Page: https://cve.day/CVE-2026-56258 · Whole record: https://cve.day/CVE-2026-56258.json · Rebuilt by cve.day 2026-11-25T22:59:25.453Z
