subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
if font_name == "Helvetica": try: import subprocess subprocess.run( ["apt-get", "install", "-y", "-q", "fonts-wqy-zenhei"], capture_output=True, timeout=60 )- Confidence
- 97% confidence
- Finding
- The script invokes apt-get to install a system package at runtime, which exceeds the stated purpose of generating a PDF and causes side effects on the host system. Even though the command is hardcoded rather than user-controlled, it still mutates the environment, may require elevated privileges, and can be abused in sensitive execution environments where skills are expected to be non-invasive.
