CVE-2024-56406

8.4 HIGH
Published: April 13, 2025 Modified: October 16, 2025

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.

AI Explanation

Get an AI-powered plain-language explanation of this vulnerability and remediation steps.

Login to generate AI explanation

CVSS v3.x Details

0.0 Low Medium High Critical 10.0
Vector String
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

References to Advisories, Solutions, and Tools

Patch Vendor Advisory Exploit Third Party Advisory
https://metacpan.org/release/SHAY/perl-5.38.4/changes
Source: 9b29abf9-4ab0-4765-b253-1875cd9b441e
Release Notes
https://metacpan.org/release/SHAY/perl-5.40.2/changes
Source: 9b29abf9-4ab0-4765-b253-1875cd9b441e
Release Notes
http://www.openwall.com/lists/oss-security/2025/04/13/3
Source: af854a3a-2127-422b-91ae-364da2661108
Mailing List
http://www.openwall.com/lists/oss-security/2025/04/13/4
Source: af854a3a-2127-422b-91ae-364da2661108
Mailing List
http://www.openwall.com/lists/oss-security/2025/04/13/5
Source: af854a3a-2127-422b-91ae-364da2661108
Mailing List

6 reference(s) from NVD

Quick Stats

CVSS v3 Score
8.4 / 10.0
EPSS (Exploit Probability)
0.0%
5th percentile
Exploitation Status
Not in CISA KEV

Affected Vendors

perl