Advisory

PYSEC-2026-33

Also known as: CVE-2026-26216, GHSA-5882-5rx9-xgxp

Summary

The record has no summary.

Details

Crawl4AI versions prior to 0.8.0 contain a remote code execution vulnerability in the Docker API deployment. The /crawl endpoint accepts a hooks parameter containing Python code that is executed using exec(). The __import__ builtin was included in the allowed builtins, allowing unauthenticated remote attackers to import arbitrary modules and execute system commands. Successful exploitation allows full server compromise, including arbitrary command execution, file read and write access, sensitive data exfiltration, and lateral movement within internal networks.

Severity

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

Dates

Published
2026-02-12 16:16 UTC
Modified
2026-05-20 09:18 UTC

Affected packages and fixes

crawl4ai

PyPI · All systems

Affected

  • introduced 0, fixed 0.8.0 (ecosystem)

Fixed versions

0.8.0

Fix

  • Fixed version 0.8.0
    pip install --upgrade crawl4ai==0.8.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