Advisory

PYSEC-2026-2138

Also known as: CVE-2026-57571, GHSA-2jq4-q6vv-4cp3

Summary

The record has no summary.

Details

Crawl4AI is an open-source LLM-friendly web crawler and scraper. Prior to 0.9.0, when the crawler saves a downloaded file, the destination filename was taken from attacker-influenced input and joined to the downloads directory with no confinement. A filename containing an absolute path or traversal escaped the downloads directory, giving an arbitrary file write with attacker-controlled contents; the HTTP crawler path uses the response Content-Disposition filename and the browser crawler path uses the download's suggested filename. Because the written bytes are attacker-controlled, this can escalate to remote code execution. This issue is fixed in version 0.9.0.

Severity

Critical Basis: CVSS v3 score 9.6, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H

Dates

Published
2026-07-06 21:16 UTC
Modified
2026-07-13 07:15 UTC

Affected packages and fixes

crawl4ai

PyPI · All systems

Affected

  • introduced 0, fixed 0.9.0 (ecosystem)

Fixed versions

0.9.0

Fix

  • Fixed version 0.9.0
    pip install --upgrade crawl4ai==0.9.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences