CVE-2026-116133: HTTP::Body versions before 1.23_01 for Perl allow CPU exhaustion via quadratic rescanning of a multipart body with a missing or malformed boundary Robert Rothenberg 28 Oct 2026 17:20 UTC

========================================================================
CVE-2026-116133                                      CPAN Security Group
========================================================================

         CVE ID:  CVE-2026-116133

   Distribution:  HTTP-Body
       Versions:  before 1.23_01
       MetaCPAN:  https://metacpan.org/dist/HTTP-Body
       VCS Repo:  https://github.com/libwww-perl/HTTP-Body

HTTP::Body versions before 1.23_01 for Perl allow CPU exhaustion via
quadratic rescanning of a multipart body with a missing or malformed
boundary

Description
-----------
HTTP::Body versions before 1.23_01 for Perl allow CPU exhaustion via
quadratic rescanning of a multipart body with a missing or malformed
boundary.

Before the first part, and between parts, the multipart parser searches
the whole buffered body for the next boundary. On a miss it keeps
everything and searches again from the start when the next chunk
arrives. A body with no boundary, or with a delimiter followed by
neither CRLF nor "--", is therefore rescanned on every chunk, taking
time quadratic in its size.

A remote attacker can exhaust worker CPU with a few such requests.

Problem types
-------------
- CWE-407 Inefficient Algorithmic Complexity

Solutions
---------
Upgrade to HTTP-Body 1.23_01 or later.

References
----------
https://github.com/libwww-perl/HTTP-Body/commit/bf77eb959bbe1641b77f69eefe98d58ce4c4ec79.patch
https://metacpan.org/release/GETTY/HTTP-Body-1.24/changes