Technical impact
MIME::Field::ParamVal versions before 5.521 fail to detect an ambiguous multipart boundary when the boundary is expressed as RFC 2231 continuations or contains encoded words and trailing whitespace. This flaw allows a crafting of an email where the MIME parser splits the message on a different boundary than other receivers, thereby hiding an attachment from a security filter that relies on the ambiguous_content() check while still displaying it in the recipient’s mail client. The impact is the potential delivery of malicious attachments or hidden content to a victim without the filtering system detecting it.
Affected Systems
The vulnerability affects the MIME-tools Perl library, specifically the MIME::Field::ParamVal module, in all releases prior to 5.521. Versions 5.518 and earlier also fail to flag encoded words or trailing whitespace in boundary parameters, and users of 5.519 and 5.520 are similarly impacted. The issue is corrected in 5.521 and later releases of MIME-tools.
Risk and Exploitability
The flaw is exploitable remotely via an email message sent from a non‑trusted source. No local privilege escalation or arbitrary code execution is required; an attacker merely needs to craft the boundary parameters in the message. The EPSS score is below 1%, indicating a very low but non‑zero likelihood of exploitation. The CVSS score of 5.3 reflects a moderate severity that affects confidentiality, integrity, and availability by allowing attachment concealment. The vulnerability is not listed in the CISA KEV catalog. Because the flaw can lead to successful content injection and bypass of security controls, the risk remains significant, especially in environments that rely on older MIME-tools for email filtering. The identified weakness corresponds to CWE-179 and CWE-436. The attack vector is network‑based, and the fragility exists in the parsing logic of the library.