All reports
Medium

perl: heap write overflow in regcomp.c

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2018-6797

Probability of exploitation in the next 30 days: 6.66%

FIRST EPSS · 2026-11-22

Description

An issue was discovered in Perl 5.18 through 5.26. A crafted regular expression can cause a heap-based buffer overflow, with control over the bytes written.

A heap buffer write overflow, with control over the bytes written, was found in the way regular expressions employing Unicode rules are compiled. An attacker, with the ability to provide a specially crafted regular expression, could crash the perl interpreter, or possibly execute arbitrary code.