{"data":{"id":"b5bac757-22b4-4cc0-aef5-0d58379e9bf2","title":"GHSA-7cx2-g3h9-382p: Crawl4AI: Arbitrary file write (symlink/TOCTOU) plus log and webhook-header injection in Docker server","summary":"GHSA-7cx2-g3h9-382p affects the Docker API server of Crawl4AI. The headline flaw is an arbitrary file write through the output_path parameter of POST /screenshot and POST /pdf, because the 0.8.7 validate_output_path check was string-only and did not resolve symlinks, and the final open() followed them. The source also reports CRLF log injection (CWE-117) and webhook request-header injection (CWE-93/CWE-113).","solution":"Upgrade to the patched version. Also enable authentication with CRAWL4AI_API_TOKEN and run the container with a read-only root filesystem. The fixes themselves add real-path resolution with O_NOFOLLOW for output_path, a logging filter that strips CR/LF/control characters, and validation of webhook headers.","labels":["security"],"sourceUrl":"https://github.com/advisories/GHSA-7cx2-g3h9-382p","publishedAt":"2026-06-16T21:02:19.000Z","cveId":null,"cweIds":["CWE-22","CWE-59","CWE-93","CWE-117"],"cvssScore":"8.1","cvssSeverity":"high","severity":"high","attackType":["other"],"issueType":"vulnerability","affectedPackages":["crawl4ai@<= 0.8.7 (fixed: 0.8.8)"],"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:H/PR:N/UI:N/S:U/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":["https://github.com/unclecode/crawl4ai/pull/3"],"ssvcExploitation":null,"nvdStatus":null,"referencesCheckedAt":"2026-12-03T19:28:26.407Z","kevDateAdded":null,"advisoryAliases":["GHSA-7cx2-g3h9-382p"],"affectedPackagesSource":null,"affectedPackagesCheckedAt":null,"patchAvailable":true,"disclosureDate":"2026-06-16T21:02:19.000Z","fixReleasedAt":"2026-06-04T01:38:34.672Z","daysToFix":-12,"fixCheckedAt":"2026-12-03T18:30:48.073Z","capecIds":null,"crossRefCount":0,"attackSophistication":"moderate","impactType":["integrity","confidentiality"],"aiComponentTargeted":"api","llmSpecific":false,"classifierConfidence":0.8,"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.8.8"],"affectedPurls":["pkg:pypi/crawl4ai"],"owaspLlmIds":null,"doi":null,"arxivId":null,"hasPublicExploit":null,"timeline":[{"event":"fix_released","date":"2026-06-04","source":"package_registry"},{"event":"published","date":"2026-06-16","source":"record_source"}],"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.8.8","matchedVersion":"0.8.8","fixReleasedAt":"2026-06-04T01:38:34.672Z","daysToFix":-12,"match":"ecosystem","source":"tracked","status":"found","checkedAt":"2026-12-03T18:30:48.072Z"}]}}