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

exploitDog

redhat логотип

CVE-2026-8376

Опубликовано: 25 мая 2026
Источник: redhat
CVSS3: 5.7
EPSS Низкий

Описание

Perl versions through 5.43.10 have a heap buffer overflow when compiling regular expressions with a repeated fixed string on 32-bit builds. Perl_study_chunk in regcomp_study.c checked the size of the joined substring buffer in characters rather than bytes. For a quantified fixed substring with a large minimum count, the byte length mincount * l could overflow SSize_t, producing an undersized SvGROW allocation; the subsequent copy writes past the end of the buffer. A caller that compiles an attacker-controlled regular expression on a 32-bit perl build triggers a heap buffer overflow at compile time.

A flaw was found in Perl. A remote attacker could exploit a heap buffer overflow vulnerability when compiling regular expressions with a repeated fixed string on 32-bit builds. Specifically, the Perl_study_chunk function in regcomp_study.c incorrectly calculates the size of the joined substring buffer, leading to an undersized memory allocation. This allows a subsequent copy operation to write past the end of the buffer, potentially enabling arbitrary code execution or causing a denial of service (DoS).

Отчет

Successful exploitation requires a specific application design where untrusted, attacker-controlled input is directly compiled as a regular expression by Perl. The vulnerability is strictly limited to 32-bit architectures. Standard 64-bit deployments are not affected by this specific integer overflow flaw, significantly reducing the likelihood of exploitation in modern enterprise environments.

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

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 10perlNot affected
Red Hat Enterprise Linux 6perlOut of support scope
Red Hat Enterprise Linux 7perlOut of support scope
Red Hat Enterprise Linux 8perlNot affected
Red Hat Enterprise Linux 8perl:5.32/perlNot affected
Red Hat Enterprise Linux 9perlNot affected
Red Hat Hardened ImagesperlNot affected
Red Hat OpenShift Container Platform 4rhcosAffected

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

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

Статус:

Moderate
Дефект:
CWE-131
https://bugzilla.redhat.com/show_bug.cgi?id=2481312perl: Perl: Heap buffer overflow when compiling regular expressions on 32-bit builds

EPSS

Процентиль: 32%
0.00398
Низкий

5.7 Medium

CVSS3

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

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

Perl versions through 5.43.10 have a heap buffer overflow when compiling regular expressions with a repeated fixed string on 32-bit builds. Perl_study_chunk in regcomp_study.c checked the size of the joined substring buffer in characters rather than bytes. For a quantified fixed substring with a large minimum count, the byte length mincount * l could overflow SSize_t, producing an undersized SvGROW allocation; the subsequent copy writes past the end of the buffer. A caller that compiles an attacker-controlled regular expression on a 32-bit perl build triggers a heap buffer overflow at compile time.

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

Perl versions through 5.43.10 have a heap buffer overflow when compiling regular expressions with a repeated fixed string on 32-bit builds. Perl_study_chunk in regcomp_study.c checked the size of the joined substring buffer in characters rather than bytes. For a quantified fixed substring with a large minimum count, the byte length mincount * l could overflow SSize_t, producing an undersized SvGROW allocation; the subsequent copy writes past the end of the buffer. A caller that compiles an attacker-controlled regular expression on a 32-bit perl build triggers a heap buffer overflow at compile time.

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

Perl versions through 5.43.10 have a heap buffer overflow when compiling regular expressions with a repeated fixed string on 32-bit builds

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

Perl versions through 5.43.10 have a heap buffer overflow when compili ...

CVSS3: 9.8
github
2 месяца назад

Perl versions through 5.43.10 have a heap buffer overflow when compiling regular expressions with a repeated fixed string on 32-bit builds. Perl_study_chunk in regcomp_study.c checked the size of the joined substring buffer in characters rather than bytes. For a quantified fixed substring with a large minimum count, the byte length mincount * l could overflow SSize_t, producing an undersized SvGROW allocation; the subsequent copy writes past the end of the buffer. A caller that compiles an attacker-controlled regular expression on a 32-bit perl build triggers a heap buffer overflow at compile time.

EPSS

Процентиль: 32%
0.00398
Низкий

5.7 Medium

CVSS3