CVE-2024-56406
Perl Heap Buffer Overflow Vulnerability
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 Execution attacks on platforms that lack sufficient defenses.
INFO
Published Date :
April 13, 2025, 2:15 p.m.
Last Modified :
April 30, 2025, 3:21 p.m.
Source :
9b29abf9-4ab0-4765-b253-1875cd9b441e
Remotely Exploitable :
Yes !
Impact Score :
4.7
Exploitability Score :
3.9
Public PoC/Exploit Available at Github
CVE-2024-56406 has a 3 public PoC/Exploit
available at Github.
Go to the Public Exploits
tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2024-56406
.
URL | Resource |
---|---|
https://github.com/Perl/perl5/commit/87f42aa0e0096e9a346c9672aa3a0bd3bef8c1dd.patch | Patch |
https://metacpan.org/release/SHAY/perl-5.38.4/changes | Release Notes |
https://metacpan.org/release/SHAY/perl-5.40.2/changes | Release Notes |
http://www.openwall.com/lists/oss-security/2025/04/13/3 | Mailing List |
http://www.openwall.com/lists/oss-security/2025/04/13/4 | Mailing List |
http://www.openwall.com/lists/oss-security/2025/04/13/5 | Mailing List |
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
None
Shell Python Dockerfile TypeScript HTML
A compatibility-aware updater for Ubuntu systems. Uses LLMs to evaluate update safety and automate low-risk upgrades.
Makefile Go
github runner
Dockerfile Shell
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2024-56406
vulnerability anywhere in the article.

-
Daily CyberSecurity
Outlaw Botnet Exploits Weak SSH to Hijack Linux Systems for Crypto Mining
While high-profile ransomware and state-backed APT groups often dominate headlines, it’s crucial not to overlook quieter yet persistent threats. One such threat is Outlaw (also known as “Dota”), a Per ... Read more

-
Daily CyberSecurity
Houthi Influence Campaign: Deceptive Tactics on Facebook Target Israel and Gulf States
In a recent cybersecurity analysis, ClearSky’s team uncovered a persistent influence campaign originating from Yemen/Houthi, targeting Israel and Gulf states. The campaign, initially exposed in 2019, ... Read more

-
Daily CyberSecurity
CVE-2024-56406: Heap Overflow Vulnerability in Perl Threatens Denial of Service and Potential Code Execution
Perl, a versatile programming language widely used for various tasks like system administration and web development, has been found to contain a security vulnerability. A recently discovered heap buff ... Read more
The following table lists the changes that have been made to the
CVE-2024-56406
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
Initial Analysis by [email protected]
Apr. 30, 2025
Action Type Old Value New Value Added CWE CWE-787 Added CPE Configuration OR *cpe:2.3:a:perl:perl:*:*:*:*:*:*:*:* versions from (including) 5.33.1 up to (excluding) 5.38.4 *cpe:2.3:a:perl:perl:*:*:*:*:*:*:*:* versions from (including) 5.39.0 up to (excluding) 5.40.2 *cpe:2.3:a:perl:perl:*:*:*:*:*:*:*:* versions from (including) 5.41.0 up to (including) 5.41.10 Added Reference Type CVE: http://www.openwall.com/lists/oss-security/2025/04/13/3 Types: Mailing List Added Reference Type CVE: http://www.openwall.com/lists/oss-security/2025/04/13/4 Types: Mailing List Added Reference Type CVE: http://www.openwall.com/lists/oss-security/2025/04/13/5 Types: Mailing List Added Reference Type CPANSec: https://github.com/Perl/perl5/commit/87f42aa0e0096e9a346c9672aa3a0bd3bef8c1dd.patch Types: Patch Added Reference Type CPANSec: https://metacpan.org/release/SHAY/perl-5.38.4/changes Types: Release Notes Added Reference Type CPANSec: https://metacpan.org/release/SHAY/perl-5.40.2/changes Types: Release Notes -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Apr. 18, 2025
Action Type Old Value New Value Added CVSS V3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H -
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Apr. 13, 2025
Action Type Old Value New Value Added Reference http://www.openwall.com/lists/oss-security/2025/04/13/5 -
CVE Modified by 9b29abf9-4ab0-4765-b253-1875cd9b441e
Apr. 13, 2025
Action Type Old Value New Value Changed Description A heap buffer overflow vulnerability was discovered in Perl. 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. 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. -
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Apr. 13, 2025
Action Type Old Value New Value Added Reference http://www.openwall.com/lists/oss-security/2025/04/13/3 Added Reference http://www.openwall.com/lists/oss-security/2025/04/13/4 -
New CVE Received by 9b29abf9-4ab0-4765-b253-1875cd9b441e
Apr. 13, 2025
Action Type Old Value New Value Added Description A heap buffer overflow vulnerability was discovered in Perl. 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. Added CWE CWE-787 Added CWE CWE-122 Added Reference https://github.com/Perl/perl5/commit/87f42aa0e0096e9a346c9672aa3a0bd3bef8c1dd.patch Added Reference https://metacpan.org/release/SHAY/perl-5.38.4/changes Added Reference https://metacpan.org/release/SHAY/perl-5.40.2/changes
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2024-56406
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2024-56406
weaknesses.