# 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

- Severity: High 7.0 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.14%, higher than 2% of CVEs (2026-11-30)
- Published: 2026-10-28T17:34:06.757Z
- Modified: 2026-11-05T21:18:38.830Z
- Weaknesses: CWE-59
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: CPANSec

## 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.

(As written by CVE List.)

## Affected

- MIME-tools: before 5.521

## References

- <https://metacpan.org/release/DSKOLL/MIME-tools-5.521/changes> (release-notes)

## Sources

- CVE List: [CVE-2026-116271](https://www.cve.org/CVERecord?id=CVE-2026-116271), CVE Terms of Use, modified 2026-11-05
- NVD: [CVE-2026-116271](https://nvd.nist.gov/vuln/detail/CVE-2026-116271), Public domain, modified 2026-11-05

---

Page: https://cve.day/CVE-2026-116271 · Whole record: https://cve.day/CVE-2026-116271.json · Rebuilt by cve.day 2026-11-25T22:59:47.655Z
