Описание
Perl before 5.30.3 on 32-bit platforms allows a heap-based buffer overflow because nested regular expression quantifiers have an integer overflow.
Отчет
A heap buffer overflow vulnerability exists in the regular expression compiler of Perl packages shipped with Red Hat Enterprise Linux 6, 7, and 8. The flaw occurs in the S_study_chunk() function of regcomp.c due to a signed size_t integer overflow in storage space calculations for nested regular expression quantifiers. When untrusted regular expressions are compiled, this can lead to out-of-bounds memory writes with attacker-controlled data. The vulnerability does not depend on the data being matched, but rather on the regular expression itself. On Red Hat systems, this could result in denial of service or potential code execution when processing malicious regular expressions. Red Hat customers should not allow untrusted regular expressions to be compiled by the Perl regular expression compiler, as regular expressions in Perl can contain arbitrary code.
Меры по смягчению последствий
To mitigate this flaw, developers should not allow untrusted regular expressions to be compiled by the Perl regular expression compiler.
Затронутые пакеты
| Платформа | Пакет | Состояние | Рекомендация | Релиз |
|---|---|---|---|---|
| Red Hat Enterprise Linux 5 | perl | Out of support scope | ||
| Red Hat Enterprise Linux 6 | perl | Out of support scope | ||
| Red Hat Enterprise Linux 8 | perl:5.24/perl | Will not fix | ||
| Red Hat Enterprise Linux 7 | perl | Fixed | RHSA-2021:0343 | 02.02.2021 |
| Red Hat Enterprise Linux 7.4 Advanced Update Support | perl | Fixed | RHSA-2021:1266 | 20.04.2021 |
| Red Hat Enterprise Linux 7.4 Telco Extended Update Support | perl | Fixed | RHSA-2021:1266 | 20.04.2021 |
| Red Hat Enterprise Linux 7.4 Update Services for SAP Solutions | perl | Fixed | RHSA-2021:1266 | 20.04.2021 |
| Red Hat Enterprise Linux 7.6 Extended Update Support | perl | Fixed | RHSA-2021:0883 | 16.03.2021 |
| Red Hat Enterprise Linux 7.7 Extended Update Support | perl | Fixed | RHSA-2021:1032 | 30.03.2021 |
| Red Hat Enterprise Linux 8 | perl | Fixed | RHSA-2021:1678 | 18.05.2021 |
Показывать по
Дополнительная информация
Статус:
EPSS
8.2 High
CVSS3
Связанные уязвимости
Perl before 5.30.3 on 32-bit platforms allows a heap-based buffer overflow because nested regular expression quantifiers have an integer overflow. An application written in Perl would only be vulnerable to this flaw if it evaluates regular expressions supplied by the attacker. Evaluating regular expressions in this fashion is known to be dangerous since the regular expression engine does not protect against denial of service attacks in this usage scenario. Additionally, the target system needs a sufficient amount of memory to allocate partial expansions of the nested quantifiers prior to the overflow occurring. This requirement is unlikely to be met on 64bit systems.]
Perl before 5.30.3 on 32-bit platforms allows a heap-based buffer overflow because nested regular expression quantifiers have an integer overflow.
Perl before 5.30.3 on 32-bit platforms allows a heap-based buffer over ...
Уязвимость интерпретатора языка программирования Perl, связанная с выходом операции за границы буфера в памяти, позволяющая нарушителю вызвать отказ в обслуживании
EPSS
8.2 High
CVSS3