subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
try: shutil.copy2(src, tmpdir / src.name) try: r = subprocess.run( ["java", "-jar", str(jar), f"-t{ext}", "-o", str(tmpdir), str(tmpdir / src.name)], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL,- Confidence
- 71% confidence
- Finding
- The code invokes a local plantuml.jar on attacker-controlled diagram input. While the subprocess API usage avoids shell injection, rendering untrusted PlantUML in a local Java process expands the attack surface to parser bugs, include behavior, or renderer vulnerabilities in the local runtime.
