CVE-2026-121006

HTTP::Body versions before 1.24_02 for Perl parse the trailer in quadratic time

Published Nov 6, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
HTTP::Body versions before 1.24_02 for Perl parse the trailer in quadratic time.

Everything after the last chunk in the same call to add() is parsed with HTTP::Headers, which takes time quadratic in the number of fields of one name. For example, it takes several seconds to parse 16 KiB of "a:" lines.

A remote attackercan exhause the CPU with a single request.

HTTP::Body version 1.25 limits the size and number of lines in the trailer.

Analysis

AI-generated

Technical impact

HTTP::Body older versions parse the trailer section of an HTTP request by scanning all header fields of the same name in a quadratic‑time algorithm. The time to parse grows proportionally to the square of the number of these header fields or trailer lines. A single HTTP request that contains a large number of trailer entries can therefore consume several seconds of CPU. The consequence is a denial‑of‑service condition caused by resource exhaustion; all processes that rely on HTTP::Body can be slowed or halted by a single malicious request. The weakness is a CWE‑770 style resource exhaustion problem.

Affected Systems

The affected module is the Perl HTTP::Body package, specifically any installation older than version 1.24_02. The module is used by Perl web applications and frameworks that parse HTTP requests. Users who cannot immediately update should be aware that only the HTTP::Body component is vulnerable; other related Perl libraries are not impacted. The fix is available in HTTP::Body 1.24_02 and later, which introduces limits on the size and number of trailer lines to avoid quadratic parsing.

Risk and Exploitability

With a CVSS score of 7.5 and an EPSS score of <1%, this vulnerability is not listed in CISA KEV, yet the remote attack vector remains clear: an unauthenticated attacker can send a crafted HTTP request that exploits the parsing algorithm. The simplicity of the attack combined with the lack of mitigations in older binaries makes exploitation highly likely in an exposed environment. The risk is effectively an unbounded CPU consumption leading to service degradation.

Remediation

Vendor Solution

Upgrade to HTTP::Body version 1.24_02 or later.


OpenCVE Recommended Actions

  • Upgrade the HTTP::Body Perl module to version 1.24_02 or higher.
  • If an immediate upgrade is not possible, configure the application or web server to limit the size of HTTP request trailers or reject requests with excessive header fields.
  • Monitor application CPU usage and network traffic for signs of anomalous request patterns that could indicate exploitation attempts.

Generated by OpenCVE AI on November 15, 2026 at 09:14 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
Metrics 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'}

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.24_02 for Perl parse the trailer in quadratic time. Everything after the last chunk in the same call to add() is parsed with HTTP::Headers, which takes time quadratic in the number of fields of one name. For example, it takes several seconds to parse 16 KiB of "a:" lines. A remote attackercan exhause the CPU with a single request. HTTP::Body version 1.25 limits the size and number of lines in the trailer.
Title HTTP::Body versions before 1.24_02 for Perl parse the trailer in quadratic time
Weaknesses CWE-770
References
Weaknesses
  • CWE-770

    Allocation of Resources Without Limits or Throttling

Sources

Status
PUBLISHED
Assigner
CPANSec
Published
Updated
Nov 10, 2026, 5:33 PM
Reserved
Nov 3, 2026, 7:58 AM
Status
Deferred
Published
Nov 6, 2026, 8:17 AM
Modified
Nov 12, 2026, 8:07 PM