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

Published Oct 28, 2026
·
Updated

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

The multipartboundary() 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 ambiguouscontent() 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 ambiguouscontent() while the recipient's mail client shows it.

Affected Software

1 affected component
cpan/MIME::Head>=5.518<5.521

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade MIME-tools to a version that resolves this vulnerability.

    Fixed in 5.521

Event History

Oct 28, 2026
CVE Published
via MITRE·05:32 PM
Data Sourced
via MITRE·05:32 PM
RemedyDescriptionWeakness

Frequently Asked Questions

1

Which deployments are meaningfully exposed?

Mail-processing systems using affected MIME::Head versions are exposed when a security filter relies on ambiguous_content() to identify ambiguous multipart parsing. The risk is a mismatch where the filter does not see an attachment that a recipient mail client displays.

2

What does an attacker need to exploit this issue?

An attacker needs to be able to send a crafted multipart email to the target. The crafted boundary uses a partially RFC 2047-encoded value, causing MIME::Head to decode it while other mail readers use the literal boundary value.

3

How can I determine whether my installation is affected?

Check the installed MIME::Head version. Versions from 5.518 through versions before 5.521 are affected; version 5.521 addresses the issue.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203