os.system() or os exec-family call
High
- Category
- Dangerous Code Execution
- Content
import jieba except ImportError: print("正在安装 jieba 分词器...") os.system(f"{sys.executable} -m pip install jieba -q") import jieba DATA_FILE = Path.home() / ".openviking/light/data/bm25_store.json"- Confidence
- 97% confidence
- Finding
- The script executes a shell command to install `jieba` at runtime using `os.system`. Although `sys.executable` is typically local, invoking a shell for dependency installation creates an unnecessary command-execution surface and allows unreviewed code from PyPI to be fetched and executed during normal skill use.
