CVE-2026-116285

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

Published Oct 28, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

HTTP::Body versions prior to 1.23_01 contain a regular expression that can trigger quadratic backtracking when parsing the size line of a chunked HTTP request body. The pattern matches each chunk-size line with a loop over hexadecimal digits followed by any characters and a CRLF. When the first line feed occurs without a preceding carriage return, the hexadecimal digits and the wildcard alternately backtrack, causing the time required to grow proportionally to the square of the line length. This results in a denial of service through sustained CPU exhaustion, as the library performs the search for each add() call. The weakness is classified as a resource exhaustion flaw.

Affected Systems

The affected product is the HTTP::Body Perl CPAN module prior to the 1.23_01 release. Any Perl application that passes raw HTTP request bodies through this module, especially in chunked transfer mode where the Content-Length header is absent, is vulnerable. No vendor is specified beyond the CPAN project, and the vulnerability applies to all major Perl installations that rely on this library for HTTP request parsing.

Risk and Exploitability

The CVSS score is 7.5, the EPSS score is less than 1%, and it is not listed in the CISA KEV catalog. The weakness is a resource exhaustion flaw that can be triggered remotely when an attacker sends HTTP requests containing a chunked body with an unusually long chunk-size line lacking the required carriage return before the line feed. The library then performs the expensive pattern matching, consuming CPU resources. This remote attack vector is straightforward, making the risk of service disruption significant if the vulnerable module is in use.

Remediation

Vendor Solution

Upgrade to HTTP-Body 1.23_01 or later.


OpenCVE Recommended Actions

  • Upgrade HTTP::Body to version 1.23_01 or later.
  • If an immediate upgrade is not feasible, configure the application or web server to reject or severely limit request bodies that contain excessively long chunk-size lines before they reach HTTP::Body.
  • For critical services, consider disabling chunked transfer encoding or applying a hard limit on request processing to mitigate the impact of a CPU exhaustion attack.

Generated by OpenCVE AI on October 31, 2026 at 01:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Important

Type Values Removed Values Added
First Time appeared Libwww-perl
Libwww-perl http-body
Vendors & Products Libwww-perl
Libwww-perl http-body
Type Values Removed Values Added
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.
Title HTTP::Body versions before 1.23_01 for Perl allow CPU exhaustion via quadratic regex backtracking when parsing chunked request bodies
Weaknesses CWE-1333
References
Weaknesses
  • CWE-1333

    Inefficient Regular Expression Complexity

Sources

Status
PUBLISHED
Assigner
CPANSec
Published
Updated
Nov 5, 2026, 9:01 PM
Reserved
Oct 25, 2026, 11:54 PM
Status
Awaiting Analysis
Published
Oct 28, 2026, 6:17 PM
Modified
Nov 5, 2026, 9:18 PM
Severity
Important
Public date
Oct 28, 2026, 5:16 PM