Description
Midnight Commander (mc) 4.8.5 does not properly handle the (1) MC_EXT_SELECTED or (2) MC_EXT_ONLYTAGGED environment variables when multiple files are selected, which allows user-assisted remote attackers to execute arbitrary commands via a crafted file name.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | mc | 3:4.8.8-1 | — |
| Debian 13 | mc | 3:4.8.8-1 | — |
| Debian 12 | mc | 3:4.8.8-1 | — |
References
- [oss-security] 20121003 Re: CVE Request (minor) -- mc: Improper sanitization of MC_EXT_SELECTED variable when viewing multiple files mailing-list
- https://www.midnight-commander.org/ticket/2913
- https://bugs.gentoo.org/show_bug.cgi?id=436518#c7
- [oss-security] 20121003 CVE Request (minor) -- mc: Improper sanitization of MC_EXT_SELECTED variable when viewing multiple files mailing-list
- https://bugzilla.redhat.com/show_bug.cgi?id=862813
- 55777 vdb-entry
- midnight-commander-code-exec(79033) vdb-entry