{"data":{"id":"fd897ff7-e48c-4997-b114-e6a315389f7a","title":"GHSA-2jq4-q6vv-4cp3: Crawl4AI: Arbitrary file write (path traversal) in crawler downloads can lead to RCE","summary":"Crawl4AI's crawler saved downloaded files using an attacker-influenced destination filename joined to the downloads directory with no confinement, in the HTTP strategy's Content-Disposition handling (_extract_filename()) and the Playwright strategy's suggested_filename. Crafted names with absolute paths or ../ traversal allow arbitrary file writes with attacker-controlled contents, which can escalate to remote code execution. The HTTP sink is reachable pre-auth on the default Docker deployment.","solution":"Fixed by resolving destinations through a hardened helper (_safe_download_filepath) that reduces names to a bare basename and checks via realpath that the path stays within the downloads root. Workarounds: upgrade to version 0.9.0, run the crawler as an unprivileged user with an isolated downloads directory, and enable authentication via CRAWL4AI_API_TOKEN on the Docker server.","labels":["security"],"sourceUrl":"https://github.com/advisories/GHSA-2jq4-q6vv-4cp3","publishedAt":"2026-06-18T17:25:13.000Z","cveId":null,"cweIds":["CWE-22","CWE-59"],"cvssScore":"9.6","cvssSeverity":"critical","severity":"critical","attackType":["other"],"issueType":"vulnerability","affectedPackages":["crawl4ai@<= 0.8.9 (fixed: 0.9.0)"],"affectedPackageNames":["crawl4ai"],"affectedPackageRefs":["pypi:crawl4ai"],"affectedVendors":[],"affectedVendorsRaw":["Crawl4AI"],"classifierModel":"claude-haiku-5-5","classifierPromptVersion":"v4","summaryPromptVersion":"v2","headline":null,"headlinePromptVersion":null,"cvssVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","attackVector":null,"attackComplexity":null,"privilegesRequired":null,"userInteraction":null,"exploitMaturity":null,"epssScore":null,"epssPercentile":null,"epssCheckedAt":null,"epssHistory":null,"epss30dChange":null,"exploitUrls":null,"patchCommitUrls":null,"ssvcExploitation":null,"nvdStatus":null,"referencesCheckedAt":null,"kevDateAdded":null,"advisoryAliases":["GHSA-2jq4-q6vv-4cp3"],"affectedPackagesSource":null,"affectedPackagesCheckedAt":null,"patchAvailable":true,"disclosureDate":"2026-06-18T17:25:13.000Z","fixReleasedAt":"2026-06-18T09:31:07.270Z","daysToFix":0,"fixCheckedAt":"2026-12-03T18:30:46.472Z","capecIds":null,"crossRefCount":0,"attackSophistication":"trivial","impactType":["integrity","confidentiality","availability"],"aiComponentTargeted":"framework","llmSpecific":false,"classifierConfidence":0.85,"researchCategory":null,"atlasIds":null,"openalexId":null,"openalexMatch":null,"openalexCheckedAt":null,"paperAuthors":null,"paperVenue":null,"paperVenueType":null,"paperYear":null,"paperDoi":null,"paperPublished":null,"paperOaUrl":null,"citedByCount":null,"codeUrls":null,"nvdFilled":null,"fixedVersions":["crawl4ai@0.9.0"],"affectedPurls":["pkg:pypi/crawl4ai"],"owaspLlmIds":null,"doi":null,"arxivId":null,"hasPublicExploit":null,"timeline":[{"event":"published","date":"2026-06-18","source":"record_source"},{"event":"fix_released","date":"2026-06-18","source":"package_registry"}],"provenance":{"fields":{"id":"pipeline","title":"source","summary":"model","solution":"model","labels":"model","sourceUrl":"source","publishedAt":"source","cveId":"source","cweIds":"source","cvssScore":"source","cvssSeverity":"source","severity":"source","attackType":"model","issueType":"source","affectedPackages":"source","affectedPackageNames":"source","affectedPackageRefs":"source","affectedVendors":"model","affectedVendorsRaw":"model","classifierModel":"pipeline","classifierPromptVersion":"pipeline","summaryPromptVersion":"pipeline","headline":"model","headlinePromptVersion":"pipeline","cvssVector":"source","attackVector":"source","attackComplexity":"source","privilegesRequired":"source","userInteraction":"source","exploitMaturity":"source","epssScore":"source","epssPercentile":"source","epssCheckedAt":"pipeline","epssHistory":"source","epss30dChange":"source","exploitUrls":"source","patchCommitUrls":"source","ssvcExploitation":"source","nvdStatus":"source","referencesCheckedAt":"pipeline","kevDateAdded":"source","advisoryAliases":"source","affectedPackagesSource":"pipeline","affectedPackagesCheckedAt":"pipeline","patchAvailable":"source","disclosureDate":"source","fixReleasedAt":"source","daysToFix":"source","fixCheckedAt":"pipeline","capecIds":"source","crossRefCount":"source","attackSophistication":"model","impactType":"model","aiComponentTargeted":"model","llmSpecific":"model","classifierConfidence":"model","atlasIds":"model","openalexId":"source","openalexMatch":"pipeline","openalexCheckedAt":"pipeline","paperAuthors":"source","paperVenue":"source","paperVenueType":"source","paperYear":"source","paperDoi":"source","paperPublished":"source","paperOaUrl":"source","citedByCount":"source","codeUrls":"source","nvdFilled":"pipeline","fixedVersions":"source","affectedPurls":"source","owaspLlmIds":"model","doi":"source","arxivId":"source","hasPublicExploit":"source","timeline":"source"},"model":{"classifier":"claude-haiku-5-5","classifierPromptVersion":"v4","summaryPromptVersion":"v2"}},"fixes":[{"ecosystem":"pypi","name":"crawl4ai","fixedVersion":"0.9.0","matchedVersion":"0.9.0","fixReleasedAt":"2026-06-18T09:31:07.270Z","daysToFix":0,"match":"ecosystem","source":"tracked","status":"found","checkedAt":"2026-12-03T18:30:46.471Z"}]}}