MONAI before 1.6.2 Path Traversal via BundleAlgo.export_to_disk() algo_name
MONAI before 1.6.2 contains a path traversal vulnerability in BundleAlgo.export_to_disk() that fails to verify that a caller-supplied algo_name stays under output_path. Attackers who control algo_name, or an algos mapping key passed to BundleGen, can supply '../' sequences or absolute paths to recursively delete directories and copy template files outside the output directory.