Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
CVE-2024-56406
April 13, 2025
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 Execution attacks on platforms that lack sufficient defenses.
Affected Packages
https://github.com/Perl/perl5.git (GITHUB):
Affected version(s) >=v5.41.0 <v5.41.11
Fix Suggestion:
Update to version v5.41.11
https://github.com/Perl/perl5.git (GITHUB):
Affected version(s) >=v5.39.0 <v5.40.2
Fix Suggestion:
Update to version v5.40.2
https://github.com/Perl/perl5.git (GITHUB):
Affected version(s) >=v5.33.1 <v5.38.4
Fix Suggestion:
Update to version v5.38.4
Do you need more information?
Contact Us
CVSS v4
Base Score:
8.8
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
LOW
Vulnerable System Integrity
LOW
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
8.6
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
LOW
Integrity
LOW
Availability
HIGH
Weakness Type (CWE)
Out-of-bounds Write
Heap-based Buffer Overflow
EPSS
Base Score:
0.13