CVE Database›Document archive›CVE-2026-8376

CVE-2026-8376

perl: Perl: Heap buffer overflow when compiling regular expressions on 32-bit builds

Loading…

Severity

Moderate

Red Hat Product Security

5.7

CVSS 3.1

Review impact separately from score.

Published · May 26, 2026

Updated · September 1, 2026

Description

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).

Statement

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.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

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.

CVSS / CWE

CVSS 3.1 · 5.7
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H

CWE-131 · Incorrect Calculation of Buffer Size