CVE Database›Document archive›CVE-2026-15534

CVE-2026-15534

perl: Perl: Arbitrary code execution via out-of-bounds memory access in regular expression engine.

Loading…

Severity

Moderate

Red Hat Product Security

5.7

CVSS 3.1

Review impact separately from score.

Published · August 10, 2026

Updated · October 22, 2026

Description

A flaw was found in Perl. An integer overflow vulnerability in the regular expression engine's superlinear cache calculation can lead to out-of-bounds memory reads and writes. A remote attacker could exploit this by providing a specially crafted, large input string during regular expression matching. This could result in a denial of service (DoS) due to a process crash or potentially lead to heap memory corruption, enabling arbitrary code execution.

Statement

This flaw has a Moderate impact. Perl's regular expression engine contains a signed 32-bit integer overflow in the superlinear-cache size calculation (S_regmatch) that can cause out-of-bounds heap reads and writes during regex matching. Triggering it requires an application to match an attacker-controlled subject of roughly 273 MiB against a pattern containing at least 15 participating WHILEM nodes, so attack complexity is high. Successful exploitation most likely results in a process crash (denial of service); the out-of-bounds access is bit-granular into a cache bitmap, so controlled memory corruption or arbitrary code execution has not been demonstrated. Given the large, unusual inputs required and the limited reachability of the vulnerable path, Red Hat has deferred fixing this issue; residual risk is limited to a potential denial of service in applications matching very large untrusted inputs against complex patterns.

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

Applications can reduce exposure by limiting the size of untrusted input passed to regular-expression matching (the overflow requires a subject on the order of 273 MiB) and by avoiding matching untrusted data against highly complex patterns.

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-190 · Integer Overflow or Wraparound