All reports
Medium

perl-MIME-tools: perl-MIME-tools: Denial of Service via unclosed comments in header parameters

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-116268

Probability of exploitation in the next 30 days: 0.38%

FIRST EPSS · 2026-11-22

Description

MIME::Field::ParamVal versions before 5.521 for Perl allow CPU exhaustion via unclosed comments in header parameters. The comment pattern used to parse Content-Type and Content-Disposition parameters scans from each "(" to the next ")". In a field with no ")", every "(" scans to the end of the header and fails, so parsing takes time quadratic in the header length. The field is parsed again on each attribute lookup, several times per MIME entity. A 40 KB header takes about 7 seconds to parse once.

A flaw was found in perl-MIME-tools. A remote attacker can cause a Denial of Service (DoS) by supplying specially crafted Multipurpose Internet Mail Extensions (MIME) headers containing unclosed comments. Due to inefficient parsing of parameters lacking closing parentheses, the parser repeatedly scans the remainder of the header, leading to excessive CPU consumption and application unresponsiveness.