Gửi #782169: ScrapeGraphAI scrapegraph-ai 1.74.0 Remote Code Execution (RCE)thông tin

tiêu đềScrapeGraphAI scrapegraph-ai 1.74.0 Remote Code Execution (RCE)
Mô tảA critical Remote Code Execution vulnerability exists in the GenerateCodeNode component of ScrapeGraphAI v1.74.0. The library uses a Large Language Model (LLM) to generate Python code for data extraction from scraped web pages, then executes that code via Python's exec() built-in with a "sandbox" that exposes the full __builtins__ module, providing no actual isolation. An attacker who controls or can influence the content of a target website can embed prompt injection payloads in the HTML (e.g., within invisible HTML comments). When a victim uses ScrapeGraphAI's CodeGeneratorGraph to scrape the attacker's page, the HTML content — including the prompt injection — is fed directly into the LLM prompt. The LLM then generates Python code that may include arbitrary malicious operations (importing subprocess, executing shell commands, reading files, exfiltrating data). This code is executed via exec() with full access to Python's built-in functions, resulting in arbitrary code execution on the victim's machine.
Nguồn⚠️ https://github.com/August829/CVEP/issues/19
Người dùng
 Yu Bao (UID 88956)
Đệ trình18/03/2026 08:21 (cách đây 5 các tháng)
Kiểm duyệt04/04/2026 08:33 (17 days later)
Trạng tháiđược chấp nhận
Mục VulDB355285 [ScrapeGraphAI scrapegraph-ai đến 1.74.0 GenerateCodeNode generate_code_node.py create_sandbox_and_execute nâng cao đặc quyền]
điểm20

Do you want to use VulDB in your project?

Use the official API to access entries easily!