Midnight Commander (mc) 4.8.5 does not properly handle the (1) MCEXTSELECTED or (2) MCEXTONLYTAGGED environment variables when multiple files are selected, which allows user-assisted remote attackers to execute arbitrary commands via a crafted file name.