Description
MTools Mformat before 3.9.9, when installed setuid root, creates files with world-readable and world-writable permissions, which allows local users to read and overwrite files.
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 | mtools | 3.9.9 | — |
| Debian 13 | mtools | 3.9.9 | — |
| Debian 12 | mtools | 3.9.9 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- MTools 3.9.x - 'MFormat' Local Privilege Escalation EDB-23759 · local · Feb 25, 2004 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- MDKSA-2004:016 vendor-advisory
- mtools-mformat-insecure-permissions(15317) vdb-entry
- 9746 vdb-entry