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) # noqa: S307 - safe: only string concat if path is not None and not Path(path).exists(): print(f"ERROR: --{flag} not found: {path}", file=sys.stderr) return 2- Confidence
- 95% confidence
- Finding
- path = eval(accessor) # noqa: S307 - safe: only string concat
