CVE-2026-116271: MIME::Parser::FileUnder versions before 5.521 for Perl reuse a pre-created output directory and follow symlinks in it, letting local users redirect attachment writes
[Unknown description]
Other sources
MIME::Parser::FileUnder versions before 5.521 for Perl reuse a pre-created output directory and follow symlinks in it, letting local users redirect attachment writes
— Microsoft
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/libmime-tools-perlto a version that resolves this vulnerability.Fixed in 5.522-1 - Upgrade
Upgrade
azurelinux/perl-MIME-toolsto a version that resolves this vulnerability.Fixed in 0:5.522-8.azl4 - Upgrade
Upgrade
MIME-toolsto a version that resolves this vulnerability.Fixed in 5.521
Event History
Frequently Asked Questions
Who is exposed to this issue?
Parsing processes are exposed when their output base directory is writable by other local users, such as when output_under("/tmp") is used. A local user can pre-create a predicted message directory and place a symlink matching an attachment filename inside it.
What does an attacker need to exploit it?
The attacker needs local access and the ability to write to the parser's output base. They must create the expected msg-<time>-<pid>-<n> directory and a dangling symlink for an attachment name before the parser writes the message.
What is the impact of successful exploitation?
The parser can write an attachment to the symlink target using the privileges of the parsing process. This allows the local attacker to redirect attachment output to a chosen writable target path.
What can be done if upgrading is not immediately possible?
Use an output base that is not writable by other users, rather than a shared location such as /tmp. Prevent untrusted local users from creating message directories or files within the parser's output base.