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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | HTTP-Body | < 1.23_01 | 1.23_01 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libhttp-body-perl | 1.24.01-1 | — |
| Debian 13 | libhttp-body-perl | No fix yet | — |
| Debian 12 | libhttp-body-perl | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | libhttp-body-perl | No fix yet | — |
| Ubuntu 26.04 LTS | libhttp-body-perl | No fix yet | — |
| Ubuntu 24.04 LTS | libhttp-body-perl | No fix yet | — |
| Ubuntu 22.04 LTS | libhttp-body-perl | No fix yet | — |
| Ubuntu 20.04 LTS | libhttp-body-perl | No fix yet | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | libhttp-body-perl | No fix yet | — |
| Ubuntu 16.04 LTS | libhttp-body-perl | No fix yet | — |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | perl-HTTP-Body | 1.240.0-1.1 | openSUSE-SU-2026:12346-1 |
Advisories 1
- openSUSE-SU-2026:12346-1 perl-HTTP-Body-1.240.0-1.1 on GA media SUSE / openSUSE Security Updates · Oct 31, 2026