A security flaw was found in the way Midnight Commander, a user-friendly text console file manager and visual shell, performed sanitization of MC_EXT_SELECTED environment variable when multiple files were selected (first selected file was used as actual content of the MC_EXT_SELECTED variable, while the remaining files were provided as arguments to the temporary script, handling the F3 / Enter key press event). A remote attacker could provide a specially-crafted archive that, when expanded and previewed by the victim could lead to arbitrary code execution with the privileges of the user running mc executable.
This issue did NOT affect the versions of the mc package, as shipped with Red Hat Enterprise Linux 5 and 6.
This issue affects the versions of the mc package, as shipped with Fedora release of 16 and 17. Please schedule an update (once there is final upstream patch available).
Created mc tracking bugs for this issue
Affects: fedora-all [bug 862814]
The CVE identifier of CVE-2012-4463 has been assigned to this issue:
mc-4.8.6-2.fc18 has been pushed to the Fedora 18 stable repository. If problems still persist, please make note of it in this bug report.
mc-4.8.6-2.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report.