eval() call detected
High
- Category
- Dangerous Code Execution
- Content
"""Validate file existence and numeric ranges. Returns exit code (0 = ok, 2 = arg error).""" for flag, accessor in FILE_ARGS.items(): path = eval(accessor) # safe: only string concat if path is not None and not Path(str(path)).exists(): print(f"ERROR: --{flag.replace('_', '-')} not found: {path}", file=sys.stderr) return 2- Confidence
- 95% confidence
- Finding
- path = eval(accessor) # safe: only string concat
