CVE-2026-116285: HTTP::Body versions before 1.23_01 for Perl allow CPU exhaustion via quadratic regex backtracking when parsing chunked request bodies Robert Rothenberg 28 Oct 2026 17:23 UTC

========================================================================
CVE-2026-116285                                      CPAN Security Group
========================================================================

         CVE ID:  CVE-2026-116285

   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 regex backtracking when parsing chunked request bodies

Description
-----------
HTTP::Body versions before 1.23_01 for Perl allow CPU exhaustion via
quadratic regex backtracking when parsing chunked request bodies.

In chunked mode, used when no content length is given, add() matches
each chunk-size line with `/^([\da-fA-F]+).*\x0D\x0A/`. On a line of
hex digits whose first LF has no CR before it, the digits and `.*`
backtrack against each other, so a single add() takes time quadratic in
the line's length. Nothing limits how long the line can be.

A remote attacker can exhaust CPU in applications that pass chunked
request bodies to HTTP::Body.

Problem types
-------------
- CWE-1333 Inefficient Regular Expression Complexity

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

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