Skip to main content
← All vulnerabilities
CVE-2026-116266EUVD-2026-112298GHSA-C5M8-Q98X-42WX

MIME::Head versions from 5.518 before 5.521 for Perl decode a partly encoded multipart boundary without flagging the parse as ambiguous

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.521
None on Exploit-DB, Metasploit or GitHub

Summary

MIME::Head, a Perl module for parsing email headers, is affected in versions from 5.518 before 5.521. A remote sender can craft an email whose multipart boundary is partly encoded so that this module decodes it differently than other mail readers, letting an attachment slip past filters that depend on its ambiguity check.

Summarized by anthropic/claude-haiku-5.5. Verify details against the original sources.

Read the original description

MIME::Head versions from 5.518 before 5.521 for Perl decode a partly encoded multipart boundary without flagging the parse as ambiguous. The multipart_boundary() method decodes RFC 2047 encoded words anywhere in the boundary, but the ambiguity check only fires when the whole value is one encoded word. A boundary such as abc=?us-ascii?Q?def?= is used as abcdef, and ambiguous_content() returns false. Encoded words are not allowed in parameters, so other mail readers split the message on the literal value. A remote sender can hide an attachment from a filter that relies on ambiguous_content() while the recipient's mail client shows it.

Timeline

  1. CVE published
  2. First seen by cve.now

Affected versions

  • MIME-tools

    From 5.518 · fixed in 5.521

References 1

metacpan.org