Описание
Security update for perl-HTTP-Body
This update for perl-HTTP-Body fixes the following issues:
Changes in perl-HTTP-Body:
Updated to 1.250.0 (1.25):
See /usr/share/doc/packages/perl-HTTP-Body/Changes
-
1.25 2026-11-05 18:47:08+01:00 Europe/Berlin:
- SECURITY, CVE-2026-117500: the suffix of an upload's filename is worked out from its last 255 bytes only, only when $file_temp_suffix is unset, and for the default $basename_regexp by a string search instead of the regexp; a filename of many dots ending in a backslash made the default $basename_regexp take time quadratic in its length (7 s per part at the 32 KiB header limit, once per part) in the default configuration (bsc#1288651)
- SECURITY, CVE-2026-117501: a chunked body is framed line by line with a limit on the chunk-size line ($HTTP::Body::max_chunk_line_size, 1024 bytes), chunk data is passed on as it arrives instead of being held until the chunk is complete, malformed framing (a line that is no chunk-size line, a size that does not fit an integer, chunk data not followed by CRLF) croaks instead of buffering forever, and nothing after the trailer or after the body parser is done is kept (bsc#1288652)
- SECURITY, CVE-2026-121006: the trailer of a chunked body is limited to $HTTP::Body::max_trailer_size bytes (32768) and $HTTP::Body::max_trailer_lines header lines (100); everything that followed the last chunk in the same call to add() was parsed with HTTP::Headers, which takes time quadratic in the number of fields of one name (6 s for 16 KiB of "a:" lines) (bsc#1289589)
- trailing_headers: a trailer is read up to its blank line also when it arrives in later calls to add() than the last chunk; it used to be lost
- XFormsMultipart: a part other than the start part now gets its temporary file and the NUL strip of RT#123615 like any upload; it used to be returned by upload without a tempname, its data dropped
- parse_header: a continuation line at the start of a part's header block is dropped instead of dying, and a line that is no header field is dropped instead of being stored under a made-up field name
- add: the caller's buffer is no longer modified in place when it exceeds the Content-Length, so a read-only value is accepted
- Docs: every method of the parser classes is described, add and length say what they return; the README lists every limit, $basename_regexp and all runtime prerequisites
- File::Spec is declared as a prerequisite
Updated to 1.240.0 (1.24):
see /usr/share/doc/packages/perl-HTTP-Body/Changes
-
1.24 2026-10-26 18:28:01+01:00 Europe/Berlin:
- SECURITY, CVE-2026-116131: urlencoded bodies are limited to $HTTP::Body::UrlEncoded::max_params fields and multipart bodies to $HTTP::Body::MultiPart::max_parts parts (1000 each); reported and patched by CPANSec. (bsc#1288644)
- SECURITY, CVE-2026-116132: the temporary file of an upload that is still incomplete at DESTROY-time is now always deleted; reported and patched by CPANSec (also fixes RT#84004) (bsc#1288645)
- SECURITY, CVE-2026-116133: a multipart body without a boundary or with a malformed delimiter line no longer takes quadratic time; a malformed delimiter line now croaks, and padding or an epilogue after the close delimiter is accepted; reported and patched by CPANSec. (bsc#1288646)
- SECURITY, CVE-2026-116134: a multipart part's header block is limited to $HTTP::Body::MultiPart::max_header_size bytes (32768) and $HTTP::Body::MultiPart::max_header_lines lines (100); reported and patched by CPANSec. (bsc#1288647)
- SECURITY, CVE-2026-116135: mixed-case percent escapes (e.g. %aB) in urlencoded bodies are decoded instead of being dropped; reported and patched by CPANSec. (bsc#1288648)
- SECURITY, CVE-2026-116285: the chunk size line of a chunked body is matched in linear instead of quadratic time (bsc#1288649)
- SECURITY, CVE-2026-116531: a chunked body is now framed independently of where the reads feeding add() fall; a read that split a chunk could leave the parser never reaching 'done', hanging a server that reads until done (bsc#1288650)
- INCOMPATIBLE: add() now croaks when one of the new limits is exceeded. Raise the variable, or set it to 0 to disable that limit, if your forms need more. See NOTES in HTTP::Body.
- RT#105021: temp-file write errors in MultiPart and OctetStream now croak instead of silently truncating the stored body
- RT#123615: a NUL byte in a multipart filename is stripped so it cannot truncate a path handed on downstream
- Moved repository from Shadowcat git to GitHub (libwww-perl/HTTP-Body)
- Updated all metadata resources to point to GitHub
- Fixed prerequisites: moved Digest::MD5 to test deps, changed HTTP::Headers to HTTP::Message
- Added README.md for GitHub
- Updated support section in documentation
- Moved the POD, POD coverage and Perl::Critic tests to xt/release, so they run on every release instead of being skipped
Список пакетов
openSUSE Leap 16.0
Ссылки
- SUSE Security Ratings
- SUSE Bug 1288644
- SUSE Bug 1288645
- SUSE Bug 1288646
- SUSE Bug 1288647
- SUSE Bug 1288648
- SUSE Bug 1288649
- SUSE Bug 1288650
- SUSE Bug 1288651
- SUSE Bug 1288652
- SUSE Bug 1289589
- SUSE CVE CVE-2026-116131 page
- SUSE CVE CVE-2026-116132 page
- SUSE CVE CVE-2026-116133 page
- SUSE CVE CVE-2026-116134 page
- SUSE CVE CVE-2026-116135 page
- SUSE CVE CVE-2026-116285 page
- SUSE CVE CVE-2026-116531 page
- SUSE CVE CVE-2026-117500 page
- SUSE CVE CVE-2026-117501 page
Описание
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.
Затронутые продукты
Ссылки
- CVE-2026-116131
- SUSE Bug 1288644
Описание
HTTP::Body versions before 1.23_01 for Perl leave the temporary file of an incomplete multipart upload on disk. The multipart parser creates a temporary file as soon as a file part starts, but adds it to the upload list only when the part completes. Uploads are only ever deleted from that list, by the cleanup option or by the caller, so a body that ends inside a file part leaves its temporary file where nothing can find it. A remote attacker can fill the temporary directory by repeating such requests, leaving one file behind for each.
Затронутые продукты
Ссылки
- CVE-2026-116132
- SUSE Bug 1288645
Описание
HTTP::Body versions before 1.23_01 for Perl allow CPU exhaustion via quadratic rescanning of a multipart body with a missing or malformed boundary. Before the first part, and between parts, the multipart parser searches the whole buffered body for the next boundary. On a miss it keeps everything and searches again from the start when the next chunk arrives. A body with no boundary, or with a delimiter followed by neither CRLF nor "--", is therefore rescanned on every chunk, taking time quadratic in its size. A remote attacker can exhaust worker CPU with a few such requests.
Затронутые продукты
Ссылки
- CVE-2026-116133
- SUSE Bug 1288646
Описание
HTTP::Body versions before 1.23_01 for Perl allow memory exhaustion via an unbounded multipart part header block. The multipart parser takes everything up to the first blank line after a boundary as the part's header block, with no limit on its size or number of lines. Every line is stored in the part's header hash, so a block of short lines costs about 60 bytes of memory per input byte. A remote attacker can exhaust worker memory with a single request.
Затронутые продукты
Ссылки
- CVE-2026-116134
- SUSE Bug 1288647
Описание
HTTP::Body versions before 1.23_01 for Perl drop mixed-case percent escapes from urlencoded form fields instead of decoding them. The decode table holds only the all-lowercase and all-uppercase spelling of each hex pair, while the escape pattern matches either case. An escape such as %aB finds no entry and is replaced with nothing, joining the bytes on either side. Hex digits in percent escapes are case-insensitive, and conforming decoders return the byte. A remote attacker can send a field name or value that a conforming decoder in front of the application reads differently, so that pass%aBword reaches the application as password.
Затронутые продукты
Ссылки
- CVE-2026-116135
- SUSE Bug 1288648
Описание
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.
Затронутые продукты
Ссылки
- CVE-2026-116285
- SUSE Bug 1288649
Описание
HTTP::Body versions before 1.23_01 for Perl lose track of chunk boundaries in chunked request bodies when a read ends inside a chunk. In chunked mode, used when no content length is given, add() treats a chunk as complete once the buffer is as long as the chunk's declared size, but the buffer still holds the chunk-size line. When a read ends in the last bytes of a chunk, add() takes the chunk short and parses the leftover data as the next chunk-size line. A remote attacker can make a chunked body never complete, hanging a server that reads until the body is done, and may make it complete early, leaving the remaining bytes to be read as the next request.
Затронутые продукты
Ссылки
- CVE-2026-116531
- SUSE Bug 1288650
Описание
HTTP::Body versions before 1.24_01 for Perl allow CPU exhaustion via regex backtracking on the filename of a multipart upload. For every file part, the multipart parser finds the suffix of the uploaded filename by matching the default $basename_regexp, qr/[^.]+(\.[^\\\/]+)$/, against the whole basename. A basename made of many dots and ending in a backslash makes the regex backtrack in time quadratic in its length. A remote attacker can exhaust CPU with one request, as a basename of about 32 KB takes several seconds to match and every file part is matched separately.
Затронутые продукты
Ссылки
- CVE-2026-117500
- SUSE Bug 1288651
Описание
HTTP::Body versions before 1.24_01 for Perl allow memory exhaustion via unbounded buffering of chunked request bodies. In chunked mode, used when no content length is given, add() holds each chunk in memory until all of it has arrived. A line that is not a chunk-size line, a size line without CRLF, or a size too large to fit an integer leaves the parser waiting forever, and every later add() grows the buffer. A remote attacker can exhaust memory in applications that pass chunked request bodies to HTTP::Body.
Затронутые продукты
Ссылки
- CVE-2026-117501
- SUSE Bug 1288652
Описание
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.
Затронутые продукты
Ссылки
- CVE-2026-121006
- SUSE Bug 1289589