CVE-2026-116131: HTTP::Body versions before 1.23_01 for Perl allow memory and temporary file exhaustion via an unlimited number of form fields and multipart parts Robert Rothenberg 28 Oct 2026 17:19 UTC

========================================================================
CVE-2026-116131                                      CPAN Security Group
========================================================================

         CVE ID:  CVE-2026-116131

   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 memory and temporary
file exhaustion via an unlimited number of form fields and multipart
parts

Description
-----------
HTTP::Body versions before 1.23_01 for Perl allow memory and temporary
file exhaustion via an unlimited number of form fields and multipart
parts.

The urlencoded parser splits the whole body on its separators at once,
creating one scalar per separator before any field is stored. This
costs about 90 bytes of memory per separator byte. The multipart parser
creates a temporary file for every part that carries a filename.
Neither parser limits how many fields or parts a body may hold.

A remote attacker can exhaust worker memory with a body made of
separators, or create thousands of temporary files with one request of
small file parts.

Problem types
-------------
- CWE-770 Allocation of Resources Without Limits or Throttling

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

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