Pathfinder scanned this open-source repository. Scan your own repos free →
← Back to scan results
shivasurya/code-pathfinder

high Dangerous subprocess Usage

python-sdk/codepathfinder/cli/__init__.py:113

subprocess call detected. Ensure arguments are not user-controlled.

CWE-78 open

Code

python-sdk/codepathfinder/cli/__init__.py
110        sys.exit(2)
111
112    try:
113        result = subprocess.run([str(binary), *sys.argv[1:]])
114        sys.exit(result.returncode)
115    except KeyboardInterrupt:
116        sys.exit(130)

Dataflow

Source
python-sdk/codepathfinder/cli/__init__.py:113
Sink
python-sdk/codepathfinder/cli/__init__.py:113 subprocess.run

Seen on 8 scans

Get this for your repo.

Pathfinder runs the same scan on your own repos free. Connect via GitHub in 30 seconds.