CVE-2024-56406Heap-based Buffer Overflow in Perl

Severity
8.4HIGHNVD
EPSS
0.1%
top 67.42%
CISA KEV
Not in KEV
Exploit
No known exploits
Affected products
Timeline
PublishedApr 13
Latest updateJan 15

Description

A heap buffer overflow vulnerability was discovered in Perl. Release branches 5.34, 5.36, 5.38 and 5.40 are affected, including development versions from 5.33.1 through 5.41.10. When there are non-ASCII bytes in the left-hand-side of the `tr` operator, `S_do_trans_invmap` can overflow the destination pointer `d`. $ perl -e '$_ = "\x{FF}" x 1000000; tr/\xFF/\x{100}/;' Segmentation fault (core dumped) It is believed that this vulnerability can enable Denial of Service and possibly Code Executi

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HExploitability: 2.5 | Impact: 5.9

Affected Packages4 packages

CVEListV5perl/perl5.39.05.40.2-RC1+2
NVDperl/perl5.33.15.38.4+2
Alpineperl/perl< 5.36.2-r1+5
Debianperl/perl< 5.36.0-7+deb12u2+2

Patches

🔴Vulnerability Details

4
CVEList
Perl is vulnerable to a heap buffer overflow when transliterating non-ASCII bytes2025-04-13
GHSA
GHSA-p6jf-pv8c-623c: A heap buffer overflow vulnerability was discovered in Perl2025-04-13
OSV
CVE-2024-56406: A heap buffer overflow vulnerability was discovered in Perl2025-04-13
OSV
CVE-2024-56406: A heap buffer overflow vulnerability was discovered in Perl2025-04-13

📋Vendor Advisories

8
Oracle
Oracle Oracle Fusion Middleware Risk Matrix: Third Party (Perl) — CVE-2024-564062026-01-15
Oracle
Oracle Oracle Communications Applications Risk Matrix: SE_VFG_Security_Feature (Perl) — CVE-2024-564062025-07-15
Ubuntu
Perl vulnerability2025-04-23
Ubuntu
Perl vulnerability2025-04-14
Red Hat
perl: Perl 5.34, 5.36, 5.38 and 5.40 are vulnerable to a heap buffer overflow when transliterating non-ASCII bytes2025-04-13

🕵️Threat Intelligence

2
Qualys
Oracle Critical Patch Update, July 2025 Security Update Review2025-07-16
Qualys
Oracle Critical Patch Update, July 2025 Security Update Review | Qualys2025-07-16