eval() call detected
High
- Category
- Dangerous Code Execution
- Content
"codec": video_stream.get("codec_name") if video_stream else None, "width": video_stream.get("width") if video_stream else None, "height": video_stream.get("height") if video_stream else None, "fps": eval(video_stream.get("r_frame_rate", "0/1")) if video_stream else None, } if video_stream else None, "audio": { "codec": audio_stream.get("codec_name") if audio_stream else None,- Confidence
- 99% confidence
- Finding
- Using eval() on ffprobe-derived metadata is dangerous because media metadata is attacker-influenced when the tool processes untrusted files. If a crafted value reaches r_frame_rate, eval can execute arbitrary Python expressions in the current process, leading to code execution rather than simple parsing.
