Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

redhat логотип

CVE-2026-57432

Опубликовано: 13 июл. 2026
Источник: redhat
CVSS3: 5

Описание

Perl versions through 5.43.10 have an integer overflow in S_measure_struct leading to an out-of-bounds heap read in pack and unpack. S_measure_struct adds each item's size times its repeat count to a running total with no overflow check, so a large repeat count in a pack or unpack template wraps the signed SSize_t total negative. The @, X, and x position codes then guard their moves with a signed length comparison that passes when the length is negative, advancing the buffer pointer out of bounds. A template derived from untrusted input can read heap memory past the buffer and return it to the caller.

A flaw was found in Perl. An integer overflow vulnerability in the S_measure_struct function, specifically when handling pack and unpack templates with large repeat counts, can lead to an out-of-bounds heap read. This allows an attacker, by providing a specially crafted template, to read sensitive information from memory beyond the intended buffer. This could result in the disclosure of confidential data.

Отчет

Red Hat is aware of this vulnerability in Perl's pack and unpack built-in functions. Exploitation requires an application to pass attacker-controlled data as a pack or unpack template, which is an uncommon programming pattern. In typical usage, templates are hardcoded in source code and not derived from untrusted input, which significantly limits the practical exploitability of this flaw.

Меры по смягчению последствий

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

Затронутые пакеты

ПлатформаПакетСостояниеРекомендацияРелиз
Red Hat Enterprise Linux 10perlFix deferred
Red Hat Enterprise Linux 6perlFix deferred
Red Hat Enterprise Linux 7perlFix deferred
Red Hat Enterprise Linux 8perlFix deferred
Red Hat Enterprise Linux 8perl:5.32/perlFix deferred
Red Hat Enterprise Linux 9perlFix deferred
Red Hat OpenShift AI (RHOAI)rhoai/odh-workbench-codeserver-datascience-cpu-py312-rhel9Fix deferred
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-8Fix deferred
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-9Fix deferred
Red Hat OpenShift Dev Spacesdevspaces/code-rhel9Fix deferred

Показывать по

Дополнительная информация

Статус:

Moderate
Дефект:
CWE-125
https://bugzilla.redhat.com/show_bug.cgi?id=2499729perl: Perl: Information disclosure via integer overflow in pack/unpack operations

5 Medium

CVSS3

Связанные уязвимости

CVSS3: 8.4
ubuntu
2 месяца назад

Perl versions before 5.40.5-RC1, from 5.41.0 before 5.42.3-RC1, from 5.43.0 before 5.43.11 have an integer overflow in S_measure_struct leading to an out-of-bounds heap read in pack and unpack. S_measure_struct adds each item's size times its repeat count to a running total with no overflow check, so a large repeat count in a pack or unpack template wraps the signed SSize_t total negative. The @, X, and x position codes then guard their moves with a signed length comparison that passes when the length is negative, advancing the buffer pointer out of bounds. A template derived from untrusted input can read heap memory past the buffer and return it to the caller.

CVSS3: 8.4
nvd
2 месяца назад

Perl versions before 5.40.5-RC1, from 5.41.0 before 5.42.3-RC1, from 5.43.0 before 5.43.11 have an integer overflow in S_measure_struct leading to an out-of-bounds heap read in pack and unpack. S_measure_struct adds each item's size times its repeat count to a running total with no overflow check, so a large repeat count in a pack or unpack template wraps the signed SSize_t total negative. The @, X, and x position codes then guard their moves with a signed length comparison that passes when the length is negative, advancing the buffer pointer out of bounds. A template derived from untrusted input can read heap memory past the buffer and return it to the caller.

CVSS3: 7.5
msrc
2 месяца назад

Perl versions through 5.43.10 have an integer overflow in S_measure_struct leading to an out-of-bounds heap read in pack and unpack

CVSS3: 8.4
debian
2 месяца назад

Perl versions before 5.40.5-RC1, from 5.41.0 before 5.42.3-RC1, from 5 ...

CVSS3: 8.4
redos
10 дней назад

Уязвимость perl

5 Medium

CVSS3