CVE-2024-56406

Perl is vulnerable to a heap buffer overflow when transliterating non-ASCII bytes

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.


We have discovered 2,070 live websites that are affected by CVE-2024-56406.

Run a Free Instant Scan




Affected Software

Product  Perl
Category Programming Languages
Vulnerable Domains2,070 live websites (7.69% of Perl install base)
Vulnerable Versions
  • from 5.33.1 through 5.38.4
  • from 5.39 through 5.40.2
  • from 5.41 through 5.41.10
Vulnerable Versions Count13 versions ( 18% of all versions)


Common Weakness Enumeration

CWE-122 Heap-based Buffer Overflow



Details

  • Published - Apr 13, 2025
  • Updated - Oct 16, 2025

Credits

  • Nathan Mills (finder)

Website Distribution by Country

Number of websites using CVE-2024-56406
United States445 websites



Germany268 websites
Denmark142 websites
France133 websites
Canada121 websites
Spain94 websites
Italy78 websites
Norway67 websites
Singapore65 websites
Czech Republic61 websites

Website Distribution by TLD

Number of websites using CVE-2024-56406
.com600 websites
.de177 websites
.org162 websites
.net144 websites
.dk131 websites
.ca70 websites
.es64 websites
.it64 websites
.cz48 websites
.fr40 websites

Vulnerable Versions

Vulnerable versions are highlighted in red

Websites affected by CVE-2024-56406

Top websites that are affected by CVE-2024-56406. Please click on the "Contact us" link to get more information.
DomainCountryRankContacts
*******.****************.com United States**,***
*******.com United States**,***
********.****************.com United States**,***
******.net Spain**,***
********.*******.de Germany**,***
***.es Spain**,***
*************.org Spain**,***
*********.dk Denmark**,***
****.****.org Germany***,***
*****.************.com United States***,***
See full domain list

FAQ

CVE-2024-56406 is Heap-based Buffer Overflow in Perl
A total of 2,070 websites have been identified as vulnerable to CVE-2024-56406, based on global website indexing conducted by WebTechSurvey.
The Perl is affected by the CVE-2024-56406 vulnerability.
Perl versions up to and including 5.41.10 are vulnerable to CVE-2024-56406.